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
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
|
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
btw 0.146.u2-1 does not work.
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