除了从核心生成的__nanosleep_nocancel以外,很少有线程的stacktrace什么都不显示

时间:2019-04-29 10:01:50

标签: multithreading thread-safety pthreads

线程的

堆栈跟踪除了在Debian上使用gdb从核心转储中获取__nanosleep_nocancel之外,什么都没有显示。分析内核生成的coredump中的线程堆栈跟踪时会观察到这种情况,发现异常时会从应用程序触发该跟踪

Thread 5 (Thread 0x7f8b307bf700 (LWP 27000)): 
#0 ......Application function ..... 
#1......Application function ..... 
#2 ......Application function ..... 
#3 ......Application function .....                  
#4  0x00007f8b303c9494 in start_thread () from /lib/x86_64-linux-   gnu/libpthread.so.0                                                        
#5  0x00007f8b2f666aff in __libc_ifunc_impl_list () from /lib/x86_64-linux-gnu/libc.so.6                                                         
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8b30685700 (LWP 27025)):                            
#0  0x00007f8b303d27dd in __nanosleep_nocancel () from /lib/x86_64-linux-gnu/libpthread.so.0                                                  
#1  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8b2eb31700 (LWP 27032)):                               
#0  0x00007f8b303d27dd in __nanosleep_nocancel () from /lib/x86_64-linux-gnu/libpthread.so.0                                                   
#1  0x0000000000000000 in ?? ()                                           

Thread 1 (Thread 0x7f8b306c3700 (LWP 27022)):                              
 #0  0x00007f8b303d2f9f in raise () from /lib/x86_64-linux-                 gnu/libpthread.so.0

这里的线程2和3的堆栈跟踪显示__nanosleep_nocancel,我希望其中的堆栈跟踪类似于线程5。

对此,任何线索都将不胜感激。

0 个答案:

没有答案