FS#29986 - [sdlmame] Segmentation from version 0fault on i686

Attached to Project: Community Packages
Opened by Marco Pompili (marcs) - Wednesday, 23 May 2012, 15:42 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 02 August 2012, 17:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture i686
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 10
Private No

Details

Description:
Segmentation fault on a i686 installation.

Additional info:
* package version(s): 0.145u6-1 0.145u7-1 0.145u8-1 0.146-1
* version 0.145u4 is working

Steps to reproduce:
* Install any version of the above on a i686 system.
* Try to launch the emulator form console.

/usr/bin/sdlmame: line 58: 2037 Segmentation fault ./sdlmame "$@"
Segmentation fault on the bash script line 58 when the script launches /usr/share/sdlmame/sdlmame

Launching the /usr/share/sdlmame/sdlmame executable we got a Segmentation Fault, this is the message from dmesg:
sdlmame[2099]: segfault at 1 ip 0a200436 spbfbfafb0 error 4 in sdlmame[8048000+4203000]
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 02 August 2012, 17:45 GMT
Reason for closing:  Fixed
Comment by Marco Pompili (marcs) - Wednesday, 23 May 2012, 15:43 GMT
I push return by accident, anyway the title is: [sdlmame] Segmentation from version 0.145u6 fault on i686
Comment by Sergej Pupykin (sergej) - Thursday, 24 May 2012, 08:29 GMT
Did you do "pacman -Syu" before? I have no i686 system, but can not reproduce on x86_64.
Comment by Joran Martinière (omer666) - Friday, 25 May 2012, 19:23 GMT
I've got exactly the same problem as described, i686, arch up to date.
Comment by Giovanni (ksniffer) - Monday, 28 May 2012, 19:42 GMT
I have a i686 architecture. I have the same issue.
Comment by Rogue Wolf (roguewolf) - Friday, 01 June 2012, 13:28 GMT
Same here: i686, Arch up to date.
Comment by Joran Martinière (omer666) - Wednesday, 13 June 2012, 11:49 GMT
Still have the same error with version 0.146.u1-1
Comment by Joran Martinière (omer666) - Tuesday, 03 July 2012, 12:30 GMT
0.146.u2-1 : Still doesn't work.
Comment by Nicolò Barbon (smilzoboboz) - Tuesday, 03 July 2012, 20:21 GMT
same here, i686, stopped working from 0.145u4.
btw 0.146.u2-1 does not work.
Comment by Michael.S.G. (ozfalcon) - Wednesday, 04 July 2012, 00:15 GMT
Update:
Mame 0.146u2 Does work. But it must be compiled with the OPTIMIZE=2 option.

This appears to be a GCC 4.7.X related Bug, See this thread:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678249

I'm not sure how to pass the command line OPTIMIZE option when compiling,
So I just edited the makefile and changed the line from OPTIMIZE=3 to OPTIMIZE=2.

Using OPTIMIZE=2 Should not effect run time performance, See OPTIMIZE documentation:
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html


Comment by Joran Martinière (omer666) - Wednesday, 01 August 2012, 22:23 GMT
Build 0.146.u4 : does not work.
Comment by Sergej Pupykin (sergej) - Thursday, 02 August 2012, 08:40 GMT
please try 0.146.u4-2
Comment by David Becker (dasmau89) - Thursday, 02 August 2012, 14:04 GMT
I have tried 0.146.u4-2 and it works on my 686 maschine

Loading...