Use gdb to debug a program linked with -lpthread. Even just hello world. I think this is to do with my glibc and gcc versions (NPTL enabled) -- glibc-2.3.3_pre20040117 and gcc-3.3.2-r5. A google search reveals: http://sources.redhat.com/ml/gdb/2003-07/msg00121.html, not sure whether this would help. Trying gdb-6.0 too see what changes. Reproducible: Always Steps to Reproduce: 1. Compile a simple hello world program with -g and -lpthread 2. gdb $( PROGRAM ) 3. >> run Actual Results: Starting program: /home/genneth/programming/test/hello Error while reading shared library symbols: Cannot find new threads: capability not available Cannot find user-level thread for LWP 9892: capability not available Expected Results: Starting program: /home/genneth/programming/test/hello hello, world Program exited normally. Portage 2.0.49-r21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -mcpu=pentium2 -fomit-frame-pointer -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -mcpu=pentium2 -fomit-frame-pointer -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/root/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acpi alsa esd fbcon freetype fs gif java jpeg maildir mmx ncurses nls nptl pam pic png readline sse ssl tcpd tiff truetype x86 xml2 xv zlib"
gdb 6.0 works without problems.
Right, its only gdb-6.0 that officially have nptl support. I will mark 6.0 stable for x86.