Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
01979 Cheat System Critical (emulator) Always Jul 6, 2008, 12:25 Jan 10, 2015, 21:59
Tester couriersud View Status Public Platform SDLMAME
Assigned To Resolution Won't fix OS Linux
Status [?] Closed Driver
Version 0.125u9 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 01979: Enabling a Relative Address cheat like lastblad "Infinite Energy PL1" still causes MAME to crash.
Description   :lastblad:83100000:10AC2C:00000100:00000180:Infinite Energy PL1
Steps To Reproduce
Additional Information Source: Pugsy on http://cheat.retrogames.com/forums/viewtopic.php?t=3002
Github Commit
Flags
Regression Version 0.125u2
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
4
User avatar
No.01505
couriersud
Developer
Jul 6, 2008, 12:27
Backtrace:
#0  0x0000000000a83f63 in do_cpu_read (cpu=3 '
#0  0x0000000000a83f63 in do_cpu_read (cpu=3 '\003', address=1092652, 
    bytes=0 '\0', swap=1 '\001') at src/emu/cheat.c:1376
#1 0x0000000000a8780c in read_or_write_data (machine=0x3871730,
    action=0x2aaac0b24920, data=0, read_or_write=0) at src/emu/cheat.c:11670
#2 0x0000000000a88830 in reset_action (machine=0x3871730,
    action=0x2aaac0b24920) at src/emu/cheat.c:11870
#3 0x0000000000aa11c5 in enable_disable_cheat_menu (machine=0x3871730,
    menu=0x36258e0) at src/emu/cheat.c:11956
#4 0x0000000000a82b43 in cheat_menu (machine=0x3,
    selection=<value optimized out>) at src/emu/cheat.c:2177
#5 0x0000000000977309 in menu_cheat (machine=0x3, state=1092652)
    at src/emu/uimenu.c:1312
#6 0x0000000000977389 in ui_menu_ui_handler (machine=0x3871730,
    state=<value optimized out>) at src/emu/uimenu.c:693
#7 0x000000000096f634 in ui_update_and_render (machine=0x3871730)
    at src/emu/ui.c:428
#8 0x0000000000987645 in video_frame_update (machine=0x3871730, debug=0)
    at src/emu/video.c:1493
#9 0x00000000009889a7 in vblank_begin_callback (machine=0x3871730,
    ptr=<value optimized out>, param=<value optimized out>)
    at src/emu/video.c:1373
#10 0x0000000000969667 in timer_set_global_time (newbase=
      {seconds = 24, attoseconds = 634367999901462528}) at src/emu/timer.c:360
---Type <return> to continue, or q <return> to quit---
#11 0x00000000009391f9 in mame_execute (options=0x383f230)
    at src/emu/mame.c:394
#12 0x0000000000904f44 in cli_execute (argc=<value optimized out>,
    argv=<value optimized out>, osd_options=<value optimized out>)
    at src/emu/clifront.c:171
#13 0x00000000008db80b in main (argc=6, argv=0x7fff2d1d7748)
    at src/osd/sdl/sdlmain.c:319
3', address=1092652, bytes=0 '
#0  0x0000000000a83f63 in do_cpu_read (cpu=3 '\003', address=1092652, 
    bytes=0 '\0', swap=1 '\001') at src/emu/cheat.c:1376
#1 0x0000000000a8780c in read_or_write_data (machine=0x3871730,
    action=0x2aaac0b24920, data=0, read_or_write=0) at src/emu/cheat.c:11670
#2 0x0000000000a88830 in reset_action (machine=0x3871730,
    action=0x2aaac0b24920) at src/emu/cheat.c:11870
#3 0x0000000000aa11c5 in enable_disable_cheat_menu (machine=0x3871730,
    menu=0x36258e0) at src/emu/cheat.c:11956
#4 0x0000000000a82b43 in cheat_menu (machine=0x3,
    selection=<value optimized out>) at src/emu/cheat.c:2177
#5 0x0000000000977309 in menu_cheat (machine=0x3, state=1092652)
    at src/emu/uimenu.c:1312
#6 0x0000000000977389 in ui_menu_ui_handler (machine=0x3871730,
    state=<value optimized out>) at src/emu/uimenu.c:693
#7 0x000000000096f634 in ui_update_and_render (machine=0x3871730)
    at src/emu/ui.c:428
#8 0x0000000000987645 in video_frame_update (machine=0x3871730, debug=0)
    at src/emu/video.c:1493
#9 0x00000000009889a7 in vblank_begin_callback (machine=0x3871730,
    ptr=<value optimized out>, param=<value optimized out>)
    at src/emu/video.c:1373
#10 0x0000000000969667 in timer_set_global_time (newbase=
      {seconds = 24, attoseconds = 634367999901462528}) at src/emu/timer.c:360
---Type <return> to continue, or q <return> to quit---
#11 0x00000000009391f9 in mame_execute (options=0x383f230)
    at src/emu/mame.c:394
#12 0x0000000000904f44 in cli_execute (argc=<value optimized out>,
    argv=<value optimized out>, osd_options=<value optimized out>)
    at src/emu/clifront.c:171
#13 0x00000000008db80b in main (argc=6, argv=0x7fff2d1d7748)
    at src/osd/sdl/sdlmain.c:319
', swap=1 '
#0  0x0000000000a83f63 in do_cpu_read (cpu=3 '\003', address=1092652, 
    bytes=0 '\0', swap=1 '\001') at src/emu/cheat.c:1376
#1 0x0000000000a8780c in read_or_write_data (machine=0x3871730,
    action=0x2aaac0b24920, data=0, read_or_write=0) at src/emu/cheat.c:11670
#2 0x0000000000a88830 in reset_action (machine=0x3871730,
    action=0x2aaac0b24920) at src/emu/cheat.c:11870
#3 0x0000000000aa11c5 in enable_disable_cheat_menu (machine=0x3871730,
    menu=0x36258e0) at src/emu/cheat.c:11956
#4 0x0000000000a82b43 in cheat_menu (machine=0x3,
    selection=<value optimized out>) at src/emu/cheat.c:2177
#5 0x0000000000977309 in menu_cheat (machine=0x3, state=1092652)
    at src/emu/uimenu.c:1312
#6 0x0000000000977389 in ui_menu_ui_handler (machine=0x3871730,
    state=<value optimized out>) at src/emu/uimenu.c:693
#7 0x000000000096f634 in ui_update_and_render (machine=0x3871730)
    at src/emu/ui.c:428
#8 0x0000000000987645 in video_frame_update (machine=0x3871730, debug=0)
    at src/emu/video.c:1493
#9 0x00000000009889a7 in vblank_begin_callback (machine=0x3871730,
    ptr=<value optimized out>, param=<value optimized out>)
    at src/emu/video.c:1373
#10 0x0000000000969667 in timer_set_global_time (newbase=
      {seconds = 24, attoseconds = 634367999901462528}) at src/emu/timer.c:360
---Type <return> to continue, or q <return> to quit---
#11 0x00000000009391f9 in mame_execute (options=0x383f230)
    at src/emu/mame.c:394
#12 0x0000000000904f44 in cli_execute (argc=<value optimized out>,
    argv=<value optimized out>, osd_options=<value optimized out>)
    at src/emu/clifront.c:171
#13 0x00000000008db80b in main (argc=6, argv=0x7fff2d1d7748)
    at src/osd/sdl/sdlmain.c:319
1') at src/emu/cheat.c:1376 #1 0x0000000000a8780c in read_or_write_data (machine=0x3871730, action=0x2aaac0b24920, data=0, read_or_write=0) at src/emu/cheat.c:11670 #2 0x0000000000a88830 in reset_action (machine=0x3871730, action=0x2aaac0b24920) at src/emu/cheat.c:11870 #3 0x0000000000aa11c5 in enable_disable_cheat_menu (machine=0x3871730, menu=0x36258e0) at src/emu/cheat.c:11956 #4 0x0000000000a82b43 in cheat_menu (machine=0x3, selection=<value optimized out>) at src/emu/cheat.c:2177 #5 0x0000000000977309 in menu_cheat (machine=0x3, state=1092652) at src/emu/uimenu.c:1312 #6 0x0000000000977389 in ui_menu_ui_handler (machine=0x3871730, state=<value optimized out>) at src/emu/uimenu.c:693 #7 0x000000000096f634 in ui_update_and_render (machine=0x3871730) at src/emu/ui.c:428 #8 0x0000000000987645 in video_frame_update (machine=0x3871730, debug=0) at src/emu/video.c:1493 #9 0x00000000009889a7 in vblank_begin_callback (machine=0x3871730, ptr=<value optimized out>, param=<value optimized out>) at src/emu/video.c:1373 #10 0x0000000000969667 in timer_set_global_time (newbase= {seconds = 24, attoseconds = 634367999901462528}) at src/emu/timer.c:360 ---Type <return> to continue, or q <return> to quit--- #11 0x00000000009391f9 in mame_execute (options=0x383f230) at src/emu/mame.c:394 #12 0x0000000000904f44 in cli_execute (argc=<value optimized out>, argv=<value optimized out>, osd_options=<value optimized out>) at src/emu/clifront.c:171 #13 0x00000000008db80b in main (argc=6, argv=0x7fff2d1d7748) at src/osd/sdl/sdlmain.c:319
User avatar
No.01508
Pugsy
Developer
Jul 6, 2008, 15:03
In 0.125u9 it's worse, you don't even have to enable the relative address cheat - even trying to run lastblad now causes MAME to crash straightaway with this error:-

D:\Emulators\Arcade\MAME>mame lastblad
cheat: [cheat entry] memory allocation error
length = 00000015
new_length = 00000016
cheat_list = 00000000
User avatar
No.01521
Iaspis
Tester
Jul 7, 2008, 04:00
(In 0.126) Either this:

c:\mame>mame avsp
cheat: [cheat action] memory allocation error
        length = 00000006
        new_length = 00000007
        action_list = 00000000

or an exception like that:

c:\mame>mame avsp

-----------------------------------------------------
Exception at EIP=774AF217: ACCESS VIOLATION
While attempting to read memory at 1C335FFF
-----------------------------------------------------
EAX=1C335FF8 EBX=1C336000 ECX=75719D78 EDX=1C336000
ESI=03770000 EDI=00000000 EBP=0027F2D8 ESP=0027F2CC
User avatar
No.01676
Fujix
Administrator
Jul 17, 2008, 23:59
Redesign of the cheat system is in progress.
Bugs for the old system are invalid now.