Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
04320 Crash/Freeze Critical (emulator) Always Apr 24, 2011, 18:39 May 8, 2011, 19:30
Tester Tafoid View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Fixed OS Windows XP (32-bit)
Status [?] Resolved Driver
Version 0.142u1 Fixed in Version 0.142u3 Build
Fixed in Git Commit Github Pull Request #
Summary 04320: Many sets in mpu4drvr.c: Crash: Integer Divide by Zero
Description Many of the sets in the driver now crash (adders, for example):
Program received signal SIGFPE, Arithmetic exception.
0x00560108 in stepper_update (which=2, pattern=5 '\005')
    at src/mame/machine/steppers.c:262
262 pos = (step[which].step_pos + steps + step[which
].max_steps) % step[which].max_steps;

--

#0 0x00560108 in stepper_update (which=2, pattern=5 '\005')
    at src/mame/machine/steppers.c:262
#1 0x00552827 in pia_ic7_porta_w (device=0x271a04, offset=0, data=85 'U')
    at src/mame/drivers/mpu4.c:1479
#2 0x01bd5dae in devcb_call_write8 (resolved=0x271ab8, offset=0, data=85 'U')
    at src/emu/devcb.h:422
#3 0x01bd7712 in pia6821_device::send_to_out_a_func (this=0x271a04,
    message=0x3b12b88 "port A write due to DDR change")
    at src/emu/machine/6821pia.c:726
#4 0x01bd7842 in pia6821_device::ddr_a_w (this=0x271a04, data=170 '\252')
    at src/emu/machine/6821pia.c:804
#5 0x01bd7aa8 in pia6821_device::reg_w (this=0x271a04, offset=0 '\000',
    data=170 '\252') at src/emu/machine/6821pia.c:957
#6 0x01bd7a38 in pia6821_w (device=0x271a04, offset=0, data=170 '\252')
    at src/emu/machine/6821pia.c:942
#7 0x01b9e28a in handler_entry_write::write_stub_legacy (this=0x14ced2e4,
    space=..., offset=0, data=170 '\252', mask=255 '\377')
    at src/emu/memory.c:5049
#8 0x026cd9f2 in delegate_base<void, address_space&, unsigned int, unsigned cha
r, unsigned char>::operator() (this=0x14ced314, p1=..., p2=0, p3=170 '\252',
    p4=255 '\377') at src/emu/delegate.h:590
#9 0x026d8f2a in handler_entry_write::write8 (this=0x14ced2e4, space=...,
    offset=0, data=170 '\252', mask=255 '\377') at src/emu/memory.c:615
#10 0x0264ab22 in address_space_specific<unsigned char, (endianness_t)1, false>:
:write_native (this=0x14738734, offset=0, data=170 '\252')
    at src/emu/memory.c:1181
#11 0x02649876 in address_space_specific<unsigned char, (endianness_t)1, false>:
:write_byte (this=0x14738734, address=3584, data=170 '\252')
    at src/emu/memory.c:1453
#12 0x01447329 in stb_ix (m68_state=0x13a51fb8)
    at src/emu/cpu/m6809/6809ops.c:2613
#13 0x01449624 in cpu_execute_m6809 (device=0x267ff4)
    at src/emu/cpu/m6809/m6809.c:506
#14 0x01e36655 in legacy_cpu_device::execute_run (this=0x267ff4)
    at src/emu/devcpu.c:331
#15 0x01bab278 in device_scheduler::timeslice (this=0x22f5b8)
    at src/emu/schedule.c:470
#16 0x01b0c8b6 in running_machine::run (this=0x22ec90, firstrun=true)
    at src/emu/machine.c:389
#17 0x01b892b7 in mame_execute (options=..., osd=...) at src/emu/mame.c:176
#18 0x01e1bf5d in cli_frontend::execute (this=0x22fed0, argc=4, argv=0x3f47e8)
    at src/emu/clifront.c:183
#19 0x01398159 in utf8_main (argc=4, argv=0x3f47e8)
    at src/osd/windows/winmain.c:422
#20 0x0205897a in wmain (argc=4, argv=0x3f42f8) at src/osd/windows/main.c:82
#21 0x004013d1 in __tmainCRTStartup () at ../mingw-w64-crt/crt/crtexe.c:268
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version 0.142u1
Affected Sets / Systems Many sets in mpu4drvr.c
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
0
There are no notes attached to this issue.