Debugging threads on Linux/IA64
Bharadwaj Yadavalli
bharadwaj.yadavalli@hp.com
Fri Nov 21 17:51:00 GMT 2003
I have not been able to debug Linux/IA64 applications linked
with libpthread. I get the following errors depending on the
version of glibc (I believe depending on whether NPTL is
used or Linuxthreads is being used)
Cannot find user-level thread for LWP 6507: generic error
or
thread_get_info_callback: cannot get thread info: generic
error
I ran on RH Advanced Server 2.1AS(Derry) and RH AS release 3
(Taroon) systems with glibc-2.2.4-29.2.ia64 and
glibc-2.3.2-95.3.ia64 respectively.
I researched on the web as well as on the glibc and gdb
mailing lists along with some looking into the gdb 6.0
sources. Given that I found the failing call to be
td_thr_get_info in gdb/thread-db.c I also came aross the
description in
http://sources.redhat.com/ml/libc-alpha/2003-08/msg00106.html
It seems to me that this problem has been addressed.
>From the errata at
http://rhn.redhat.com/errata/RHSA-2003-249.html
it seems to me that glibc-2.2.4-32.8.ia64.rpm should fix the
problem. Does glibc-2.3.2-95.3.ia64 which I have on AS
release 3 predate glibc-2.2.4-32.8.ia64.rpm? What is the
glibc version I need to be running to be able to debug an
application linked with libpthread?
Thanks for your help,
Bharadwaj
More information about the Gdb
mailing list