This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

thread_get_info_callback: cannot get thread info: generic error


I get the error 
   
    thread_get_info_callback: cannot get thread info: generic error

when running on a Linux/IA64 box. Here are the details

% cat /proc/version
Linux version 2.6.9-5.EL (bhcompile@bullwinkle.build.redhat.com) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:23:24 EST 2005


GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4).
Compiled on a Linux 2.4.20 system on 2004-12-20.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.

Gdb session is as follows:
% ~/local-ialinux/bin/gdb <debuggee>
GNU gdb 6.3.50.20050706
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ia64-unknown-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
 
(gdb) b main
Breakpoint 1 at 0x400000000000f9f2: file <filename>:<lineno>
(gdb) r <args>
Starting program: <debuggee> <args>
[Thread debugging using libthread_db enabled]
[New Thread 2305843009216923744 (LWP 5314)]
[Switching to Thread 2305843009216923744 (LWP 5314)]
 
Breakpoint 1, main (argc=2, argv=0x60000fffffffb828) at <somefile>:158
(gdb) c
Continuing.
thread_get_info_callback: cannot get thread info: generic error
(gdb) c
Continuing.
Cannot fetch general-purpose registers for thread 2305843009216923744: generic error
(gdb) c
Continuing.
Cannot fetch general-purpose registers for thread 2305843009216923744: generic error
(gdb) The program is running.  Exit anyway? (y or n) y
Hangs...

Would someone know what the problem is? I set LD_ASSUME_KERNEL
to make gdb use /lib/libthread_db.so.1 instead of the default
/lib/tls/libthread_db.so.1. I get a similar error.

% LD_ASSUME_KERNEL=2.4.1 ~/local-ialinux/bin/gdb <debuggee>
GNU gdb 6.3.50.20050706
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ia64-unknown-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
 
(gdb) b <SomeFunction>
Breakpoint 1 at 0x400000000000f9f2: file <filename>:<lineno>
(gdb) r <args>
Starting program: <debuggee> <args>
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 6760)]
Cannot find user-level thread for LWP 6760: generic error
(gdb) c
Continuing.
Cannot find thread 16384: generic error
(gdb) c
Continuing.
Cannot find thread 16384: generic error
(gdb) The program is running.  Exit anyway? (y or n) y
Hangs...

Thanks a lot for your help.

Bharadwaj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]