This is the mail archive of the
mailing list for the GDB project.
Re: thread debugging problem
> > Hi,
> > I'm trying to debug a multithreaded program in linux, but I'm not
> > to get any kind of thread info while running the program in gdb.
> > I've tested with gdb 5.3, 5.3.91 and cvs from yesterday (10th) not
> > of them works.
> > info thread shows nothing and the program stops with signal 32 when a
> > new thread starts.
> Hmmm, this usually indicates that there is no thread support
> available. Maybe the version of the Kernel you are using has some
> missing pieces. How about glibc-kernheaders?
> Do you get a message at gdb startu saying something about using
> > I'm using Trustix 2.0 with gcc 3.3 and glibc 2.3.2.
> Not sure what Trustix is.
> But those versions seem roughly ok.
> Can you post a gdb session?
This is the kernel installed.
root@labb ~# uname -a
Linux labb.mobilecity.nu 2.4.21-13trfirewall #1 Thu Jul 10 15:57:32 CEST 2003
i686 unknown unknown GNU/Linux
I have installed the glibc-devel rpms so the headers should be included.
Trustix is small firewall/gateway dist, http://www.trustix.net/
A sample gdb session, I do not see any message about libthread_db though.
This GDB was configured as "i686-pc-linux-gnu".
(gdb) file .libs/oasis
Reading symbols from .libs/oasis...done.
(gdb) run -f -d -F
Starting program: /usr/local/src/oasis-1.0/src/.libs/oasis -f -d -F
oasis version 1.0
Copyright (c) 2002, Royal Institute of Technology. All rights reserved.
parsing configuration file /usr/local/etc/oasis.conf...
09:06:25 oasis[16384/23845]: initializing...
09:06:25 oasis[16384/23845]: registered probe library libprobe_arping.so for
09:06:25 oasis[16384/23845]: resetting firewall on domain BOGUS.COM
09:06:25 oasis[16384/23845]: spawned /usr/local/sbin/oasis-firewall-sample
09:06:25 oasis[16384/23845]: /usr/local/sbin/oasis-firewall-sample
returned status 0
Program received signal SIG32, Real-time event 32.
0x401c42cc in sigsuspend () from /lib/libc.so.6
(gdb) 09:06:25 oasis[16386/23851]: monitoring thread starting
(gdb) info thread
(gdb) thread 1
Thread ID 1 not known.