Summary: | zsnes 1.42 crashes with glibc 2.4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Lemke <gentoo> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ben, erik.andren, gentoo-bugs, gentoo-bugzilla, hiram.castelo, leonardop, njdoyle+bugs, podfish, solstag, vallesroc |
Priority: | High | ||
Version: | 2005.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | zsnes-memfix.patch |
Description
Christian Lemke
2006-03-11 12:40:32 UTC
I can confirm this bug. emerge --info Portage 2.1_pre5-r4 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r0, 2.6.15.4 i686) ================================================================= System uname: 2.6.15.4 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 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 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="sv" 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="x86 X aac acpi akode alsa apm arts artswrappersuid asf avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo crypt cups dbus dri dvd dvdread eds emboss encode exscalibar foomaticdb fortran gdbm gif glitz gmb gnome gpm gst gstreamer gstreamer10 gtk gtk2 hal imlib ipod ipv6 java jpeg kde ldap libcaca libg++ libwww mad mikmod mmap mmx mmxext motif mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pdf pdflib perl png python qt quicktime readline real samba sdl sharedmem spell sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 video_cards_radeon vorbis wifi win32codecs xanim xcomposite xine xml2 xmms xv xvid zeroconf zlib elibc_glibc input_devices_mouse input_devices_evdev input_devices_keyboard input_devices_synaptics kernel_linux linguas_sv userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS Me too! Portage 2.1_pre6-r2 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5-niskel x86_64) ================================================================= System uname: 2.6.15-gentoo-r5-niskel x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5-r2, 2.4.2-r1 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-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fno-ident" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en" 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="amd64 X a52 aac alsa asf avi berkdb bitmap-fonts bzip2 cairo crypt cups dri dvd dvdr eds emboss encode flac foomaticdb fortran gif glut gpm gtk2 hal imlib ipv6 java jpeg kde lzw lzw-tiff mad mikmod mng mp3 mpeg musicbrainz ncurses nls nptl nptlonly nvidia ogg opengl pam pdflib perl png ppds python qt quicktime readline samba sdl speex spell ssl subversion svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis wifi xcomposite xpm xv xvid zlib elibc_glibc kernel_linux linguas_en userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG Created attachment 82265 [details, diff]
zsnes-memfix.patch
Hi guys,
I also came across this problem after upgrading to glibc-2.4. At first I thought it had to do with the changes regarding threads in the new glibc, but after running zsnes through gdb I noticed that this was actually a trivial memory corruption bug in zsnes that apparently the old glibc wasn't detecting.
Anyway, this is the patch I created to solve it; it works for me, but please test and perhaps report upstream.
Thanks.
Your patch resolved the issue for me. Thanks a bunch, You should notify the zsnes devs of this issue. (In reply to comment #4) > Your patch resolved the issue for me. Thanks a bunch, > You should notify the zsnes devs of this issue. > Not comfortable with re-digesting my own ebuilds (yet) and using diff to patch. could someone handhold me at podfish at gmail dot com? Thanks! According to the zsnes devs, this patch is irrelevant--it's been fine in CVS for months, and I should use that instead. Maybe they should release, then? yes, I would love to see them do a real release. ....so, is this patch going into portage? does it negatively affect machines with <glibc-2.4? I'm suffering this problem. I don't understand what's stopping its fixing: - There's a patch. - There are newer versions (see 131198) with their own ebuilds. http://www.gentoo.org/proj/en/desktop/games/#doc_chap5_sect10 Time is what is stopping it. There's only so many of us that can do the necessary testing and then commit the patch. I'm sorry, but have some patience. We all have lives and families just like the rest of you, and none of us are paid to do this. works for me. This patch has now been sent upstream. Just out of interest, how long is this likely to take? (to become part of portage I mean). *** Bug 142233 has been marked as a duplicate of this bug. *** Is this bug related to the "Illegal Instruction" bug? (run zsnes, says Illegal Instruction in the terminal then exits) or is that a seperate issue? in portage. thanks for the bug report and patch. right on! Thank you for taking the time, Mr. Bones. and thanks for the patch, Leonardo! Uhm, not to nitpick, but shouldn't you either bump 1.42 to -r1 or make the next ver stable? RESOLVED FIXED is a funny state for a bug where people who already have zsnes installed have to re-emerge manually (after they hunted bugzilla for this, that is). |