[llvm-bugs] [Bug 27757] New: Don't track pthread_exit

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 16 08:23:38 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27757

            Bug ID: 27757
           Summary: Don't track pthread_exit
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: retrosharephenom at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Clang analyzer don't stop after a pthread_exit and report false error.

You can run it with https://github.com/RetroShare/RetroShare

Memory Error: Double free: Attempt to free released memory
 1: Calling 'UdpLayer::recv_loop' in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:240
 2: Memory is allocated in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:247
 3: Entering loop body in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:258
 4: Entering loop body in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:261
 5: Assuming 'toStop' is not equal to 0 in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:270
 6: Memory is released in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:275
 7: Assuming 'status' is <= 0 in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:284
 8: Assuming 'status' is >= 0 in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:288
 9: Looping back to the head of the loop in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:261
10: Entering loop body in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:261
11: Assuming 'toStop' is not equal to 0 in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:270
12: Attempt to free released memory in
/home/user/GIT/RetroShare/trunk/libbitdht/src/udp/udplayer.cc:275

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160516/6e9fbb79/attachment.html>


More information about the llvm-bugs mailing list