<html>
<head>
<base href="http://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 --- - LLDB reports IsStopped() only for thread that hit the breakpoint on FreeBSD"
href="http://llvm.org/bugs/show_bug.cgi?id=18190">18190</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB reports IsStopped() only for thread that hit the breakpoint on FreeBSD
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>See test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
The test creates a number of threads, one of which runs a function with a
breakpoint set in it. The thread that hit the breakpoint is reported as
stopped and has "stop reason = breakpoint", but the other threads do not report
being stopped. (They are in fact stopped, due to FreeBSD's ptrace interface.)
Thread list after hitting breakpoint:
output: Process 80675 stopped
* thread #2: tid = 102728, 0x000000080082b4dc libthr.so.3 at _umtx_op_err.S:37
thread #3: tid = 102100, 0x0000000000400d2f
a.out`wait_thread_func(input=0x0000000000000000) + 687 at main.cpp:67
thread #4: tid = 101997, 0x0000000000400cc8 a.out`wait_thread_func(void*)
[inlined] std::__1::__atomic_base<int, false>::load(__m=memory_order_seq_cst,
this=0x00000000006015c4) const at atomic:580
thread #5: tid = 101996, 0x0000000000400d28
a.out`wait_thread_func(input=0x0000000000000000) + 680 at main.cpp:67
thread #6: tid = 101983, 0x00000000004008f6
a.out`break_thread_func(input=0x0000000000000000) + 358 at main.cpp:51, stop
reason = breakpoint 1.1
thread #1: tid = 101503, 0x000000080082b4dc libthr.so.3 at _umtx_op_err.S:37</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>