Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
02672 Crash/Freeze Critical (emulator) Always Nov 24, 2008, 16:54 Nov 26, 2008, 04:20
Tester Tafoid View Status Public Platform
Assigned To aaron Resolution Fixed OS
Status [?] Resolved Driver
Version 0.128u4 Fixed in Version 0.128u5 Build
Fixed in Git Commit Github Pull Request #
Summary 02672: Most Sets using MCS48/51.C (intel 80xx family): Fatal Error when using -cheat trigger
Description With or without a cheat XML database, simply using the -cheat trigger causes a quick crash in most sets in most drivers referencing MCS48.c and MCS51.c.

Backtrace is similar for all tested sets (this one is for Gyruss) MCS48.c:
Program received signal SIGSEGV, Segmentation fault.
0x0104f1e4 in cpu_get_info_mcs48 (device=0x6d9e798, state=131085,
    info=0x22fc48) at src/emu/cpu/mcs48/mcs48.c:1136
1136 case CPUINFO_STR_REGISTER + MCS48_R0:
                sprintf(info->s, "R0:%02X", R0); break;
(gdb) bt full
#0 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6d9e798, state=131085,
    info=0x22fc48) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x78f15c8
#1 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6d9e798, state=131085,
    info=0x22fc48) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x2000d
#2 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6d9e798, state=131085,
    info=0x6) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x78f0140
#3 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6db0008, state=115016152,
    info=0x110) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x6cd3ef0
#4 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6db0008, state=36225478,
    info=0x1) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x82d8e18
#5 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6db0008, state=36224938,
    info=0x1) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x0
#6 0x0104f1e4 in cpu_get_info_mcs48 (device=0x6cd3c08, state=114113272,
    info=0x18a32b0) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x0
#7 0x0104f1e4 in cpu_get_info_mcs48 (device=0x4, state=114107752,
    info=0x22873f0) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x0
#8 0x0104f1e4 in cpu_get_info_mcs48 (device=0x4, state=114107752,
    info=0x22ff80) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x29d51be
#9 0x0104f1e4 in cpu_get_info_mcs48 (device=0x7ffdf000, state=0,
    info=0x22ffb0) at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x7ffdf000
#10 0x0104f1e4 in cpu_get_info_mcs48 (device=0x1, state=9, info=0x22fff0)
    at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x7ffdf000
#11 0x0104f1e4 in cpu_get_info_mcs48 (device=0x0, state=0, info=0x7ffdf000)
    at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x9
#12 0x0104f1e4 in cpu_get_info_mcs48 (device=0x401280, state=0, info=0xc8)
    at src/emu/cpu/mcs48/mcs48.c:1136
        mcs48 = (mcs48_state *) 0x0
MCR51.c (f15se)
Program received signal SIGSEGV, Segmentation fault.
0x00d82a6e in cpu_get_info_mcs51 (device=0x6d9e3e8, state=131080,
    info=0x22fc48) at src/emu/cpu/mcs51/mcs51.c:2553
2553 case CPUINFO_STR_REGISTER + MCS51_SP: sprintf
info->s, "SP:%02X", SP); break;
(gdb) bt full
#0 0x00d82a6e in cpu_get_info_mcs51 (device=0x6d9e3e8, state=131080,
    info=0x22fc48) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x70749d8
#1 0x00d82a6e in cpu_get_info_mcs51 (device=0x6d9e3e8, state=131080,
    info=0x22fc48) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x20008
#2 0x00d82a6e in cpu_get_info_mcs51 (device=0x6d9e3e8, state=131080,
    info=0x1) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x7073550
#3 0x00d82a6e in cpu_get_info_mcs51 (device=0x6db0008, state=115016152,
    info=0x110) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x6cd3ef0
#4 0x00d82a6e in cpu_get_info_mcs51 (device=0x6db0008, state=36225478,
    info=0x1) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x8976578
#5 0x00d82a6e in cpu_get_info_mcs51 (device=0x6db0008, state=36224938,
    info=0x1) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x0
#6 0x00d82a6e in cpu_get_info_mcs51 (device=0x6cd3c08, state=114113272,
    info=0x21e59b0) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x0
#7 0x00d82a6e in cpu_get_info_mcs51 (device=0x4, state=114107752,
    info=0x22873f0) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x0
#8 0x00d82a6e in cpu_get_info_mcs51 (device=0x4, state=114107752,
    info=0x22ff80) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x29d51be
#9 0x00d82a6e in cpu_get_info_mcs51 (device=0x7ffdf000, state=0,
    info=0x22ffb0) at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x7ffdf000
#10 0x00d82a6e in cpu_get_info_mcs51 (device=0x1, state=9, info=0x22fff0)
    at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x7ffdf000
#11 0x00d82a6e in cpu_get_info_mcs51 (device=0x0, state=0, info=0x7ffdf000)
    at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x9
#12 0x00d82a6e in cpu_get_info_mcs51 (device=0x401280, state=0, info=0xc8)
    at src/emu/cpu/mcs51/mcs51.c:2553
        mcs51_state = (mcs51_state_t *) 0x0
Steps To Reproduce
Additional Information Drivers Affected and example set:
chinagat.c - salyugb1
cardline.c - cardline (mcs51)
cliffhng.c - cliffhng
cubeqst.c - cubeqst
dkong.c - dkong
drw80pkr.c - drw80prk
fghtbskt.c - fghtbskt
finalizr.c - finalizr
firefox.c - firefox
gottlieb.c - mach3 (laserdisc titles)
gyruss.c - gyruss
junofrst.c - junofrst
limenko.c - spotty (mcs51)
m63.c - atomboy
m72.c - lohtb2 (mcs51)
megazone.c - megazone
micro_3d.c - f15se (mcs51)
n8080.c - bandido
pandoras.c - pandoras
peplus.c - pepp0065 (mcs51)
portrait.c - portrait
quasar.c - quasar
re900.c - bs94 (mcs51)
segag80r.c - monsterb
segas16a.c - shinobi
sliver.c - sliver.c (mcs51)
spacefb.c - spacefb
spcforce.c - spcforce
superqix.c - sqix (mcs51)
sslam.c - sslam (mcs51)
vamphalf.c - misncrft (mcs51)
vicdual.c - carnival
videopkr.c - videopkr
wrally.c - wrally (mcs51)
zaxxon.c - ixion
Github Commit
Flags
Regression Version 0.128u4
Affected Sets / Systems Most Sets using MCS48/51.C (intel 80xx family)
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
3
User avatar
No.03106
NekoEd
Senior Tester
Nov 24, 2008, 19:19
Confirmed, SDLMAME 0.128u4 on Linux host.
User avatar
No.03110
M.A.S.H.
Senior Tester
Nov 24, 2008, 20:22
edited on: Nov 24, 2008, 20:23
Juno First playing a wrong sound after INSERT COIN. Sounds like music!? Uses also the I8039 (MCS-48) CPU for sound.
User avatar
No.03111
Tafoid
Administrator
Nov 24, 2008, 20:37
It might be an unrelated issue with the CPU's (it's undergoing big changes along with many others) - but that game does crash and is listed as a driver in the additional information field.