Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42287 - getting sig32 debugging with glibc-2.3.3_pre20040207
Summary: getting sig32 debugging with glibc-2.3.3_pre20040207
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 11:14 UTC by Robert Davis
Modified: 2005-07-15 07:43 UTC (History)
2 users (show)

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 Robert Davis 2004-02-20 11:14:21 UTC
Get Sig32 in libpthread in pthread_getconcurrency when runng apps through gdb.  Sounds like Bug #2702?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-23 11:34:59 UTC
gcc version? gdb version? emerge info? sample output of debug session?
Comment 2 Robert Davis 2004-02-23 11:50:58 UTC
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-mm1)
=================================================================
System uname: 2.6.3-mm1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/"
USE="X aalib alsa apache2 avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb freetds gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml imlib jpeg kerberos ldap libg++ libwww mad mikmod mozilla moznocompose moznoirc moznomail mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
------

GNU gdb 6.0
Copyright 2003 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 "i686-pc-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
 
(gdb) run
Starting program: /usr/bin/zinf
(no debugging symbols found)...
Program received signal SIG32, Real-time event 32.
0x400f5510 in pthread_getconcurrency () from /lib/libpthread.so.0
(gdb)
------

The only thing I can find searching Google is some old messages that it was a bug fixed in older glibc and to update.  It happens on gdb xmms also.  I did try to recomile glibc with gcc 3.3.3 and it didn't help.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-23 12:20:53 UTC
Hmm, I get this with xmms:

--
(no debugging symbols found)...Detaching after fork from child process 21831.
 
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
(gdb) 
--

Which means xmms hooks SIGTRAP to stop debugging (if I am not mistaken here).
I use nptl though ...
Comment 4 Robert Davis 2004-02-23 12:33:25 UTC
Here is xmms output (no debug with xmms).  Note zinf WAS built with debug.  Also tried different CFLAGs with no effect.  Will try different kernel later just to make sure.

(gdb) run xmms
Starting program: /usr/bin/xmms xmms
(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)...
Program received signal SIG32, Real-time event 32.
0x40442510 in pthread_getconcurrency () from /lib/libpthread.so.0
Comment 5 Daniel Milne 2004-03-17 02:06:06 UTC
I also get SIG32 in ddd while debugging multithreaded programs. I remember hearing that it was related to lib/libpthread-0.10.so being stripped. 
Comment 6 Olivier Castan 2004-06-04 07:15:56 UTC
Not specific of x86 architecture, same bug on ppc :
$ gdb firefox-bin
GNU gdb 6.0
Copyright 2003 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 "powerpc-unknown-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/lib/MozillaFirefox/firefox-bin
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(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)...
Program received signal SIG32, Real-time event 32.
0x0fcf260c in pthread_create () from /lib/libpthread.so.0

Versions :
sys-libs/glibc-2.3.3_pre20040420-r1
sys-devel/gdb-6.0-r1
sys-devel/gcc-3.3.3_pre20040408-r1

and /lib/libpthread-0.10.so is stripped ...
Comment 7 Frederik Schmid 2004-06-14 16:48:44 UTC
I also ran into this bug recently. Tried to dig up some information and found this link:

http://lists.gnu.org/archive/html/bug-gdb/2001-03/msg00017.html

(gdb) handle SIG32 nostop
(gdb) handle SIG32 noprint

works around the problem for me, but doesn't solve it.
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 07:43:28 UTC
Assuming fixed in latest versions, please reopen if not.