Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08192 Crash/Freeze Critical (emulation) Always Jan 23, 2022, 06:37 Feb 3, 2022, 13:49
Tester Kaylee View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Open OS Linux (64-bit)
Status [?] Driver
Version 0.239 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08192: ddpdfk and others from the driver: When running mame ddpdfk I get the following: Segmentation fault (core dumped).
Description When running mame ddpdfk I get the following: Segmentation fault (core dumped).

(gdb) run ddpdfk
Starting program: /src/mame/ddp ddpdfk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff24e1700 (LWP 14141)]
[New Thread 0x7ffff1b65700 (LWP 14142)]
[New Thread 0x7ffff130b700 (LWP 14143)]
[Thread 0x7ffff130b700 (LWP 14143) exited]
[New Thread 0x7fffa615c700 (LWP 14144)]
[New Thread 0x7fffa595b700 (LWP 14145)]

Thread 1 "ddp" received signal SIGSEGV, Segmentation fault.
0x0000555555ed0704 in sh34_base_device::sh4_exception (this=0x5555581bb620,
message=message@entry=0x5555576d3bb8 "mame_sh4_execute", exception=57)
at ../../../../../src/devices/cpu/sh/sh4comn.cpp:413
413 standard_irq_callback(INPUT_LINE_NMI);
(gdb) bt
#0 0x0000555555ed0704 in sh34_base_device::sh4_exception (this=0x5555581bb620,
message=message@entry=0x5555576d3bb8 "mame_sh4_execute", exception=57)
at ../../../../../src/devices/cpu/sh/sh4comn.cpp:413
#1 0x0000555555eb7f04 in sh34_base_device::sh4_check_pending_irq (message=0x5555576d3bb8 "mame_sh4_execute",
this=) at ../../../../../src/devices/cpu/sh/sh4.h:409
#2 sh34_base_device::func_CHECKIRQ (this=) at ../../../../../src/devices/cpu/sh/sh4.cpp:2621
#3 cfunc_CHECKIRQ (param=) at ../../../../../src/devices/cpu/sh/sh4.cpp:2622
#4 0x00007fffeebd211d in ?? ()
#5 0x0000555555eb8967 in sh34_base_device::RTE (this=0x555559cadef0)
at ../../../../../src/devices/cpu/sh/sh4.cpp:477
#6 sh34_base_device::func_RTE (this=0x555559cadef0) at ../../../../../src/devices/cpu/sh/sh4.cpp:3013
#7 cfunc_RTE (param=0x555559cadef0) at ../../../../../src/devices/cpu/sh/sh4.cpp:3014
#8 0x0c1d76dc8c000000 in ?? ()
#9 0x0c1d76dc00000000 in ?? ()
#10 0x0c8b77f040000001 in ?? ()
#11 0x0c8b755000000004 in ?? ()
#12 0x0000008000000840 in ?? ()
#13 0x0000000000000001 in ?? ()
#14 0x0c8b77f00c8b7550 in ?? ()
#15 0x0c8b787000000000 in ?? ()
#16 0x0000008000000000 in ?? ()
#17 0x0c893a7800000000 in ?? ()
--Type for more, q to quit, c to continue without paging--
#18 0x0cffffa00c893a74 in ?? ()
#19 0x0000000000000000 in ?? ()

I'm running MAME on kubuntu 20.04, compiled with gcc11.
Steps To Reproduce
Additional Information it looks like it's DRC related, as running it with the -nodrc switch, make the games work
Github Commit
Flags SDL specific
Regression Version
Affected Sets / Systems ddpdfk and others from the driver
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
8
User avatar
No.19711
Haze
Senior Tester
Jan 23, 2022, 12:46
is it *only* the SH4 recompiler, or do you get it with the other ones too?
User avatar
No.19712
Kaylee
Tester
Jan 23, 2022, 20:41
@haze Not sure what you mean
User avatar
No.19713
Haze
Senior Tester
Jan 24, 2022, 12:07
edited on: Jan 24, 2022, 12:07
Well it's highly unlikely this is a driver bug.

It seems to be a bug in the recompiler system.

The SH recompiler is used for the SH4, and SH2 family, so other SH4 based drivers (Naomi) and games using the SH2 (PsikyoSH driver for example) need checking too.

Recompilers are also used for MIPS and PowerPC series CPUs amongst others, so again those should be checked to see if all recompilers are broken, or just the SH4 one.

It might be that your Linux version is absolutely disallowing generated code to be executed for some reason.
User avatar
No.19717
Tafoid
Administrator
Jan 25, 2022, 01:31
edited on: Jan 25, 2022, 01:33
I'm not able to get anything to crash on Windows.
So mention others in driver - there are some that aren't crashing?
User avatar
No.19722
mahlemiut
Developer
Jan 25, 2022, 20:49
Don't get any crash in ddpdfk on Arch Linux, runs perfectly fine.
Does this happen on startup, or at some specific point?
User avatar
No.19733
Tafoid
Administrator
Jan 29, 2022, 21:06
Setting for Direction Needed and flagging it SDL specific.
User avatar
No.19734
cuavas
Administrator
Jan 30, 2022, 07:51
Can you run it under a memory analyser to see if it gives any more clues?
User avatar
No.19746
ozfalcon
Tester
Feb 3, 2022, 13:49
edited on: Feb 3, 2022, 13:55
MameV0239 ddpdfk Runs ok here on Debian 10 (Bullseye) using standard SDL.
Compiled Mame with target=arcade using gcc version 10.2.1 20210110 (Debian 10.2.1-6).

Note, I am still using an old ROM set 0223 with Mame 0239.

Added:
libsdl2-2.0-0/stable,now 2.0.14+dfsg2-3 amd64 [installed]
libsdl2-2.0-0/stable,now 2.0.14+dfsg2-3 i386 [installed]