Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
04161 Crash/Freeze Critical (emulator) Always Dec 31, 2010, 16:00 Dec 31, 2010, 22:46
Tester Scagazza View Status Public Platform MAME (Self-compiled)
Assigned To aaron Resolution Fixed OS Windows XP (64-bit)
Status [?] Resolved Driver snk6502.cpp
Version 0.140u3 Fixed in Version 0.141 Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 04161: nibbler and clones: Mame crashes after pressing OK
Description Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 492.0x570]
0x000000000153002a in copyline_palette16 (dst=0x17220224, src=0x15d32000,
    width=256, palette=0x14be6640, xborderpix=1)
    at src/osd/windows/drawd3d.c:1926
1926 *dst++ = 0xff000000 | palette[*src++];
#0 0x000000000153002a in copyline_palette16 (dst=0x17220224, src=0x15d32000,
    width=256, palette=0x14be6640, xborderpix=1)
    at src/osd/windows/drawd3d.c:1926
#1 0x000000000153272a in texture_set_data (d3d=0x3337f0, texture=0x16588350,
    texsource=0x16473230, flags=8213) at src/osd/windows/drawd3d.c:2338
#2 0x0000000001533856 in texture_update (d3d=0x3337f0, prim=0x16473200)
    at src/osd/windows/drawd3d.c:2551
#3 0x000000000152ba7c in drawd3d_window_draw (window=0x32d2e0,
    dc=0xffffffffdc010ec0, update=0) at src/osd/windows/drawd3d.c:650
#4 0x00000000015196a2 in draw_video_contents (window=0x32d2e0,
    dc=0xffffffffdc010ec0, update=0) at src/osd/windows/window.c:1436
#5 0x000000000151929a in winwindow_video_window_proc (wnd=0x19054a,
    message=1026, wparam=0, lparam=3309280) at src/osd/windows/window.c:1363
#6 0x0000000077c43abc in ?? ()
#7 0x000000000019054a in ?? ()
#8 0x0000000000000402 in ?? ()
#9 0x0000000000000000 in ?? ()
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems nibbler and clones
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
10
User avatar
No.06977
Osso
Developer
Dec 31, 2010, 16:08
Works fine here, on SDL / Ubuntu 64 bit.
User avatar
No.06978
Tafoid
Administrator
Dec 31, 2010, 16:12
I'm not getting repro on 32-bit, but I had someone get a crash on nibbler with some linux build .. I'll check 64-bit MAME Windows shortly.
User avatar
No.06979
Tafoid
Administrator
Dec 31, 2010, 17:09
edited on: Dec 31, 2010, 17:21
No repro on a freshly compiled 64-bit Windows.. trying 64-bit SDL in Windows. I was told that -MT might be an issue causing the crash if someone who gets the crash can also test without this command?

What compiler flags is your compile made with if you can duplicate this report... what GCC version are you using?
User avatar
No.06980
Scagazza
Tester
Dec 31, 2010, 17:22
I have tried with -nomt option and it works fine, with mt enabled I confirm the crash.
User avatar
No.06981
Fujix
Administrator
Dec 31, 2010, 17:31
edited on: Dec 31, 2010, 17:31
It works fine whether it is with -mt or -nomt for me. Win xp 32-bit and Core 2 duo.
User avatar
No.06982
Tafoid
Administrator
Dec 31, 2010, 17:34
edited on: Dec 31, 2010, 17:35
I also get no repro from my SDLMAME64 build .. -mt or not.
Scagazza. Your build.. what is your build command/compile flags?
User avatar
No.06983
Scagazza
Tester
Dec 31, 2010, 17:38
make all -j5 TARGETOS=win32 PTR64=1
User avatar
No.06984
Tafoid
Administrator
Dec 31, 2010, 17:57
and.. last question (hopefully).. are you using the MAME approved tools to compile.. what version? (gcc --version)
User avatar
No.06985
Scagazza
Tester
Dec 31, 2010, 18:06
I'am using tools from mamedev.org, latest version (mingw-mame-w64-20100102).
User avatar
No.06986
galibert
Developer
Dec 31, 2010, 19:41
It's a race condition between the rendering thread and the screen resizing the game does. All games that resize the screen dynamically to something bigger than the original size have a chance to crash due to that bug.

  OG.