VOGONS


Wing Commander Privateer EMS errors

Topic actions

Reply 20 of 28, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

uhm which terminal do you use ? Try to resize to as large as possbile before starting dosbox.

basicly you have to press pause inside dosbox and then switch to the debug screen

Water flows down the stream
How to ask questions the smart way!

Reply 21 of 28, by Acrusum

User metadata
Rank Newbie
Rank
Newbie

Okay, got it. Sorry, I was confused because my keyboard doesn't have a pause/break key, so I had to use the key mapper to change it.

Next problem: I turned heavy CPU logging on and ran Privateer. The debug console spits out a lot of errors like

PAGING:PageFault at 110594 type 0 queue 16
PAGING:NP Table

and then finally prints

Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Fatal signal: Bus Error (SDL Parachute Deployed)

After this, the window is unresponsive, and I have to Ctrl^C to get out. The log file doesn't end up being printed, I think, because it doesn't show up in the directory. Any suggestions? Thanks again for putting up with this, by the way.

Reply 22 of 28, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm I see. just try again (with lower cycles)
the segfault isn't the same error as the illegal desribtor. so something else happened

Water flows down the stream
How to ask questions the smart way!

Reply 23 of 28, by FredFnord

User metadata
Rank Newbie
Rank
Newbie

I can't even get it to resume after I've paused it... F5 does nothing. Any tricks you had to use here, Acrusum?

Incidentally, if it would be helpful for debugging, I could turn on the two commented-out lines of gobbledygook that pop up after the PageFault message.

I've figured out how to fix the debug screen: tell it to use only ASCII (instead of Unicode/UTF-8) under 'Window Preferences'. You'll have to make it the default so that the new window that is opened has that setting.

Reply 24 of 28, by Acrusum

User metadata
Rank Newbie
Rank
Newbie

Nope, F5 seemed to work for me (well, actually, fn+F5 since I'm on a Titanium PowerBook. Unmodifed F5 just turns up the volume on the speakers). Thanks for the tip on the text encoding, though; that did the trick.

I've dropped the CPU cycles to 20-60, and I still have the same problem, although now it occasionally prints out the following lines after the "SDL parachute" deploys:

dosbox(26160,0xa000ef98) malloc: *** Deallocation of a pointer not malloced: 0x3538e50; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
dosbox(26160,0xa000ef98) malloc: *** error for object 0x35340f0: double free
dosbox(26160,0xa000ef98) malloc: *** set a breakpoint in szone_error to debug

After that, it gives me a command prompt (instead of freezing and requring a Ctrl^C). Unfortunately, still no debug file.

Would it be helpful at all if I ran GDB on dosbox and sent you a copy of the backtrace when it segfaults?

Reply 25 of 28, by FredFnord

User metadata
Rank Newbie
Rank
Newbie

Never mind. Since I unscrambled the window, F5 now works. Go figure.

Where is the log file supposed to be written? I notice that this version of dosbox looks in my home directory for dosbox.conf, whereas the precompiled Mac one looks in the same directory as the executable. And what is it supposed to be called?

Reply 26 of 28, by Acrusum

User metadata
Rank Newbie
Rank
Newbie

I think Qbix said it would be called DOSBOX_INT_CD.TXT, but I haven't found it in either the dosbox-0.63/src directory (where the executable is located) or in my home directory.

Last edited by Acrusum on 2005-07-30, 19:48. Edited 1 time in total.

Reply 27 of 28, by FredFnord

User metadata
Rank Newbie
Rank
Newbie

I see the same things you do, except that if I'm paying very close attention, before the PageFault lines are printed I can see an Illegal Header line for just a split second.

Interestingly, whereas with the precompiled binary DOSBox would just die, the one I built crashes, which gives me crashreporter dumps. (A built-in Mac monitoring app.) I wonder if any of those would be useful?

From what I can see from the stack trace, it appears to be crashing in DEBUG_HeavyLogInstruction, inside DEBUG_HeavyIsBreakpoint. Heh.

I've included the crash log. Feel free to ignore it if it won't help.

Reply 28 of 28, by FredFnord

User metadata
Rank Newbie
Rank
Newbie

Argh. I can't figure out what I'm doing wrong... trying to add a crash report attachment. Maybe that functionality is broken for Safari users. I'll try again, but here's the operative bit of stack trace:

0 dosbox 0x000c8b78 InitPageHandler::readd(unsigned) + 92 (paging.cpp:170)
1 dosbox 0x000069c4 CPU_Interrupt(unsigned, unsigned, unsigned) + 344 (cpu.h:265)
2 dosbox 0x00004ac8 PAGING_PageFault(unsigned, unsigned, unsigned) + 248 (paging.cpp:127)
.
.
.
49 dosbox 0x000069c4 CPU_Interrupt(unsigned, unsigned, unsigned) + 344 (cpu.h:265)
50 dosbox 0x00004ac8 PAGING_PageFault(unsigned, unsigned, unsigned) + 248 (paging.cpp:127)
51 dosbox 0x000c870c InitPageHandler::readb(unsigned) + 184 (mem.h:143)
52 dosbox 0x00085e18 mem_readb(unsigned) + 92 (paging.h:140)
53 dosbox 0x0005b5ac getbyte() + 48 (debug_disasm.cpp:456)
54 dosbox 0x0005ca74 DasmI386(char*, unsigned, unsigned, bool) + 164 (debug_disasm.cpp:1086)
55 dosbox 0x0005735c LogInstruction(unsigned short, unsigned, char*) + 76 (debug.cpp:1613)
56 dosbox 0x00057514 DEBUG_HeavyLogInstruction() + 84 (debug.cpp:1951)
57 dosbox 0x0005a6a8 DEBUG_HeavyIsBreakpoint() + 196 (debug.cpp:2002)
58 dosbox 0x00014574 CPU_Core_Normal_Run() + 176 (core_normal.cpp:149)
59 dosbox 0x00002f8c Normal_Loop() + 72 (dosbox.cpp:125)
60 dosbox 0x000030c4 DOSBOX_RunMachine() + 44 (dosbox.cpp:169)
61 dosbox 0x00003e2c CALLBACK_RunRealInt(unsigned char) + 88 (regs.h:109)
62 dosbox 0x000b8e24 DOS_Shell::Execute(char*, char*) + 1232 (shell_misc.cpp:436)
63 dosbox 0x000b5f18 DOS_Shell::DoCommand(char*) + 420 (shell_cmds.cpp:98)
64 dosbox 0x000b42f4 DOS_Shell::ParseLine(char*) + 336 (shell.cpp:148)
65 dosbox 0x000b5234 DOS_Shell::Run() + 1408 (shell.cpp:216)
66 dosbox 0x000b4b60 SHELL_Init() + 1760 (shell.cpp:419)
67 dosbox 0x00099fa8 SDL_main + 1044 (sdlmain.cpp:1127)
68 dosbox 0x000b9c98 -[SDLMain applicationDidFinishLaunching:] + 68 (SDLMain.m:246)

Attachments

  • Filename
    crash.txt
    File size
    24.85 KiB
    Downloads
    135 downloads
    File comment
    Crashreport dump of dosbos Mac running Privateer
    File license
    Fair use/fair dealing exception