Subject: Problems with gdb and threads
To: None <current-users@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: current-users
Date: 06/23/2005 13:34:47
Hi!

I tried running amarokapp (from pkgsrc/audio/amarok) in gdb on
3.99.6/i386 to track down a problem (see
http://bugs.kde.org/show_bug.cgi?id=107992 ) but it gets a "generic
error" and doesn't continue:

# gdb /usr/pkg/bin/amarokapp 
GNU gdb 5.3nb1
Copyright 2002 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 "i386--netbsdelf"...(no debugging symbols found)...
(gdb) r
Starting program: /usr/pkg/bin/amarokapp 
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...thread_resume_suspend_cb: td_thr_suspend(0xa3bc2c0): generic error.
[Switching to LWP 1]
Stopped due to shared library event
(gdb) c
Continuing.
thread_resume_suspend_cb: td_thr_suspend(0xa3bc2c0): generic error.
0xbdbf7444 in _rtld_debug_state () from /usr/libexec/ld.elf_so
(gdb) c
Continuing.
thread_resume_suspend_cb: td_thr_suspend(0xa3bc2c0): generic error.
0xbdbf7444 in _rtld_debug_state () from /usr/libexec/ld.elf_so
(gdb)

What's wrong here?
Can one debug threaded applications in gdb?
 Thomas