[
https://issues.apache.org/jira/browse/HDFS-9452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032026#comment-15032026
]
James Clampffer commented on HDFS-9452:
---------------------------------------
Committed to HDFS-8707.
Thanks for the pointer to std::tie Bob, I'll check that out and use it where
applicable in the future.
> 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,
> HDFS-9452.HDFS-8707.001.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
(v6.3.4#6332)