Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

How to map thread ids from gpm to pthread ids

cflorendo
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
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.