Operating System - Linux
1753870 Members
7345 Online
108809 Solutions
New Discussion

How to map thread ids from gpm to pthread ids

 
cflorendo
New Member

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 1
inventsekar_1
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.