Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74424 - gdb-6.0-r1 crashes on signal reception after reload of executable
Summary: gdb-6.0-r1 crashes on signal reception after reload of executable
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 13:02 UTC by Johan Verrept
Modified: 2005-04-22 21:50 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 Johan Verrept 2004-12-14 13:02:15 UTC
gdb crashes on reception of a signal in a running process if the executable has been reread after a change.


Reproducible: Sometimes
Steps to Reproduce:
1. start gdb with executable
2. start executable
3. press interrupt
4. recompile executable
5. press run
6. press interrupt

Actual Results:  
gdb coredumps.



Portage 2.0.51-r3 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.7 x86_64)
=================================================================
System uname: 2.6.7 x86_64 12
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aim alsa amd64 apache2 apm avi berkdb bitmap-fonts bonobo cdr
crypt cups curl dvd dvdr encode esd ethereal f77 foomaticdb fortran gdbm gif
gnome gpm gstreamer gtk gtk2 icq imlib jpeg ldap libg++ libwww mad mikmod motif
mozilla mpeg msn mysql ncurses nls nogcj oggvorbis opengl oss pam pdflib perl
png python quicktime readline sdl slang spell ssl tcltk tcpd truetype xml2 xmms
xv zlib"
Comment 1 Johan Verrept 2004-12-14 13:03:28 UTC
core backtrace.

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 "x86_64-pc-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `gdb -q -fullname test'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...
done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libthread_db.so.1...done.
Loaded symbols for /lib/libthread_db.so.1
#0  0x000000000050ed45 in dwarf2_frame_base_p ()
(gdb) bt
#0  0x000000000050ed45 in dwarf2_frame_base_p ()
#1  0x000000000050e895 in dwarf2_frame_sniffer ()
#2  0x00000000004cb720 in frame_unwind_find_by_frame ()
#3  0x00000000004caf85 in get_frame_type ()
#4  0x000000000047e7af in print_frame_info ()
#5  0x000000000047e355 in unset_in_environ ()
#6  0x00000000004c29ea in catch_exceptions ()
#7  0x00000000004c2945 in throw_exception ()
#8  0x00000000004c2a27 in catch_errors ()
#9  0x000000000047e38f in print_stack_frame ()
#10 0x000000000047b329 in normal_stop ()
#11 0x00000000004a5f44 in find_default_create_inferior ()
#12 0x0000000000475eaf in tty_command ()
#13 0x000000000043b80f in _initialize_cli_dump ()
#14 0x000000000043d47e in cmd_func ()
#15 0x00000000004c2d3a in execute_command ()
#16 0x0000000000483e9b in async_disable_stdin ()
#17 0x00000000004842d7 in async_disable_stdin ()
#18 0x000000000058be73 in rl_callback_read_char ()
#19 0x0000000000483809 in delete_timer ()
#20 0x0000000000483d9c in stdin_event_handler ()
#21 0x0000000000482dbe in delete_file_handler ()
#22 0x0000000000482824 in _initialize_interpreter ()
---Type <return> to continue, or q <return> to quit---
#23 0x0000000000482881 in gdb_do_one_event ()
#24 0x00000000004c29ea in catch_exceptions ()
#25 0x00000000004c2945 in throw_exception ()
#26 0x00000000004c2a27 in catch_errors ()
#27 0x00000000004828aa in start_event_loop ()
#28 0x0000000000439689 in main ()
(gdb)
Comment 2 SpanKY gentoo-dev 2005-02-22 19:50:16 UTC
try any newer gdb's to see if they resolve this ?
Comment 3 SpanKY gentoo-dev 2005-04-22 21:50:00 UTC
6.3 is stable now