Re: accessing each pthread's context
- From: davids@xxxxxxxxxxxxx
- Date: 21 May 2006 13:30:26 -0700
You can send a thread a signal and make the signal handler make a stack
dump on Linux. I can get you some code examples if you'd like. I do
some code I have that checks for certain lock violations. If it detects
such a violation, it sends the offending thread a signal so I can find
out where that code is.
I'm not sure how you would get that signal to every thread though,
perhaps some trick with
/proc to find all the threads in the process.
DS
.
- Follow-Ups:
- Re: accessing each pthread's context
- From: Clifford Heath
- Re: accessing each pthread's context
- References:
- accessing each pthread's context
- From: bcreane
- accessing each pthread's context
- Prev by Date: Re: temporary disable thread switching using pthreads
- Next by Date: Re: Error in MultiThreaded application
- Previous by thread: Re: accessing each pthread's context
- Next by thread: Re: accessing each pthread's context
- Index(es):