Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
02745 Crash/Freeze Critical (emulator) Always Dec 17, 2008, 18:55 Dec 22, 2008, 03:38
Tester belegdol View Status Public Platform SDLMAME
Assigned To aaron Resolution Fixed OS Linux
Status [?] Resolved Driver
Version 0.128u6 Fixed in Version 0.128u7 Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 02745: all sets using autosave: Games using autosave segfault on startup
Description Games using autosave will segfault on startup whenever there is auto.sav present. I tried mk, mk2, mk3, umk3, pbobble and puckman. Tested on Fedora 10 x86_64. The backtrace is as follows:
Program received signal SIGSEGV, Segmentation fault.
0x00000032b4409292 in inflateInit2_ (strm=0x7fffe87a2570, windowBits=15,
version=<value optimized out>, stream_size=112) at inflate.c:162
162 state = (struct inflate_state FAR *)
Missing separate debuginfos, use: debuginfo-install GConf2-2.24.0-1.fc10.x86_64 ORBit2-2.14.16-1.fc10.x86_64 SDL-1.2.13-6.fc10.x86_64 atk-1.24.0-1.fc10.x86_64 cairo-1.8.0-1.fc10.x86_64 dbus-glib-0.76-3.fc10.x86_64 dbus-libs-1.2.8-1.fc10.x86_64 e2fsprogs-libs-1.41.3-2.fc10.x86_64 expat-2.0.1-5.x86_64 fontconfig-2.6.0-3.fc10.x86_64 freetype-2.3.7-1.fc10.x86_64 gdbm-1.8.0-29.fc10.x86_64 glib2-2.18.3-2.fc10.x86_64 gtk2-2.14.4-3.fc10.x86_64 libICE-1.0.4-4.fc10.x86_64 libSM-1.1.0-2.fc10.x86_64 libX11-1.1.4-6.fc10.x86_64 libXau-1.0.4-1.fc10.x86_64 libXcomposite-0.4.0-5.fc10.x86_64 libXcursor-1.1.9-3.fc10.x86_64 libXdamage-1.1.1-4.fc9.x86_64 libXdmcp-1.0.2-6.fc10.x86_64 libXext-1.0.4-1.fc9.x86_64 libXfixes-4.0.3-4.fc10.x86_64 libXi-1.1.3-4.fc9.x86_64 libXinerama-1.0.3-2.fc10.x86_64 libXrandr-1.2.3-1.fc10.x86_64 libXrender-0.9.4-3.fc9.x86_64 libasyncns-0.7-1.fc10.x86_64 libcap-2.10-2.fc10.x86_64 libpng-1.2.33-1.fc10.x86_64 libselinux-2.0.73-1.fc10.x86_64 libxcb-1.1.91-5.fc10.x86_64 pango-1.22.3-1.fc10.x86_64 pixman-0.12.0-2.fc10.x86_64 pulseaudio-libs-0.9.13-6.fc10.x86_64
(gdb) bt
#0 0x00000032b4409292 in inflateInit2_ (strm=0x7fffe87a2570, windowBits=15,
version=<value optimized out>, stream_size=112) at inflate.c:162
#1 0x0000000000fd0437 in gtk_widget_set_sensitive ()
#2 0x00000000008d3ad5 in gtk_widget_set_sensitive ()
#3 0x00000000008b5740 in gtk_widget_set_sensitive ()
#4 0x00000000008b65d7 in gtk_widget_set_sensitive ()
#5 0x000000000088b2c9 in gtk_widget_set_sensitive ()
#6 0x00000000008609cf in gtk_widget_set_sensitive ()
#7 0x00000032b341e576 in __libc_start_main (
main=0x860980 <gtk_widget_set_sensitive+4562072>, argc=2,
ubp_av=0x7fffffffe358, init=0xfe8a30, fini=<value optimized out>,
rtld_fini=<value optimized out>, stack_end=0x7fffffffe348)
at libc-start.c:220
#8 0x0000000000406d29 in gtk_widget_set_sensitive ()
#9 0x00007fffffffe348 in ?? ()
#10 0x000000000000001c in ?? ()
#11 0x0000000000000002 in ?? ()
#12 0x00007fffffffe616 in ?? ()
#13 0x00007fffffffe624 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)

Windows symbols backtrace (using: MAME gorf -autosave):
Program received signal SIGSEGV, Segmentation fault.
0xbaadf00d in ?? ()
(gdb) bt full
#0 0xbaadf00d in ?? ()
No symbol table info available.
#1 0x01401813 in inflateInit2_ (strm=0x845a108, windowBits=15,
    version=0x24c8470 "1.2.3", stream_size=56) at src/lib/zlib/inflate.c:162
        state = (struct inflate_state *) 0x22ffe0
Backtrace stopped: frame did not save the PC
Steps To Reproduce 1. Find a game which supports autosave
2. Start it once so it creates auto.sav
3. Exit
4. Start it again
Additional Information Here is the verbose output
$ mame -verbose mk3
Parsing mame.ini
Parsing mame.ini
Build version: 0.128u6 (Dec 15 2008)
Build architecure: SDLMAME_ARCH= DISTRO=generic
Build defines: SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 LSB_FIRST=1 PTR64=1 NDEBUG=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=1213 USE_OPENGL=1 USE_DISPATCH_GL=1
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=2 __VERSION__="4.3.2 20081105 (Red Hat 4.3.2-7)"
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1
Compiler defines C: _FORTIFY_SOURCE=2 __USE_FORTIFY_LEVEL=2
SDL Device Driver : x11
SDL Monitor Dimensions: 1280 x 800
Using SDL single-window OpenGL driver (SDL 1.2)
Loaded opengl shared library: <default>
OpenGL: NVIDIA Corporation
OpenGL: GeForce Go 7600/PCI/SSE2
OpenGL: 2.1.2 NVIDIA 177.82
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported, but disabled
OpenGL: max texture size 4096 x 4096
Keyboard: Start initialization
Input: Adding Kbd #1: System keyboard
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding Mouse #1: System mouse
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Joystick: End initialization
Audio initialized - driver: pulse, frequency: 48000, channels: 2, samples: 512
sdl_create_buffers: creating stream buffer of 57344 bytes
ouput: unable to open output notifier file /tmp/sdlmame_out
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
OpenGL: using vid filter: 1
Github Commit
Flags
Regression Version
Affected Sets / Systems all sets using autosave
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
4
User avatar
No.03323
Fujix
Administrator
Dec 17, 2008, 19:07
No sigsegv error here, but MAME displays an on-screen error "Unable to load state due to a file read error (file is likely corrupted)".
User avatar
No.03325
Tafoid
Administrator
Dec 17, 2008, 20:23
edited on: Dec 17, 2008, 20:24
Try using GORF. I was able to get it to segfault there - though my symbols build didn't pick up a whole lot of information
User avatar
No.03326
belegdol
Tester
Dec 17, 2008, 23:14
How about this one? It's from debug-enabled build. It is possible that the previous backtrace was not 100% correct, my package needs some love ;)
(gdb)
#0 0x00000032b4409292 in inflateInit2_ (strm=0x3b216d0, windowBits=15,
    version=<value optimized out>, stream_size=112) at inflate.c:162
#1 0x000000000102f9d7 in core_fcompress (file=0x3b21440, level=6)
    at src/lib/util/corefile.c:300
#2 0x00000000008f8f7d in state_save_read_file (machine=0x3242200,
    file=0x3b211f0) at src/emu/state.c:625
#3 0x00000000008d9000 in handle_load (machine=0x3242200)
    at src/emu/mame.c:1816
#4 0x00000000008d9e54 in mame_execute (options=0x320d800)
    at src/emu/mame.c:372
#5 0x00000000008abfed in cli_execute (argc=<value optimized out>,
    argv=<value optimized out>, osd_options=<value optimized out>)
    at src/emu/clifront.c:171
#6 0x0000000000880a9b in main (argc=2, argv=0x7fffffffe368)
    at src/osd/sdl/sdlmain.c:386
User avatar
No.03345
rte
Tester
Dec 20, 2008, 18:13
Manual save/load doesn't work either. Tried with bombjack (set 1). Result is "Unable to load state due to a file read error..."