Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
03361 Crash/Freeze Critical (emulator) Sometimes Jul 26, 2009, 23:31 Sep 21, 2012, 07:25
Tester Firewave View Status Public Platform MAME (Official Binary)
Assigned To Resolution Fixed OS
Status [?] Resolved Driver
Version 0.133 Fixed in Version 0.134u1 Build Debug
Fixed in Git Commit Github Pull Request #
Summary 03361: charlien: [debug] Access Violation with "-nosound -video none -debug"
Description When run with "-nosound -video none -debug" it sometimes crashes before even showing the debug window.

-----------------------------------------------------
Exception at EIP=004F8EA8: ACCESS VIOLATION
While attempting to read memory at 146E9570
-----------------------------------------------------
EAX=00003EB8 EBX=146E1800 ECX=00000000 EDX=00000002
ESI=00000020 EDI=000003FF EBP=048AF558 ESP=048AF500
Steps To Reproduce
Additional Information
Github Commit
Flags Debug build specific
Regression Version 0.131
Affected Sets / Systems charlien
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.04714
Tafoid
Administrator
Jul 26, 2009, 23:57
If I run with ""-debug -nosound" flags only with MAMEDEV 0.133 Debug build, I get:
-----------------------------------------------------
Exception at EIP=00A8972F: INTEGER DIVIDE BY ZERO
-----------------------------------------------------
EAX=00000100 EBX=00000000 ECX=00000100 EDX=00000000
ESI=161D1EF0 EDI=0000013F EBP=0022F558 ESP=0022F490

I also get the other bug as described above. No crash in a symbols build for me.
User avatar
No.04719
Firewave
Senior Tester
Jul 27, 2009, 07:24
edited on: Jul 27, 2009, 07:25
I was able to crash it in gdb with symbols in 0.132u5:

Program received signal SIGFPE, Arithmetic exception.
0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '
Program received signal SIGFPE, Arithmetic exception.
0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
812 int rowheight = tmap->height / tmap->scrollrows;
(gdb) bt full
#0 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
        rowheight = 0
        currow = 0
        nextrow = 16842998
        original_cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247}
        scrolly = 413605840
        width = 512
        height = 256
        blit = {bitmap = 0x14f91fd0, cliprect = {min_x = 0, max_x = 319,
    min_y = 8, max_y = 247},
  draw_masked = 0xae2626 <scanline_draw_masked_ind16>,
  draw_opaque = 0xae250e <scanline_draw_opaque_ind16>,
  tilemap_priority_code = 65284, mask = 31 '\037', value = 16 '\020',
  alpha = 255 ' '}
        xpos = 2292424
        ypos = 5260891
#1 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=63 '?', priority_mask=0 '\0')
    at src/emu/tilemap.c:812
        rowheight = 2292424
        currow = 351870928
        nextrow = 2292604
        original_cliprect = {min_x = 16715807, max_x = 512, min_y = 256,
  max_y = 2292424}
        scrolly = 5259635
        width = 2259120
        height = 413277936
        blit = {bitmap = 0x50465b, cliprect = {min_x = 413277936,
    max_x = 413277936, min_y = 0, max_y = 413605840}, draw_masked = 0,
  draw_opaque = 0x10100f6 <cpu_get_info_v60+4041>,
  tilemap_priority_code = 2228318, mask = 23 '\027', value = 69 'E',
  alpha = 0 '\0'}
        xpos = 0
        ypos = 413605840
Backtrace stopped: frame did not save the PC
4', priority_mask=255 ' ') at src/emu/tilemap.c:812 812 int rowheight = tmap->height / tmap->scrollrows; (gdb) bt full #0 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c, tmap=0x18391ef0, flags=0, priority=4 '
Program received signal SIGFPE, Arithmetic exception.
0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
812 int rowheight = tmap->height / tmap->scrollrows;
(gdb) bt full
#0 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
        rowheight = 0
        currow = 0
        nextrow = 16842998
        original_cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247}
        scrolly = 413605840
        width = 512
        height = 256
        blit = {bitmap = 0x14f91fd0, cliprect = {min_x = 0, max_x = 319,
    min_y = 8, max_y = 247},
  draw_masked = 0xae2626 <scanline_draw_masked_ind16>,
  draw_opaque = 0xae250e <scanline_draw_opaque_ind16>,
  tilemap_priority_code = 65284, mask = 31 '\037', value = 16 '\020',
  alpha = 255 ' '}
        xpos = 2292424
        ypos = 5260891
#1 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=63 '?', priority_mask=0 '\0')
    at src/emu/tilemap.c:812
        rowheight = 2292424
        currow = 351870928
        nextrow = 2292604
        original_cliprect = {min_x = 16715807, max_x = 512, min_y = 256,
  max_y = 2292424}
        scrolly = 5259635
        width = 2259120
        height = 413277936
        blit = {bitmap = 0x50465b, cliprect = {min_x = 413277936,
    max_x = 413277936, min_y = 0, max_y = 413605840}, draw_masked = 0,
  draw_opaque = 0x10100f6 <cpu_get_info_v60+4041>,
  tilemap_priority_code = 2228318, mask = 23 '\027', value = 69 'E',
  alpha = 0 '\0'}
        xpos = 0
        ypos = 413605840
Backtrace stopped: frame did not save the PC
4', priority_mask=255 ' ') at src/emu/tilemap.c:812 rowheight = 0 currow = 0 nextrow = 16842998 original_cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247} scrolly = 413605840 width = 512 height = 256 blit = {bitmap = 0x14f91fd0, cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247}, draw_masked = 0xae2626 <scanline_draw_masked_ind16>, draw_opaque = 0xae250e <scanline_draw_opaque_ind16>, tilemap_priority_code = 65284, mask = 31 '7', value = 16 '0', alpha = 255 ' '} xpos = 2292424 ypos = 5260891 #1 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c, tmap=0x18391ef0, flags=0, priority=63 '?', priority_mask=0 '
Program received signal SIGFPE, Arithmetic exception.
0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
812 int rowheight = tmap->height / tmap->scrollrows;
(gdb) bt full
#0 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
        rowheight = 0
        currow = 0
        nextrow = 16842998
        original_cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247}
        scrolly = 413605840
        width = 512
        height = 256
        blit = {bitmap = 0x14f91fd0, cliprect = {min_x = 0, max_x = 319,
    min_y = 8, max_y = 247},
  draw_masked = 0xae2626 <scanline_draw_masked_ind16>,
  draw_opaque = 0xae250e <scanline_draw_opaque_ind16>,
  tilemap_priority_code = 65284, mask = 31 '\037', value = 16 '\020',
  alpha = 255 ' '}
        xpos = 2292424
        ypos = 5260891
#1 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=63 '?', priority_mask=0 '\0')
    at src/emu/tilemap.c:812
        rowheight = 2292424
        currow = 351870928
        nextrow = 2292604
        original_cliprect = {min_x = 16715807, max_x = 512, min_y = 256,
  max_y = 2292424}
        scrolly = 5259635
        width = 2259120
        height = 413277936
        blit = {bitmap = 0x50465b, cliprect = {min_x = 413277936,
    max_x = 413277936, min_y = 0, max_y = 413605840}, draw_masked = 0,
  draw_opaque = 0x10100f6 <cpu_get_info_v60+4041>,
  tilemap_priority_code = 2228318, mask = 23 '\027', value = 69 'E',
  alpha = 0 '\0'}
        xpos = 0
        ypos = 413605840
Backtrace stopped: frame did not save the PC
') at src/emu/tilemap.c:812 rowheight = 2292424 currow = 351870928 nextrow = 2292604 original_cliprect = {min_x = 16715807, max_x = 512, min_y = 256, max_y = 2292424} scrolly = 5259635 width = 2259120 height = 413277936 blit = {bitmap = 0x50465b, cliprect = {min_x = 413277936, max_x = 413277936, min_y = 0, max_y = 413605840}, draw_masked = 0, draw_opaque = 0x10100f6 <cpu_get_info_v60+4041>, tilemap_priority_code = 2228318, mask = 23 '7', value = 69 'E', alpha = 0 '
Program received signal SIGFPE, Arithmetic exception.
0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
812 int rowheight = tmap->height / tmap->scrollrows;
(gdb) bt full
#0 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=4 '\004', priority_mask=255 ' ')
    at src/emu/tilemap.c:812
        rowheight = 0
        currow = 0
        nextrow = 16842998
        original_cliprect = {min_x = 0, max_x = 319, min_y = 8, max_y = 247}
        scrolly = 413605840
        width = 512
        height = 256
        blit = {bitmap = 0x14f91fd0, cliprect = {min_x = 0, max_x = 319,
    min_y = 8, max_y = 247},
  draw_masked = 0xae2626 <scanline_draw_masked_ind16>,
  draw_opaque = 0xae250e <scanline_draw_opaque_ind16>,
  tilemap_priority_code = 65284, mask = 31 '\037', value = 16 '\020',
  alpha = 255 ' '}
        xpos = 2292424
        ypos = 5260891
#1 0x00adf98b in tilemap_draw_primask (dest=0x14f91fd0, cliprect=0x22fb7c,
    tmap=0x18391ef0, flags=0, priority=63 '?', priority_mask=0 '\0')
    at src/emu/tilemap.c:812
        rowheight = 2292424
        currow = 351870928
        nextrow = 2292604
        original_cliprect = {min_x = 16715807, max_x = 512, min_y = 256,
  max_y = 2292424}
        scrolly = 5259635
        width = 2259120
        height = 413277936
        blit = {bitmap = 0x50465b, cliprect = {min_x = 413277936,
    max_x = 413277936, min_y = 0, max_y = 413605840}, draw_masked = 0,
  draw_opaque = 0x10100f6 <cpu_get_info_v60+4041>,
  tilemap_priority_code = 2228318, mask = 23 '\027', value = 69 'E',
  alpha = 0 '\0'}
        xpos = 0
        ypos = 413605840
Backtrace stopped: frame did not save the PC
'} xpos = 0 ypos = 413605840 Backtrace stopped: frame did not save the PC

I need to do a build with a newer GCC, so I get a proper backtrace on Windows XP x64.
User avatar
No.08933
Firewave
Senior Tester
Sep 21, 2012, 07:25
I have seen this crash in a while and are also not able to reproduce it with 0.147.