[lldb-dev] [Bug 18190] New: LLDB reports IsStopped() only for thread that hit the breakpoint on FreeBSD

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 9 08:58:12 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18190

            Bug ID: 18190
           Summary: LLDB reports IsStopped() only for thread that hit the
                    breakpoint on FreeBSD
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: emaste at freebsd.org
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131209/736384b4/attachment.html>


More information about the lldb-dev mailing list