[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074157#comment-14074157
 ] 

Binglin Chang commented on MAPREDUCE-5987:
------------------------------------------

Hi Sean, I use valgrind to check TestGlibCBug, and find some bugs, one of them 
is causing TestGlibCBug to fail on ubuntu, create d MAPREDUCE-6005 for this.
About TestGlibCBug, I suspect the real cause is bug in ReadBuffer::fillGet, in 
which I used memcpy rather than memmove to move a range of bytes from buffer 
end to buffer beginning, the two ranges may overlap, according to the man page 
of memcpy:
bq. If dst and src overlap, behavior is undefined.  Applications in which dst 
and src might overlap should use memmove(3) instead.
So the bytes in the buffer may be corrupted. I think that is why it the test 
fails, it is not related to some glibc bug. 

> native-task: Unit test TestGlibCBug fails on ubuntu
> ---------------------------------------------------
>
>                 Key: MAPREDUCE-5987
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5987
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: task
>            Reporter: Sean Zhong
>            Assignee: Sean Zhong
>            Priority: Minor
>
> On  ubuntu12, glibc: 2.15-0ubuntu10.3, UT TestGlibCBug fails
> [ RUN      ] IFile.TestGlibCBug
> 14/07/21 15:55:30 INFO TestGlibCBug ./testData/testGlibCBugSpill.out
> /home/decster/projects/hadoop-trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/test/TestIFile.cc:186:
>  Failure
> Value of: realKey
>   Actual: 1127504685
> Expected: expect[index]
> Which is: 4102672832
> [  FAILED  ] IFile.TestGlibCBug (0 ms)
> [----------] 2 tests from IFile (240 ms total)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to