<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Don't track pthread_exit"
href="https://llvm.org/bugs/show_bug.cgi?id=27757">27757</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Don't track pthread_exit
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>retrosharephenom@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Clang analyzer don't stop after a pthread_exit and report false error.
You can run it with <a href="https://github.com/RetroShare/RetroShare">https://github.com/RetroShare/RetroShare</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>