ZSNES Linux Crashes on exit [fixed]

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
xMetaRidley
Rookie
Posts: 12
Joined: Sat Feb 12, 2005 11:31 pm

ZSNES Linux Crashes on exit [fixed]

Post by xMetaRidley »

After compiling ZSNES, it runs fine until I exit, then it crashes. I tried CVS, WIP 10-13, and WIP 08-22 and I get the same result with all of them (I deleted ~./zsnes before running each of them). I have to end ZSNES with kill -9. I am using Ubuntu 5.10, I didn't have this problem with 5.04. Could it be because I am compiling with GCC 4.02?

autogen:

Code: Select all

ZSNES v1.42

SDL support                         Version 1.2.8
NASM support                        NASM version 0.98.38 compiled on Jun 27 2005
ZLib support                        Version 1.2.3
PNG support (png screenshots)       Yes, version 1.2.8
OpenGL support                      Yes
ZSNES:

Code: Select all

chris@laptop0:~/zsnes/src$ ./zsnes

ZSNES vPre 1.43, (c) 1997-2005, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.
Please report crashes to zsnes-devel@lists.sourceforge.net.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

ZSNES could not find any joysticks.
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Killed
Last edited by xMetaRidley on Wed Oct 19, 2005 7:50 am, edited 1 time in total.
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

Compile a debug version [pass --enable-debug to ./configure] and run it through gdb.
xMetaRidley
Rookie
Posts: 12
Joined: Sat Feb 12, 2005 11:31 pm

Post by xMetaRidley »

Code: Select all

(gdb) file zsnesd
Reading symbols from /home/chris/zsnes/src/zsnesd...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /home/chris/zsnes/src/zsnesd
[Thread debugging using libthread_db enabled]
[New Thread -1213933888 (LWP 28877)]

ZSNES vPre 1.43, (c) 1997-2005, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.
Please report crashes to zsnes-devel@lists.sourceforge.net.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

This is a work in progress build. It contains code which
May or may not be complete
[New Thread -1225389136 (LWP 28880)]
[New Thread -1235473488 (LWP 28883)]
ZSNES could not find any joysticks.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213933888 (LWP 28877)]
0xb7c493ee in free () from /lib/tls/i686/cmov/libc.so.6
EDIT: I finally fixed it, I had the SDL-ALSA package installed. I uninstalled that and went with the SDL-all package and it works now.
Post Reply