Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118355 - games-emulation/infones-0.93 segafults on exit
Summary: games-emulation/infones-0.93 segafults on exit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-08 21:27 UTC by Erik Musick
Modified: 2006-01-09 21:58 UTC (History)
1 user (show)

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


Attachments
infones-9.3-thread-join.patch (infones-0.93-thread-join.patch,1.04 KB, patch)
2006-01-09 17:13 UTC, Tupone Alfredo
Details | Diff
infones-0.93-r1.ebuild (infones-0.93-r1.ebuild,898 bytes, text/plain)
2006-01-09 17:14 UTC, Tupone Alfredo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Musick 2006-01-08 21:27:41 UTC
When quiting (Q), a segfault is returned. Tried turning off "ricer" cflags and ldflags to no effect.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-09 01:31:54 UTC
No real information here, reopen with emerge --info output and backtrace of the segfault - http://www.gentoo.org/doc/en/bugzilla-howto.xml
Comment 2 Erik Musick 2006-01-09 11:47:35 UTC
My apologies. Thanks for pointing me in the right direction Jakub. Hoepfully this is better; if anyone needs anything I'll be more than happy to see what I can do.

Emerge Info (prior to following the bugzilla guide):
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-ck6 i686)
=================================================================
System uname: 2.6.14-ck6 i686 Mobile AMD Sempron(tm) Processor 3000+
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -fomit-frame-pointer -frename-registers -ftracer -finline-limit=600 -finline-all-stringops -pipe -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -fomit-frame-pointer -frename-registers -ftracer -finline-limit=600 -finline-all-stringops -pipe -fno-ident -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo  http://gentoo.mirrors.pair.com/"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"
MAKEOPTS="-j2"
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="x86 X alsa apm audiofile avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode expat foomaticdb fortran gdbm gif gmp gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg junit lcms libg++ libwww mad mikmod mng motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline samba spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml2 xmms xv xvid zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS


Backtrace (following bugzilla guide; C/CXXFlags="-O1 -pipe -g -ggdb" and no LD):
(gdb) run
Starting program: /usr/games/bin/InfoNES 

Program received signal SIGSEGV, Segmentation fault.
0xb7d5210c in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0  0xb7d5210c in pthread_join () from /lib/libpthread.so.0
#1  0x0807da83 in close_application (widget=0x815aa48, event=0x0, data=0x0)
    at InfoNES_System_Linux.cpp:443
#2  0x0807d5cb in add_key (widget=0x3, event=0x3, callback_data=0x0)
    at InfoNES_System_Linux.cpp:257
#3  0xb7e6e665 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
#4  0x081629f8 in ?? ()
#5  0x00000000 in ?? ()
(gdb) quit
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2006-01-09 15:16:26 UTC

*** This bug has been marked as a duplicate of 118353 ***
Comment 4 Erik Musick 2006-01-09 15:47:20 UTC
118353 is in regards to nestra. This is infones. Am I missing something?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2006-01-09 15:50:46 UTC
comment #1 from bug #118353 is pretty much going to apply to all your bug reports.
Comment 6 Erik Musick 2006-01-09 15:58:04 UTC
This isn't an LDFlag issue. Perhaps you missed that in my original post and the latter one where I provided debug information on this bug?
Comment 7 Erik Musick 2006-01-09 16:02:01 UTC
Furthermore, although no one would know this, I check disabling C and LD Flags prior to bugging. I asked in #gentoo-bugs about bugging problems with LDFlags specifically and was told pretty much that it "wouldn't hurt". If LDFlags in `emerge info` are going to be the cause of all bugs being dropped, then I'll make sure to comment them out for the future and will disregard all bugs specifically involving LDFlags. I'm just trying to get this straight to save future efforts on everyone's part. Thanks.
Comment 8 Tupone Alfredo gentoo-dev 2006-01-09 17:13:20 UTC
Created attachment 76679 [details, diff]
infones-9.3-thread-join.patch

Patch to fix segv on quit
Comment 9 Tupone Alfredo gentoo-dev 2006-01-09 17:14:40 UTC
Created attachment 76680 [details]
infones-0.93-r1.ebuild

Ebuild with patch added
Comment 10 SpanKY gentoo-dev 2006-01-09 17:16:14 UTC
FYI these flags are completely pointless:
-Wl,--enable-new-dtags
-Wl,--strip-all

we patch binutils to enable new dtags by default and portage does a strip all for you already
Comment 11 Erik Musick 2006-01-09 17:24:43 UTC
I thought so about strip-all, but thanks for the tip about dtags.
Comment 12 SpanKY gentoo-dev 2006-01-09 17:29:10 UTC
newer versions fix this
Comment 13 SpanKY gentoo-dev 2006-01-09 17:29:44 UTC
0.97 now in portage, thanks Tupone