#244 segmentation fault with cpu=dynamic

0.63
closed
None
5
2014-03-27
2005-10-13
Andrew Ziem
No

dosbox 0.63 crashes during startup on Fedora Core 4.

To reproduce, place following dosbox.conf in current
working directory. Then launch dosbox.

-----dosbox.conf
[cpu]
core=dynamic
-----

Here is some debugging info from gdb:

52 : _Alloc(a), _M_p(dat) { }
(gdb)
1092 if
(control->cmdline->FindString("-conf",config_file,true)) {
(gdb)
910 return this->assign(s,
traits_type::length(
s));
(gdb)

1100 if
(control->ParseConfigFile(config_file.c_str()) == false) {
(gdb)
CONFIG:Loading settings from config file dosbox.conf
1111 control->ParseEnv(environ);
(gdb)
1114 control->Init();
(gdb)

MIXER:Can't open audio: No available audio device ,
running in nosound mode.
ALSA lib seq_hw.c:455:(snd_seq_hw_open) open
/dev/snd/seq failed: No such file or directory
ALSA:Can't open sequencer
MIDI:Opened device:none
1116 if
(control->cmdline->FindExist("-fullscreen") ||
sdl_sec->Get_bool("fullscreen") ) {
(gdb)
1123 MAPPER_Init();
(gdb)
1124 if
(control->cmdline->FindExist("-startmapper")) MAPPER_Run();
(gdb)
1127 control->StartUp();
(gdb)

Program received signal SIGSEGV, Segmentation fault.
0x091459e0 in cache_code ()
(gdb)
Single stepping until exit from function cache_code,
which has no line number information.
0x06787ba9 in SDL_UninstallParachute () from
/usr/lib/libSDL-1.2.so.0
(gdb)
Single stepping until exit from function
SDL_UninstallParachute,
which has no line number information.
0x067872bf in SDL_Linked_Version () from
/usr/lib/libSDL-1.2.so.0
(gdb)
Single stepping until exit from function
SDL_Linked_Version,
which has no line number information.
0x06787bb6 in SDL_UninstallParachute () from
/usr/lib/libSDL-1.2.so.0
(gdb)

Discussion

  • Andrew Ziem
    Andrew Ziem
    2006-02-09

    Logged In: YES
    user_id=500759

    Crash happens on Linux 2.6.14-1.1656_FC4smp with dual AMD
    Opterons in 32-bit mode but not on Linux 2.6.14-1.1656_FC4
    with single AMD Athlon in 32-bit mode, so maybe it's a SMP
    problem?

     
  • Peter Veenstra
    Peter Veenstra
    2006-02-09

    Logged In: YES
    user_id=535630

    perharps you could try the cvs.
    The dynamic core has been changed there a lot.
    The smp issue might be something, but I don't know what
    issues there might be with a dual thing. (dosbox main cpu
    stuff is single threaded, but the dynamic core does modify a
    lot of registers.)

     
  • Andrew Ziem
    Andrew Ziem
    2006-02-11

    Logged In: YES
    user_id=500759

    I compiled both 0.63 and CVS from source, and only 0.63
    crashed. So, it has been fixed.

     
  • Peter Veenstra
    Peter Veenstra
    2006-02-12

    Logged In: YES
    user_id=535630

    Thanks for testing it. I will close this report and mark it
    as fixed.