crash/segfaulting when trying to change video mode

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Jester
New Member
Posts: 6
Joined: Wed Jan 26, 2005 9:02 pm

crash/segfaulting when trying to change video mode

Post by Jester »

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.

System information:
-ZSNES v1.42 32 bits --> ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), stripped
-Gentoo linux 64 bits running kernel 2.6.12-gentoo-r10 on AMD64 3200+ Newcastle, 1gb ram
-libsdl-1.2.8-r1
-emul-linux-x86-sdl-2.1 (32 bits sdl libs)
-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)

I'm pretty sure this isn't a 64 bits related issue since zsnes has been compiled as a 32 bits binary and is using x86 libs (provided by gentoo's emul-* packages). I also confirm these errors are not hardware related as I am dual-booting linux and windows xp and the same zsnes version works perfectly in windows. I also ran a memory test (memtest86) to make sure I had no corrupted memory.

Hope this is useful, tell me if you need more info. Thanks
Post Reply