1753301 Members
6936 Online
108792 Solutions
New Discussion юеВ

gdb - invalid thread id

 
JUP
Regular Advisor

gdb - invalid thread id

May have posted in wrong group, so I;ve re-posted here. Sorry.

Hi

trying to debug a core dump on HPUX Itanium 11.23.

I ran

/opt/langtools/bin/gdb lant core


and got following:


Core was generated by `lant'.
Program terminated with signal 11, Segmentation fault.

warning: No unwind information found.
Skipping this library /usr/lib/hpux32/libcl.so.1.

Internal error : Invalid thread id 294912

I tried a 'bt' to get backtrace stack and got the following:

(gdb) bt
Internal error : Invalid thread id 294912


Does anyone have an idea of what the problem may be ?


Doing a "gdb +version" returns:

HP gdb 4.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.


The program lant is a C program compiled with debug options on. Although its on an Itanium system, everything is compiled as 32 bit due to the data alignment we require.




Any help would be much appreciated.

Thanks in advance
JUP
3 REPLIES 3
David Johns
Advisor

Re: gdb - invalid thread id

Hi:

If I recall correctly, seg faults are caused by a program trying to access memory that is not mapped into the process address space. Electric Fence can help you trace where the illegal memory access is taking place.

http://hpux.cs.utah.edu/hppd/hpux/Development/Tools/ElectricF-2.05/

Regards,
Dave
JUP
Regular Advisor

Re: gdb - invalid thread id

Thanks David for your reply.

However ElectricFence is not available for the Itanium - only PA-RISC (32 & 64 bit).

Has anyone else any ideas of what is causing this problem.

Thanks
JUP
Ermin Borovac
Honored Contributor

Re: gdb - invalid thread id

No idea what's causing the problem, but I would try the new version (5.0) from

http://www.hp.com/go/wdb