Kevin Vance - Heh, silly me. Remember that posting I made today when I was…

Entries | Archive | Friends | Friends' Friends | User Info

07:53 pm

Monday, June 12th, 2000
Previous Entry Share Next Entry
Tags

Heh, silly me. Remember that posting I made today when I was analyzing the situation of DOSEMU not working? I got distracted by Freakazoid right as I was uncovering the answer. Resuming my train of thought, bind() led to networking, which led to disabling the net code (remaning from my warcraft 2 days), which led to a perfectly working dosemu. Thanks, livejournal, for storing my train of thought until I could use it again, and thanks teferi for your moral support through this difficult DOSless time!
Link )Reply )

Comments
[User Picture]From: teferi
2000-06-12 06:52 pm (UTC)

'twas nothing

Mention it not again. :P
BTW, in relation to xdos not working:

<>@aether:/home/teferi# xdos
kernel CPU speed is 398275476 Hz
Running on CPU=586, FPU=1
ERROR: cpu exception in dosemu code outside of VM86()!
trapno: 0x0e errorcode: 0x00000006 cr2: 0x8b61b87b
eip: 0x08207001 esp: 0xbffff520 eflags: 0x00210206
cs: 0x0023 ds: 0x002b es: 0x002b ss: 0x002b
Page fault: write instruction to linear address: 0x8b61b87b
CPU was in user mode
Exception was caused by non-available page

Any idea how I can fix it?
(Reply) (Thread)
[User Picture]From: kvance
2000-06-12 08:23 pm (UTC)

Re: 'twas nothing

Ooh, that sounds painful. But probably more than it really is, since dosemu's debugger is so low level.

Since I can glean no information from that, I'd try an strace to see what system calls it makes before dying horribly. Otherwise, the standard list: make sure root has access to the X server (duh), try turning off mitshm in the config file, make sure you have the vga font installed. That's all I can think of off the top of my head. An strace should be more informational.

If all else fails, you could always try trusting no binaries and compiling from source like me.
(Reply) (Parent) (Thread)
[User Picture]From: teferi
2000-06-12 08:33 pm (UTC)

Re: 'twas nothing

Relevant snippet from strace:
mprotect(0x8207000, 7457, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
--- SIGSEGV (Segmentation fault) ---
write(2, "ERROR: cpu exception in dosemu c"..., 208ERROR: cpu exception in dosemu code outside of VM86()!

The DOS box comes up, displays the boot message and then dies just before giving a prompt. I'm trying disabling mitshm now, for what little good it'll do.
(Reply) (Parent) (Thread)
[User Picture]From: kvance
2000-06-13 08:15 am (UTC)

Re: 'twas nothing

Right in the middle of memory stuff, eh? Doesn't tell me much. The best thing you could find would be read()/write() or something human-readable that could aid in debugging it.
(Reply) (Parent) (Thread)