hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clampffer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9452) libhdfs++ Fix memory stomp in OpenFileForRead.
Date Mon, 23 Nov 2015 22:31:11 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

James Clampffer updated HDFS-9452:
    Attachment: HDFS-9452.HDFS-8707.000.patch

Value of promise was being set before other other items in the capture list in callback. 
This caused the stack to start unwinding as values were still getting written to what used
to be the top frame by asio worker.  

Fix is to make sure the last thing the callback does is set the value of the promise.

> libhdfs++ Fix memory stomp in OpenFileForRead.
> ----------------------------------------------
>                 Key: HDFS-9452
>                 URL: https://issues.apache.org/jira/browse/HDFS-9452
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: James Clampffer
>            Assignee: James Clampffer
>         Attachments: HDFS-9452.HDFS-8707.000.patch
> Running a simple test that opens and closes a file in many threads will fail under valgrind
with an invalid write of size 8.
> It looks like the stack is unwinding in the calling thread before the callback invoked
by asio in OpenFileForRead can set the input_stream pointer.

This message was sent by Atlassian JIRA

View raw message