<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 --- - Linux i386 ThreadsStackTracesTestCase.test_stack_traces"
href="https://llvm.org/bugs/show_bug.cgi?id=23043">23043</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linux i386 ThreadsStackTracesTestCase.test_stack_traces
</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>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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vince@nethacker.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>main thread should be blocked in fgets
Linux stack output:
Stack traces for SBProcess: pid = 33315, state = stopped, threads = 4,
executable = a.out
Stack trace for thread id=0x8223 name=a.out queue=None stop reason=none
frame #0: 0x000000f76f0430 None`None + -18446744069558303695
Stack trace for thread id=0x8227 name=a.out queue=None stop reason=breakpoint
frame #0: 0x00000008048ed3 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0xffbb5744)
frame #1: 0x0000000804ac34 a.out`void* std::_Bind_simple<void*
(*(void*))(void*)>::_M_invoke<0u>(std::_Index_tuple<0u>) at functional:1731
((std::_Bind_simple<void *(*(void *))(void *)> *)this=0x089c8024,
(std::_Index_tuple<0>)None=None)
frame #2: 0x0000000804abe7 a.out`std::_Bind_simple<void*
(*(void*))(void*)>::operator()() at functional:1720 ((std::_Bind_simple<void
*(*(void *))(void *)> *)this=0x089c8024)
frame #3: 0x0000000804abbc a.out`std::thread::_Impl<std::_Bind_simple<void*
(*(void*))(void*)> >::_M_run() at thread:115
((std::thread::_Impl<std::_Bind_simple<void *(*(void *))(void *)> >
*)this=0x089c8018)
frame #4: 0x000000f7664f4e libstdc++.so.6`??? + 46
frame #5: 0x000000f76b0f70 libpthread.so.0`start_thread + 208
frame #6: 0x000000f749abee libc.so.6`clone + 94
Stack trace for thread id=0x8228 name=a.out queue=None stop reason=breakpoint
frame #0: 0x00000008048ed3 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0xffbb5740)
frame #1: 0x0000000804ac34 a.out`void* std::_Bind_simple<void*
(*(void*))(void*)>::_M_invoke<0u>(std::_Index_tuple<0u>) at functional:1731
((std::_Bind_simple<void *(*(void *))(void *)> *)this=0x089c80e4,
(std::_Index_tuple<0>)None=None)
frame #2: 0x0000000804abe7 a.out`std::_Bind_simple<void*
(*(void*))(void*)>::operator()() at functional:1720 ((std::_Bind_simple<void
*(*(void *))(void *)> *)this=0x089c80e4)
frame #3: 0x0000000804abbc a.out`std::thread::_Impl<std::_Bind_simple<void*
(*(void*))(void*)> >::_M_run() at thread:115
((std::thread::_Impl<std::_Bind_simple<void *(*(void *))(void *)> >
*)this=0x089c80d8)
frame #4: 0x000000f7664f4e libstdc++.so.6`??? + 46
frame #5: 0x000000f76b0f70 libpthread.so.0`start_thread + 208
frame #6: 0x000000f749abee libc.so.6`clone + 94
Stack trace for thread id=0x8229 name=a.out queue=None stop reason=breakpoint
frame #0: 0x00000008048ed3 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0xffbb573c)
frame #1: 0x0000000804ac34 a.out`void* std::_Bind_simple<void*
(*(void*))(void*)>::_M_invoke<0u>(std::_Index_tuple<0u>) at functional:1731
((std::_Bind_simple<void *(*(void *))(void *)> *)this=0x089c81a4,
(std::_Index_tuple<0>)None=None)
frame #2: 0x0000000804abe7 a.out`std::_Bind_simple<void*
(*(void*))(void*)>::operator()() at functional:1720 ((std::_Bind_simple<void
*(*(void *))(void *)> *)this=0x089c81a4)
frame #3: 0x0000000804abbc a.out`std::thread::_Impl<std::_Bind_simple<void*
(*(void*))(void*)> >::_M_run() at thread:115
((std::thread::_Impl<std::_Bind_simple<void *(*(void *))(void *)> >
*)this=0x089c8198)
frame #4: 0x000000f7664f4e libstdc++.so.6`??? + 46
frame #5: 0x000000f76b0f70 libpthread.so.0`start_thread + 208
frame #6: 0x000000f749abee libc.so.6`clone + 94
(For reference)
OSX Stack output:
looking at: Stack traces for SBProcess: pid = 78034, state = stopped, threads =
4, executable = a.out
Stack trace for thread id=0x3d8730 name=None queue=com.apple.main-thread stop
reason=none
frame #0: 0x007fff8f0c78ea libsystem_kernel.dylib`__read_nocancel + 10
frame #1: 0x007fff93e1f8c9 libsystem_c.dylib`_sread + 16
frame #2: 0x007fff93e1eedb libsystem_c.dylib`__srefill1 + 24
frame #3: 0x007fff93e18916 libsystem_c.dylib`fgets + 99
frame #4: 0x0000010e70cf1f a.out`main at main.cpp:107 ((int)argc=3, (const
char **)argv=0x00007fff514f3eb0)
frame #5: 0x007fff90c025fd libdyld.dylib`start + 1
Stack trace for thread id=0x3d874a name=None queue=None stop reason=breakpoint
frame #0: 0x0000010e70cc29 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0x00007fff514f3dec)
frame #1: 0x0000010e70e12d a.out`decltype(std::__1::forward<void*
(*)(void*)>(fp)(std::__1::forward<void*>(fp0))) std::__1::__invoke<void*
(*)(void*), void*>(void* (*&&)(void*), void*&&) [inlined] at
__functional_base:413 ()
frame #2: 0x0000010e70e115 a.out`void std::__1::__thread_execute<void*
(*)(void*), void*, 1ul>(std::__1::tuple<void* (*)(void*), void*>&,
std::__1::__tuple_indices<1ul>) [inlined] at thread:332 ()
frame #3: 0x0000010e70e0f9 a.out`void*
std::__1::__thread_proxy<std::__1::tuple<void* (*)(void*), void*> >(void*) at
thread:342 ((void *)__vp=0x00007fc8d3c03550)
frame #4: 0x007fff9359b899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x007fff9359b72a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x007fff9359ffc9 libsystem_pthread.dylib`thread_start + 13
Stack trace for thread id=0x3d874b name=None queue=None stop reason=breakpoint
frame #0: 0x0000010e70cc29 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0x00007fff514f3de8)
frame #1: 0x0000010e70e12d a.out`decltype(std::__1::forward<void*
(*)(void*)>(fp)(std::__1::forward<void*>(fp0))) std::__1::__invoke<void*
(*)(void*), void*>(void* (*&&)(void*), void*&&) [inlined] at
__functional_base:413 ()
frame #2: 0x0000010e70e115 a.out`void std::__1::__thread_execute<void*
(*)(void*), void*, 1ul>(std::__1::tuple<void* (*)(void*), void*>&,
std::__1::__tuple_indices<1ul>) [inlined] at thread:332 ()
frame #3: 0x0000010e70e0f9 a.out`void*
std::__1::__thread_proxy<std::__1::tuple<void* (*)(void*), void*> >(void*) at
thread:342 ((void *)__vp=0x00007fc8d3c03560)
frame #4: 0x007fff9359b899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x007fff9359b72a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x007fff9359ffc9 libsystem_pthread.dylib`thread_start + 13
Stack trace for thread id=0x3d874c name=None queue=None stop reason=breakpoint
frame #0: 0x0000010e70cc29 a.out`thread_func(void*) at main.cpp:74 ((void
*)arg=0x00007fff514f3de4)
frame #1: 0x0000010e70e12d a.out`decltype(std::__1::forward<void*
(*)(void*)>(fp)(std::__1::forward<void*>(fp0))) std::__1::__invoke<void*
(*)(void*), void*>(void* (*&&)(void*), void*&&) [inlined] at
__functional_base:413 ()
frame #2: 0x0000010e70e115 a.out`void std::__1::__thread_execute<void*
(*)(void*), void*, 1ul>(std::__1::tuple<void* (*)(void*), void*>&,
std::__1::__tuple_indices<1ul>) [inlined] at thread:332 ()
frame #3: 0x0000010e70e0f9 a.out`void*
std::__1::__thread_proxy<std::__1::tuple<void* (*)(void*), void*> >(void*) at
thread:342 ((void *)__vp=0x00007fc8d3c03570)
frame #4: 0x007fff9359b899 libsystem_pthread.dylib`_pthread_body + 138
frame #5: 0x007fff9359b72a libsystem_pthread.dylib`_pthread_start + 137
frame #6: 0x007fff9359ffc9 libsystem_pthread.dylib`thread_start + 13</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>