Identify Active Threads
Explore techniques to identify and analyze active threads in Linux core dumps. This lesson helps you diagnose thread-specific issues such as arithmetic exceptions, corrupted instruction pointers, and potential stack overflows, enabling a deeper understanding of multi-threaded application crashes.
We talked about multi-threaded applications throughout the course. In this lesson, we’ll learn how to identify active threads. We can take a look at all of the threads present in our application to find what’s causing this.
Application source code
We have created a multi-threaded application that encounters a divide-by-zero error and runs into a floating-point exception:
Loading the core dump
We will load the core dump file using the following command:
gdb -c core.App7 -se App7
The above command will output the following to the terminal: