Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74707 - Gtoaster Segmentation fault when trying to run gtoaster
Summary: Gtoaster Segmentation fault when trying to run gtoaster
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-16 16:37 UTC by Marquez LaMaistres
Modified: 2005-07-25 21:12 UTC (History)
1 user (show)

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


Attachments
strace for gtoaster (gnome-toaster,77.52 KB, text/plain)
2004-12-16 16:38 UTC, Marquez LaMaistres
Details
I've got the same problem running gtoaster - segfaults with a popup window... Thanks je_fro the output from strace gtoaster (strace.gtoaster.txt,104.05 KB, text/plain)
2004-12-19 15:13 UTC, je_fro
Details
strace gtoaster on amd64 (strace.txt,93.66 KB, text/plain)
2005-01-02 11:19 UTC, Jeffrey Gardner (RETIRED)
Details
gtoaster segfault (gtoaster.trace,99.51 KB, text/plain)
2005-03-12 05:49 UTC, Naviathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marquez LaMaistres 2004-12-16 16:37:12 UTC
Gtoaster Segmentation fault when trying to run gtoaster. When I type gtoaster I get quick flash of the app then a Segmentation fault message. Also happens in root. Remerged with same result.

Reproducible: Always
Steps to Reproduce:
1.I emerged gtoaster-1.0_beta6
2.Open aterm and ran gtoaster
3.Segmentation fault

Actual Results:  
I get a message that reads, "Segmentation fault"

Expected Results:  
gtoaster should run.

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
                                                                             
2.6.9-ck3 i686)
=================================================================
System uname: 2.6.9-ck3 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  8 2004, 21:43:10)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r1
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -fprefet
                                                                            
ch-loop-arrays -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -ff
                                                                            
ast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
                                                                            
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -fpref
                                                                            
etch-loop-arrays -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -
                                                                            
ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org 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.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77
                                                                             
flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java jpeg libg++
                                                                             
libwww mad mikmod mmx motif mpeg nas ncurses nls nplt oggvorbis opengl pam pda 
                                                                            
pdflib perl png ppds python quicktime readline scanner sdl spell ssl svg svga tc
                                                                             pd
tiff truetype usb x86 xml xml2 xv zlib"
Comment 1 Marquez LaMaistres 2004-12-16 16:38:31 UTC
Created attachment 46180 [details]
strace for gtoaster

Here is the stack trace for gtoaster.
Comment 2 je_fro 2004-12-19 15:13:59 UTC
Created attachment 46373 [details]
I've got the same problem running gtoaster - segfaults with a popup window...
Thanks
je_fro


the output from strace gtoaster

This is the version of gtoaster I'm using...


$ ACCEPT_KEYWORDS='~amd64' emerge -p gtoaster
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild   R   ] app-cdr/gtoaster-1.0_beta6
Comment 3 je_fro 2004-12-19 15:15:42 UTC
$ emerge --info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r9 x86_64 AMD Opteron(tm) Processor 246
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="-march=opteron -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
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/terminfo /etc/env.d"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com http://gentoo.osuosl.org 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.namerica.gentoo.org/gentoo-portage"
USE="amd64 3xnowex X acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdr crypt cups directfb divx4linux dvd dvdr dvdread encode esd evo f77 fam fbcon flac foomaticdb fortran gb gd gd-external gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg jpg junit ldap libgda libwww live lzw lzw-tiff mad maildir motif mpeg multilib mysql ncurses network nls no_wxgtk1 nptl oggvorbis opengl oss pam pda perl plotutils png ppds python readline rtc sasl sdl spell ssl tcltk tcpd tiff truetype usb userlocales xml xml2 xmms xpm xprint xrandr xv xvid zlib"
Comment 4 grzewho 2004-12-23 05:46:51 UTC
same here, gtoaster dies without any reasons
Comment 5 Sergio Gelato 2004-12-28 17:32:09 UTC
Before the segfault I get a
        free(): invalid pointer 0x8475b0!
error message. (The value of the pointer changes from run to run.)

Running gtoaster under gdb reveals that the crash occurs during the first call
to datacopydlg_destroy().

The "invalid pointer" error is emitted from within
        gtk_widget_destroy(dlg->messagebox);
and the segmentation fault occurs shortly afterwards, in the call to
        free(dlg->threads[i]);
with i==0. 

The invalid pointer address coincides with the value of
        dlg->threads[0]->frame
just before the fatal free() call.

This is with
        x11-libs/gtk+-2.4.13-r1  -debug -doc +jpeg +tiff
        sys-libs/glibc-2.3.4.20040808-r1  -build -debug -erandom -hardened            
+multilib +nls -nptl -pic -userlocales
on amd64. Unfortunately, none of the usual memory debuggers (dmalloc, ccmalloc,
valgrind, efence) seem to be ready for amd64 yet.

This feels like a double- or triple-free. I note in passing that the gtoaster
code base is very sloppy about checking return codes from library calls (i.e.,
a cursory examination turned up several places where such checks were missing;
for example, the malloc() calls in datacopydlg_create() are unchecked).

The instructions on how to reproduce the problem may be incomplete. I find that
it occurs when I drag-and-drop an item from the "Unix tree" to the "/[CDROM]"
file list. (The drag-and-drop succeeds, the crash occurs when removing the
associated progress dialog.)
Comment 6 Jeffrey Gardner (RETIRED) gentoo-dev 2005-01-02 11:19:49 UTC
Created attachment 47391 [details]
strace gtoaster on amd64

I figured out how to strace to a text file:
strace gtoaster 2>strace.txt
Comment 7 Chad Granum 2005-02-18 23:26:37 UTC
I might point out that this bug says it is on x86 but I experiance the problem on amd64 only, not on my pentium 4, I noticed the output given here is also athlon64. I probably am stating something already realised, but as long as it is listed as x86 people looking for it might overlook it searching for amd64 bugs, I almost missed it.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2005-02-21 04:19:06 UTC
i have the same problem on my box. here's the gdb output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182931553184 (LWP 13716)]
0x0000002a9753a8f0 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0  0x0000002a9753a8f0 in strlen () from /lib/tls/libc.so.6
#1  0x0000002a974f4555 in gettext () from /lib/tls/libc.so.6
#2  0x0000000000427b14 in helpings_translatestringlist ()
#3  0x0000000000429ec3 in cddrives_init ()
#4  0x0000000000413c48 in main ()

Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r10 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4,dev-lang/python-2.4-r2 [2.4 (#1, Feb  9 2005, 14:48:36)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4, 2.4-r2
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.5, 1.4_p6, 1.9.4, 1.7.9-r1, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=opteron"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
CXXFLAGS="-O3 -pipe -march=opteron"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks sandbox userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/blubb/gentoo/gentoo-x86 /usr/local/portage"
SYNC="rsync://buggy/gentoo-portage"
USE="amd64 X aalib acpi alsa bitmap-fonts bonobo bzlib canna cdr chroot crypt cups curl dba divx4linux dvd encode esd f77 fam flac ftp gd gdbm gif gimp glx gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib java jp2 jpeg junit libwww lzw lzw-tiff mad mikmod mng motif mozdomi mozilla moznoirc moznomail moznoxft mozp3p mozsvg mp3 mpeg msn mysql ncurses network nls nptl ogg oggvorbis opengl pam perl png posix python readline samba sdl sematicfix slang speex sqlite ssl svg tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb userlocales utf8 xinerama xml xml2 xmms xpm xrandr xsl xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 9 Naviathan 2005-03-12 05:49:35 UTC
Created attachment 53250 [details]
gtoaster segfault

GToaster segfaulting on AMD64.	This problem still exists.
Comment 10 David Morgan 2005-03-16 06:13:22 UTC
This isn't amd64 only, I experience the same problem on ~x86 (as does the person who reported it originally, however I have sensible CFLAGS (-O2 -march=pentium4 -pipe))

Would a gdb backtrace on x86 be helpful?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-06-11 23:16:36 UTC
This ebuild is no longer in portage, closing this bug.