Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168785 - segfault in net-p2p/giftui-0.4.1 (stack trace attached)
Summary: segfault in net-p2p/giftui-0.4.1 (stack trace attached)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 20:50 UTC by Aniruddha Shankar
Modified: 2009-10-23 12:33 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 Aniruddha Shankar 2007-02-28 20:50:12 UTC
net-p2p/giftui-0.4.1 segfaults thusly:

karim@bodhi ~ $ giftui
Segmentation fault

I recompiled with -g -ggdb and nostrip and had to additionally recompile (with debug enabled) glibc, glib and gtk+ before stack trace stopped showing ??s. 

stack trace:

karim@bodhi ~ $ gdb /usr/bin/giftui giftui-core
GNU gdb 6.6
Copyright (C) 2006 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"...
Using host libthread_db library "/lib/libthread_db.so.1".
/home/karim/giftui-core: No such file or directory.
(gdb) run
Starting program: /usr/bin/giftui
[Thread debugging using libthread_db enabled]
[New Thread -1219660112 (LWP 12035)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219660112 (LWP 12035)]
0xb77ca283 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0xb77ca283 in strlen () from /lib/libc.so.6
#1  0xb7974f9e in IA__g_strdup (str=0x4 <Address 0x4 out of bounds>) at gstrfuncs.c:90
#2  0xb7e0064d in IA__gtk_tree_view_column_set_title (tree_column=0x8134ba0, title=0x4 <Address 0x4 out of bounds>)
    at gtktreeviewcolumn.c:2066
#3  0x08057aae in giftui_about_init ()
#4  0xb79f3596 in IA__g_type_create_instance (type=135492472) at gtype.c:1569
#5  0xb79d96b2 in g_object_constructor (type=135492472, n_construct_properties=0, construct_params=0x0) at gobject.c:1041
#6  0xb79d7898 in IA__g_object_newv (object_type=135492472, n_parameters=1, parameters=0x8139c00) at gobject.c:937
#7  0xb79d84c4 in IA__g_object_new_valist (object_type=135492472, first_property_name=0x8065319 "close", var_args=0xbf895c4c "")
    at gobject.c:1022
#8  0xb79d85d0 in IA__g_object_new (object_type=135492472, first_property_name=0x8065319 "close") at gobject.c:795
#9  0x08058705 in giftui_about_new ()
#10 0x08051841 in giftui_main_window_load_tabs ()
#11 0x08051aa5 in giftui_main_window_create ()
#12 0x08051cbf in main ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

emerge --info: 

Portage 2.1.2-r12 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.9
Timestamp of tree: Wed, 28 Feb 2007 04:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -g -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -g -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.mirrors.tds.net/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="en_GB en hi_IN hi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl alsa apache2 automount bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cli cpudetection cracklib crypt dbus dhcp dri dts dv dvd encode exif ffmpeg firefox flac fortran gdbm gif glitz gnutls gpm hal iconv ieee1394 imagemagick imlib isdnlog java javascript jbig jce jpeg kde kdeenablefinal kdexdeltas kerberos lame libcaca libg++ libnotify lm_sensors mad midi mikmod mmap mmx mmxext mng mono mp3 mp4 mpeg msn musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre pdf perl php png ppds pppd python qt3 qt3support quicktime readline real reflection rtc samba sdl sensord session skins socks5 sound speex spell spl sqlite sse sse2 ssl startup-notification svg swat tcltk tcpd theora tiff tk truetype truetype-fonts type1-fonts unicode utempter vcd visualization vorbis win32codecs wmf wxwindows x264 x86 xforms xinerama xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en hi_IN hi" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[I] dev-libs/glib (1.2.10-r5(1)@01/09/07 2.12.9(2)@03/01/07)
[I] sys-libs/glibc (2.5(2.2)@02/28/07)
[I] x11-libs/gtk+ (2.10.9(2)@03/01/07)
Comment 1 Aniruddha Shankar 2007-02-28 21:58:40 UTC
i'm sorry, wrongly assigned to kde team. please reassign to net-p2p
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2008-01-16 15:56:39 UTC
Still happening with -r1?
Comment 3 Aniruddha Shankar 2008-05-01 14:14:16 UTC
Holy Necrobug! 

-r1 is not  segfaulting anymore (only cursory tests done) seems to be fixed.
Comment 4 Aniruddha Shankar 2009-03-03 19:32:07 UTC
please mark as fixed :)