Skip to content

Instantly share code, notes, and snippets.

@ekondis
Created November 29, 2023 20:43
Show Gist options
  • Save ekondis/b18581a0217ec9dff6d3e6f8004c3b3f to your computer and use it in GitHub Desktop.
Save ekondis/b18581a0217ec9dff6d3e6f8004c3b3f to your computer and use it in GitHub Desktop.
dosbox-staging crash gdb stacktrace
2023-11-26 23:15:26.925 | DISPLAY: VGA 640x480 16-colour graphics mode 12h at 59.94 Hz VFR, scaled to 1280x960 with 1:1 (1:1) pixel aspect ratio
2023-11-26 23:15:27.814 | DOSBox has switched to max cycles, because of the setting: cycles=auto.
If the game runs too fast, try a fixed cycles amount in DOSBox's options.
dosbox: ../../src/cpu/dyn_cache.h:894: void dyn_mem_set_access(void*, size_t, bool): Assertion `mp_res == 0' failed.
Thread 1 "dosbox" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=140737351574016, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (threadid=140737351574016, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007ffff7500a24 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x00007ffff74ba76c in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff74a74bc in __GI_abort () at ./stdlib/abort.c:79
#4 0x00007ffff74b41e4 in __assert_fail_base
(fmt=0x7ffff75cf1c8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x555556342858 "mp_res == 0", file=file@entry=0x555556342538 "../../src/cpu/dyn_cache.h", line=line@entry=894, function=function@entry=0x555556342828 "void dyn_mem_set_access(void*, size_t, bool)")
at ./assert/assert.c:92
#5 0x00007ffff74b424c in __GI___assert_fail
(assertion=0x555556342858 "mp_res == 0", file=0x555556342538 "../../src/cpu/dyn_cache.h", line=894, function=0x555556342828 "void dyn_mem_set_access(void*, size_t, bool)") at ./assert/assert.c:101
#6 0x0000555555d8d6d8 in dyn_mem_set_access(void*, size_t, bool) (ptr=0x7fffd141d000, size=8320, execute=false) at ../../src/cpu/dyn_cache.h:894
#7 0x0000555555d8d730 in dyn_mem_write(void*, size_t) (ptr=0x7fffd141d080, size=8192) at ../../src/cpu/dyn_cache.h:922
#8 0x0000555555da73dc in CreateCacheBlock(CodePageHandler*, PhysPt, Bitu) (codepage=0x555559ef29d0, start=14726, max_opcodes=32)
at ../../src/cpu/core_dynrec/decoder.h:50
#9 0x0000555555da8938 in CPU_Core_Dynrec_Run() () at ../../src/cpu/core_dynrec.cpp:259
#10 0x0000555555c55fa8 in Normal_Loop() () at ../../src/dosbox.cpp:145
#11 0x0000555555c56854 in DOSBOX_RunMachine() () at ../../src/dosbox.cpp:321
#12 0x0000555555d712b4 in CALLBACK_RunRealInt(unsigned char) (intnum=33 '!') at ../../src/cpu/callback.cpp:114
#13 0x0000555556274adc in run_binary_executable(std::string_view, std::string_view) (fullname="win.COM", args="") at ../../src/shell/shell_misc.cpp:611
#14 0x0000555556273f88 in DOS_Shell::ExecuteProgram(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >) (this=0x555559142560, name="win", args="") at ../../src/shell/shell_misc.cpp:484
#15 0x0000555556257878 in DOS_Shell::DoCommand(char*) (this=0x555559142560, line=0x7fffffffd6e3 "") at ../../src/shell/shell_cmds.cpp:204
#16 0x00005555562502d4 in DOS_Shell::ParseLine(char*) (this=0x555559142560, line=0x7fffffffd6e0 "win") at ../../src/shell/shell.cpp:335
#17 0x0000555556250bd8 in DOS_Shell::Run() (this=0x555559142560) at ../../src/shell/shell.cpp:446
#18 0x0000555556252ed0 in SHELL_Init() () at ../../src/shell/shell.cpp:1448
#19 0x0000555555c7cf80 in Config::StartUp() (this=0x555558aaa4e0) at ../../src/misc/setup.cpp:1531
#20 0x0000555555fee970 in sdl_main(int, char**) (argc=1, argv=0x7fffffffefc8) at ../../src/gui/sdlmain.cpp:4961
#21 0x0000555555c55e3c in main(int, char**) (argc=1, argv=0x7fffffffefc8) at ../../src/main.cpp:30
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment