> I have  multithreaded application. (pthread_create).
> I am getting Segmentation fault. (randomly)
> Is there any way to know in which thread Segmentation fault has occoured.
> 
> Can i  get thread_id  or anything related  in  signal handler?

Since you haven't given a whole lot of details, I'll assume certain things.

If you have 'core' file then you can attach a debugger to the core
file and check the stack trace. This should atleast you you function
name where creash is happening. You can then narrow down the problem
by looking at the relevant code. As part of fixing the
problem/debugging, you can add thread ID to your log messages.

http://www.network-theory.co.uk/articles/gccdebug.html

-DP

--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      (plug-mail@plug.org.in)
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to