Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51117 - gdb can't debug programs
Summary: gdb can't debug programs
Status: RESOLVED DUPLICATE of bug 46186
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-15 02:02 UTC by Janis Blechert
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
full gdb output (bt,1.98 KB, text/plain)
2004-05-15 02:03 UTC, Janis Blechert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Blechert 2004-05-15 02:02:35 UTC
Everytime I try to use gdb to debug a program (that uses gtk+1/2), it shows the following scheme:

# gdb beep-media-player

(gdb) ha SIGPIPE nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        No      Yes             Broken pipe
(gdb) run
Starting program: /usr/bin/beep-media-player

Program received signal SIG32, Real-time event 32.
0x405c19f4 in pthread_getconcurrency () from /lib/libpthread.so.0

a full backtrace is attached

this is not only for beep-media-player but for any program using gtk+.

Reproducible: Always
Steps to Reproduce:
1. # gdb beep-media-player/amule
2. (gdb) run

Actual Results:  
Program received signal SIG32, Real-time event 32. 
0x405c19f4 in pthread_getconcurrency () from /lib/libpthread.so.0 

Expected Results:  
started the program normaly, like it does when I don't use gdb 

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 
Gentoo Base System version 1.4.10 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -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.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo 
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X alsa apm arts artswrappersuid avi berkdb cdr crypt cups debug dga 
dvd encode faad flac foomaticdb gdbm gif gstreamer gtk2 imlib java jbig jpeg 
kde kerberos ldap libg++ libwww mad mikmod mmx motif mpeg ncurses oggvorbis 
opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang 
slp spell ssl tcltk tcpd theora tiff truetype usb video_cards_nvidia videos 
wmf x86 xml2 xv xvid zlib"
Comment 1 Janis Blechert 2004-05-15 02:03:29 UTC
Created attachment 31459 [details]
full gdb output
Comment 2 Matthew Schulkind 2004-08-19 18:55:33 UTC
This is a gdb issue and unrelated to gentoo. One reference to the problem, including a possible gentoo fix is at http://www.skynet.ie/~caolan/TechTexts/OpenOfficeHacking.html
Googling should turn up more references.

If you try a non-pthreaded program then gdb should work just fine.

This bug should probably be marked as invalid.
Comment 3 SpanKY gentoo-dev 2004-08-19 19:26:20 UTC
we fixed our glibc already to not strip thread_db and pthread

*** This bug has been marked as a duplicate of 46186 ***