Re: Bug in the latest version

Bart Oldeman
2002-10-28T05:43:57Z

On Sun, 27 Oct 2002, Lars Bjørndal wrote:

> How do I unpack the wp.exe-file?

try this:
http://www.mirror.ac.uk/sites/ftp.simtel.net/pub/simtelnet/msdos/execomp/unp411.zip

I don't completely understand the log so I couldn't reply anything useful
so far. The last lines of your log look like this:

INT21 (0) at c000:1508: AX=3300, BX=0001, CX=0000, DX=0001, DS=c000, ES=c000
int 0x21, ax=0x3300
DO_VM86, cs=0133:109e ss=c000:00f4 f=00033002
ax=3300 bx=0001 ss=c000 sp=00f4 bp=0000
cx=0000 dx=0001 ds=c000 cs=0133 ip=109e
si=13fb di=0162 es=c000 flg=00033002
RET_VM86, cs=c000:c009 ss=c000:00ee f=000b3217 ret=0x1
ax=8f11 bx=bf06 ss=c000 sp=00ee bp=0000
cx=2352 dx=0001 ds=09e8 cs=c000 ip=c009
si=e451 di=8208 es=c000 flg=000b3217
PIC: 0 32 00000000 fffafff9 00000000 Activate ++ dos time to 176073668
DO_VM86, cs=c000:c00a ss=c000:00ee f=000b3217
ax=8f11 bx=bf06 ss=c000 sp=00ee bp=0000
cx=2352 dx=0001 ds=09e8 cs=c000 ip=c00a
si=e451 di=8208 es=c000 flg=000b3217
SIGILL while in vm86()
ERROR: unexpected CPU exception 0x06 err=0x00000000 cr2=00000000 while in
vm86 (DOS)

Program=sigsegv.c, Line=202
EIP: c000:0000c3cf ESP: c000:000018e2 VFLAGS(b): 00000 00110010 00000110
EAX: 00006f04 EBX: 0000a0aa ECX: 0000f16a EDX: 00000000 VFLAGS(h):
00003206
ESI: 00008f79 EDI: 00008208 EBP: 0000e0e2 DS: 09e8 ES: 372a FS: 0000 GS:
0000
FLAGS: PF IF RF VM VIF IOPL: 3

essentially the PIC is the last thing handled before the crash and Stas
knows the PIC better than I do. What looks suspicious (though maybe it
might be completely logical to the DOSEMU PIC experts) is that
a) the DOS time is the same as in the previous PIC call.
b) IP is increased by 1 (c000:0009->c000:000a) for no apparent reason.

Namely, the PIC call before the one above does this:

RET_VM86, cs=fdc8:6c52 ss=0133:0916 f=000b3286 ret=0x2f02
ax=111b bx=03c0 ss=0133 sp=0916 bp=0444
cx=0000 dx=3601 ds=0133 cs=fdc8 ip=6c52
si=00b0 di=00b0 es=036a flg=000b3286
Do INT0x2f: Using caller_function()
INT2F at fdc8:6c52: AX=111b, BX=03c0, CX=0000, DX=3601, DS=0133, ES=036a
MFS: Entering dos_fs_redirect, FN=1B
.. bunch of MFS stuff
PIC: 0 32 00000000 fffafff9 00000000 pic_itime[1]= 176096631
PIC: 0 32 00000000 fffafff9 00000000 pic_sys_time set to 176073668
PIC: 0 32 00000000 fffafff9 00000000 Activate ++ dos time to 176073668
DO_VM86, cs=fdc8:6c52 ss=0133:0916 f=000b3287

Bart