Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106953 - zsnes: crash/segfaulting when trying to change video mode
Summary: zsnes: crash/segfaulting when trying to change video mode
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Timothy Redaelli (RETIRED)
URL:
Whiteboard:
Keywords:
: 106954 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-22 22:19 UTC by Jeff
Modified: 2007-02-02 10:09 UTC (History)
1 user (show)

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


Attachments
strace (zstrace,10.10 KB, text/plain)
2005-09-26 11:58 UTC, Jeff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff 2005-09-22 22:19:34 UTC
Zsnes 1.42 emerges fine, but lots of problems:

When clicking the game -> load button or sometimes when starting zsnes (not
always, about 2 times out of 5), it crashes with either of these 2 errors:
*** glibc detected *** malloc(): memory corruption: 0x085e1470 ***
Aborted

or this:
*** glibc detected *** free(): invalid pointer: 0x085e1470 ***

Also, when I try to change the video mode, zsnes freezes. If I wait a few
seconds before killing the window, I get this message on the shell:
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Here is an strace: http://pastebin.com/371695
It should be noted that the same segfault happens every time when starting zsnes
without doing anything else, then a new prompt is displayed with the normal
Zsnes messages getting displayed starting at line "$ ZSNES v1.42 (c) 1997-2005,
ZSNES Team" (don't know much about straces but that's first time I see this), so
I couldn't get an strace at the time of the "sdl parachute" error.

Reproducible: Always
Steps to Reproduce:
1.Start zsnes
2.Try to change video mode



Expected Results:  
Be able to change video mode without zsnes crashing, and possibly not getting a
segfault when starting it.

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r1,
2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/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="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca/ http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
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 aac aalib acl acpi alsa apm artworkextra avi bash-completion berkdb
bitmap-fonts browserplugin cdr crypt cups directfb dts dvd dvdr eds emacs emboss
encode esd fam fbcon ffmpeg firefox flac foomaticdb fortran gif gnome gpm
gstreamer gtk gtk2 hal howl imlib ipv6 java joystick jpeg libcaca lzw lzw-tiff
mad motif mozilla mp3 mpeg msn ncurses nfs nls nptl nptlonly nsplugin offensive
ogg oggvorbis opengl pam pdflib perl png python quicktime readline real samba
sdl slang socks5 spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode
usb userlocales vcd vim-with-x vorbis xine xml xml2 xmms xpm xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Jeff 2005-09-22 22:23:55 UTC
I forgot... here's some system specs and package info:

-ZSNES v1.42 (32 bits binary --> ELF 32-bit LSB executable, Intel 80386, version
1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), stripped)
-AMD64 3200+ Newcastle
-libsdl-1.2.8-r1
-emul-linux-x86-sdl-2.1
-emul-linux-x86-soundlibs-2.2
-alsa 1.0.9b
-Opengl and accelerated driver info:
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 Pro Generic
OpenGL version string: 1.3.5140 (X4.3.0-8.14.13)
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-09-23 05:33:31 UTC
*** Bug 106954 has been marked as a duplicate of this bug. ***
Comment 3 Jeff 2005-09-26 11:58:13 UTC
Created attachment 69280 [details]
strace
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2007-01-31 10:01:49 UTC
Can you try zsnes 1.5.1?