Re: How to map thread ids from gpm to pthread ids (159 Views)
Reply
Occasional Visitor
Posts: 1
Registered: ‎08-24-2006
Message 1 of 2 (159 Views)

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
Respected Contributor
Posts: 508
Registered: ‎01-30-2006
Message 2 of 2 (159 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.