FS#28368 - [snes9x-gtk] segfault when loading rom

Attached to Project: Community Packages
Opened by Rémy (ogredebarbarie) - Saturday, 11 February 2012, 22:41 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 24 May 2014, 21:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Segmentation fault when a Rom is loaded.

Additional info:
package version : 1.53-3
system information :
Linux 3.2.5-1-ARCH #1 SMP PREEMPT x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/Linux

Sound buffer size: 4096 (1024 samples)
ALSA sound driver initializing...
--> (Device: default)...OK
--> (16-bit, Stereo, 32000hz, 32 ms)...OK
Segmentation fault

Steps to reproduce:
Install snes9x-gtk
Launch it
Click File->Open and load a ROM.
Now the program should crash
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 24 May 2014, 21:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  snes9x-gtk-1.53-8
Comment by Alexander F. Rødseth (xyproto) - Sunday, 12 February 2012, 09:32 GMT
Unable to reproduce. Does this only happen with a particular rom file? What happens if you temporarily move ~/.snes9x to ~/.snes9x.backup ?
Comment by Rémy (ogredebarbarie) - Sunday, 12 February 2012, 11:23 GMT
If I move ~/.snes9x to ~/.snes9x.backup, snes9x-gtk is even unable to load any rom ( I tested 5 roms). However, if I launch a rom by click it in my folder manager (Dolphin), snes9x-gtk is lauched and there is no segmentation fault.

So this bug seems to appear only when you load the rom with File->Open...
Comment by Alexander F. Rødseth (xyproto) - Sunday, 12 February 2012, 23:05 GMT
Thanks for the additional information. I used File->Open with two different roms and both worked fine here. Any possibility of providing the name of one of the roms that doesn't work?
Perhaps you could make someone else (on IRC?) test with one of the roms that doesn't work, if you don't wish to disclose the names of any roms here? Thanks.
Comment by Rémy (ogredebarbarie) - Monday, 13 February 2012, 15:28 GMT
Hi. I don't know how, but now i can load roms without segfault... It's very strange. Well, I suppose you can delete this report..
Thanks for your help.
Comment by Alexander F. Rødseth (xyproto) - Monday, 13 February 2012, 16:35 GMT
Perhaps you were out of disk space or there is something wrong with your computer? (Sometimes overheating leads to surprising behavior).
Comment by Rémy (ogredebarbarie) - Monday, 13 February 2012, 17:52 GMT
Obviously, I am not sure, but my disk space doesn't seems to be the problem :
$ df -h
Sys. fich. Taille Util. Dispo Uti% Monté sur
rootfs 47G 8,2G 36G 19% /
/dev 1,9G 0 1,9G 0% /dev
/run 1,9G 280K 1,9G 1% /run
/dev/sda6 47G 8,2G 36G 19% /
shm 1,9G 80K 1,9G 1% /dev/shm
tmpfs 1,9G 52K 1,9G 1% /tmp
/dev/sda7 86G 4,9G 77G 6% /home

$ free -t -m
total used free shared buffers cached
Mem: 3750 3296 453 0 33 2374
-/+ buffers/cache: 888 2862
Swap: 681 1 679
Total: 4431 3298 1133
However, I had some problems with temperature.. My laptop is bad, it has a ATI Radeon card and an Intel card, but i disabled my ATI card (in BIOS) because it overheated a lot in idle! (Something like 90°C). But without this card, temperatures seem to be correct :
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +55.0°C (crit = +100.0°C)
temp2: +40.0°C (crit = +100.0°C)
temp3: +57.0°C (crit = +100.0°C)

I will check my memory with MemTest to see if the problem comes from it, but arch is very stable.. :/


Comment by Diego Viola (diegoviola) - Friday, 02 May 2014, 08:45 GMT
I have the same problem with snes9x-gtk.

I'm able to reproduce the problem if I go to File - Open ROM Image... then select the ROM from "Recently Used".

However, if I go to File - Open ROM Image... "diego", then I load my ROM from my home dir or any other dir, snes9x-gtk doesn't crash.

Opening a ROM from "Open Recent" also doesn't result in crashing. It would only crash if I open a ROM from "Recently Used".
Comment by Eric Belanger (Snowman) - Saturday, 10 May 2014, 23:56 GMT
Can't reproduce. Report upstream.
Comment by Diego Viola (diegoviola) - Monday, 19 May 2014, 10:22 GMT Comment by Diego Viola (diegoviola) - Thursday, 22 May 2014, 10:58 GMT
They just fixed the issue I had, I guess this can now be closed?

Unless this issue refers to another issue with crashing.

https://code.google.com/p/snes9x-gtk/issues/detail?id=66

Here's the fix:

https://github.com/snes9xgit/snes9x/commit/6d74746342a73cf65db215f4fdecdfb0cae66792

Thanks.

Loading...