Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40464 - gdb fails on "run" with "Cannot find user-level thread" with multithreaded programs
Summary: gdb fails on "run" with "Cannot find user-level thread" with multithreaded pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 41435
  Show dependency tree
 
Reported: 2004-02-05 03:48 UTC by Gen Zhang
Modified: 2004-02-18 01:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gen Zhang 2004-02-05 03:48:32 UTC
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"
Comment 1 Gen Zhang 2004-02-05 05:03:45 UTC
gdb 6.0 works without problems.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 06:34:28 UTC
Right, its only gdb-6.0 that officially have nptl support.  I will mark
6.0 stable for x86.