Get Sig32 in libpthread in pthread_getconcurrency when runng apps through gdb. Sounds like Bug #2702? Reproducible: Always Steps to Reproduce: 1. 2. 3.
gcc version? gdb version? emerge info? sample output of debug session?
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.
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 ...
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
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.
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 ...
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.
Assuming fixed in latest versions, please reopen if not.