When using a coredump in gdb how do I know exactly which thread caused SIGSEGV? [duplicate]
问题 This question already has an answer here : How to find which thread caused SEGFAULT in a post-mortem gdb session? (1 answer) Closed 6 years ago . My application uses more than 8 threads. When I run info threads in gdb I see the threads and the last function they were executing. It does not seem obvious to me exactly which thread caused the SIGSEGV. Is it possible to tell it? Is it thread 1? How are the threads numbered? 回答1: When you use gdb to analyze the core dump file, the gdb will stop at