Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

How to map thread ids from gpm to pthread ids

Occasional Visitor

How to map thread ids from gpm to pthread ids

Hello,

I'm currently debugging a process hang using
gpm. When I connect to the process and list its threads with the gpm process thread window, I get a list of thread ids. I'm need to map these thread ids to the thread ids inside the process as reported by pthread_self().

For this particular issue gdb cannot be used to examine the process because gdb hangs when attempting to connect to the process in the hung state, so I dump my own stack from inside the process using
U_STACK_TRACE() for each thread and report its thread id with pthread_self(). These numbers do not match.

Thanks,
Colin Florendo
1 REPLY
Highlighted
Respected Contributor Respected Contributor

Re: How to map thread ids from gpm to pthread ids

Hi Colin Florendo,

i am not good on thread programming but i remember a link where u can find information:

http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5944,00.html

sorry, if this is not what u want.
Be Tomorrow, Today.