Loading...

Wednesday, June 3, 2009

Debugging multithreaded programs

Q: In a Multi Threaded System .... how to know which thread lead to Core-Dump?

Answer: Do these steps ..

1. gdb -c core.
2. info threads
See which one has called kill procedure.
3. thread


I got these information from here:
http://wiki.davincidsp.com/index.php?title=Multithreaded_Debugging_Made_Easier_by_Forcing_Core_Dumps