public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-08  9:54 anon permutation
  2004-09-08 20:49 ` Ryan Underwood
  0 siblings, 1 reply; 16+ messages in thread
From: anon permutation @ 2004-09-08  9:54 UTC (permalink / raw)
  To: nemesis-lists; +Cc: linux-msdos



I am wondering, since this hanging problem is related to dosemu's dpmi 
implementation, is it possible for me to use another dpmi implementation?  
Can I turn off dosemu's dpmi inside dosemu.conf and then run some other dpmi 
inside autoexec.bat?

Is this feasible?  What other DPMI implementation is compatible with dosemu?

Thanks.



>From: Ryan Underwood <nemesis-lists@icequake.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with msg X: expose event
>Date: Tue, 7 Sep 2004 23:34:11 -0500
>
>
>On Tue, Sep 07, 2004 at 07:45:03AM +0000, anon permutation wrote:
> >
> > I have encoutered problems while uploading even 256KB chunks, as a 
>result,
> > I have only pasted the top and bottom of my log online.  The complete 
>log
> > is about 23MB.  Is there a place where I can email you the file?
>
>Looking at the log, it looks like a DPMI or timer specific problem.
>
> > If the GP fault from run_vm86() is ok, does that mean I can just change 
>the
> > codes that handle the fault in vm_86_GP_fault() to do nothing?  Would 
>that
> > allow me to work around the problem?
>
>No, GPFs are a normal and essential part of a V86 task's execution.
>When a GPF occurs, the virtual machine monitor (in this case, the
>kernel/DOSEMU) takes control, acts in some manner depending on the
>context of the task, and then returns control to the task.
>
>What is probably happening is that you've found a bug in dosemu's DPMI
>or timer emulation, especially since you have the same problem under the
>console.  Unfortunately, it will be really hard to debug this without
>the app.
>
>--
>Ryan Underwood, <nemesis@icequake.net>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-08  9:54 anon permutation
@ 2004-09-08 20:49 ` Ryan Underwood
  0 siblings, 0 replies; 16+ messages in thread
From: Ryan Underwood @ 2004-09-08 20:49 UTC (permalink / raw)
  To: anon permutation; +Cc: linux-msdos


On Wed, Sep 08, 2004 at 09:54:49AM +0000, anon permutation wrote:
> 
> 
> I am wondering, since this hanging problem is related to dosemu's dpmi 
> implementation, is it possible for me to use another dpmi implementation?  
> Can I turn off dosemu's dpmi inside dosemu.conf and then run some other 
> dpmi inside autoexec.bat?
> 
> Is this feasible?  What other DPMI implementation is compatible with dosemu?

No, that is not possible.  DPMI server runs in protected mode, so it has
to be part of dosemu and a server cannot be installed from the v86 task.
It is the same reason why you can't use another 386 EMS manager under
dosemu, because the EMS manager runs in protected mode in order to use
the 386 paging unit.

Also, usually DPMI servers that are not integrated into the EMS manager
will use VCPI to enter protected mode, since the EMS manager is already
running in protected mode and provides a VCPI interface in case another
program wants protected mode.  Using VCPI is unfortunately also
impossible under dosemu, not a fault of dosemu but the fault/intent of
VCPI design.

-- 
Ryan Underwood, <nemesis@icequake.net>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-09  2:42 anon permutation
  0 siblings, 0 replies; 16+ messages in thread
From: anon permutation @ 2004-09-09  2:42 UTC (permalink / raw)
  To: nemesis-lists; +Cc: linux-msdos


I have attached dosdebug to dosemu when it hangs, and I got the following:

System state: running in real mode while in DPMI
AX=0000 BX=800a CX=0000 DX=0003
SI=874c DI=023a SP=056c BP=c316
DS=c316 FS=0000 GS=0000 FL=3286
CS:IP=0522:0434
SS:SP=c316:05bc

0522:0434 53 push bx

What should I do?  Thanks.



>From: Ryan Underwood <nemesis-lists@icequake.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with DPMI / PIC problem
>Date: Wed, 8 Sep 2004 15:49:15 -0500
>
>
>On Wed, Sep 08, 2004 at 09:54:49AM +0000, anon permutation wrote:
> >
> >
> > I am wondering, since this hanging problem is related to dosemu's dpmi
> > implementation, is it possible for me to use another dpmi 
>implementation?
> > Can I turn off dosemu's dpmi inside dosemu.conf and then run some other
> > dpmi inside autoexec.bat?
> >
> > Is this feasible?  What other DPMI implementation is compatible with 
>dosemu?
>
>No, that is not possible.  DPMI server runs in protected mode, so it has
>to be part of dosemu and a server cannot be installed from the v86 task.
>It is the same reason why you can't use another 386 EMS manager under
>dosemu, because the EMS manager runs in protected mode in order to use
>the 386 paging unit.
>
>Also, usually DPMI servers that are not integrated into the EMS manager
>will use VCPI to enter protected mode, since the EMS manager is already
>running in protected mode and provides a VCPI interface in case another
>program wants protected mode.  Using VCPI is unfortunately also
>impossible under dosemu, not a fault of dosemu but the fault/intent of
>VCPI design.
>
>--
>Ryan Underwood, <nemesis@icequake.net>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-09  3:28 anon permutation
  0 siblings, 0 replies; 16+ messages in thread
From: anon permutation @ 2004-09-09  3:28 UTC (permalink / raw)
  To: nemesis-lists; +Cc: linux-msdos



Investigating using dosdebug, it seems that the app is in a loop waiting for 
something... please help.

#009f:00004965 F4               hlt

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0c00  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0146
CS:IP=f800:4828       SS:SP=2adc:0c00

f800:4828 F4               hlt

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=063c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4035       SS:SP=03c6:063c

f800:4035 B020             mov     al,0x20

Trap 1, system state: stopped in real mode while in DPMI
AX=0020  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=063c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4037       SS:SP=03c6:063c

f800:4037 E620             out     0x20,al

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=063e  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:403a       SS:SP=03c6:063e

f800:403a 1F               pop     ds

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000570 SS:ESP= 0097:00000f7a

#0187:0570 6655             push    ebp

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000572 SS:ESP= 0097:00000f76

#0187:0572 6655             push    ebp
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000574 SS:ESP= 0097:00000f72

#0187:0574 668BEC           mov     ebp,esp

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000577 SS:ESP= 0097:00000f72

#0187:0577 6653             push    ebx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000579 SS:ESP= 0097:00000f6e

#0187:0579 1E               push    ds

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057a SS:ESP= 0097:00000f6c

#0187:057a BB9F01           mov     bx,019f

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0000019f ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057d SS:ESP= 0097:00000f6c

#0187:057d 8EDB             mov     ds,bx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0000019f ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057f SS:ESP= 0097:00000f6c

#0187:057f 8CD3             mov     bx,ss
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000097 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000581 SS:ESP= 0097:00000f6c

#0187:0581 660F02DB         lar     ebx,ebx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000585 SS:ESP= 0097:00000f6c

#0187:0585 660FBAE316       bt      ebx,0x16

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000058a SS:ESP= 0097:00000f6c

#0187:058a 7204             jb      0590

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000590 SS:ESP= 0097:00000f6c

#0187:0590 678B5D08         mov     bx,[ebp+0x8]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400023 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000594 SS:ESP= 0097:00000f6c

#0187:0594 67895D04         mov     [ebp+0x4],bx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400023 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000598 SS:ESP= 0097:00000f6c

#0187:0598 2E8A1F           mov     bl,cs:[bx]
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400008 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000059b SS:ESP= 0097:00000f6c

#0187:059b 2AFF             sub     bh,bh

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400008 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000059d SS:ESP= 0097:00000f6c

#0187:059d 80BF020001       cmp     [bx+0x02],0x1

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400008 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:000005a2 SS:ESP= 0097:00000f6c

#0187:05a2 74A8             je      054c

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400008 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000054c SS:ESP= 0097:00000f6c

#0187:054c C1E303           shl     bx,3

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400040 ECX: 00000000 EDX: 000000cf eflags: 00000202
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000054f SS:ESP= 0097:00000f6c

#0187:054f 81C34201         add     bx,0142

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400182 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000553 SS:ESP= 0097:00000f6c

#0187:0553 66FF7704         push    dword ptr [bx+0x4]
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400182 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000557 SS:ESP= 0097:00000f68

#0187:0557 66FF37           push    dword ptr [bx]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400182 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000055a SS:ESP= 0097:00000f64

#0187:055a 678E5DFA         mov     ds,[ebp-0x6]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400182 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000055e SS:ESP= 0097:00000f64

#0187:055e 67668B5DFC       mov     ebx,[ebp-0x4]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f72 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000563 SS:ESP= 0097:00000f64

#0187:0563 67668B6D00       mov     ebp,[ebp]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000568 SS:ESP= 0097:00000f64

#0187:0568 66CA1000         retf    0010

Trap 1, system state: stopped in DPMI-32bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 009f:00004951 SS:ESP= 0097:00000f7c

#009f:00004951 F4               hlt
Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bfa  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0046
CS:IP=0522:0622       SS:SP=2adc:0bfa

0522:0622 FA               cli

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bf4  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:003c       SS:SP=2adc:0bf4

039f:003c E80801           call    0147

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bf2  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0147       SS:SP=2adc:0bf2

039f:0147 50               push    ax

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bf0  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0148       SS:SP=2adc:0bf0

039f:0148 55               push    bp

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bee  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0149       SS:SP=2adc:0bee

039f:0149 06               push    es

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:014a       SS:SP=2adc:0bec

039f:014a 2E8E060A00       mov     es,cs:[000a]

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:014f       SS:SP=2adc:0bec

039f:014f 2E8B2E1000       mov     bp,cs:[0010]

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0154       SS:SP=2adc:0bec

039f:0154 B001             mov     al,0x1

Trap 1, system state: stopped in real mode while in DPMI
AX=0301  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0156       SS:SP=2adc:0bec

039f:0156 26864600         xchg    al,es:[bp]

Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:015a       SS:SP=2adc:0bec

039f:015a 3C00             cmp     al,00

Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:015c       SS:SP=2adc:0bec

039f:015c 7551             jne     01af

Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:015e       SS:SP=2adc:0bec

039f:015e 2E832E100008     sub     cs:[0010],0008

Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0316
CS:IP=039f:0164       SS:SP=2adc:0bec

039f:0164 26896602         mov     es:[bp+0x2],sp

Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0316
CS:IP=039f:0168       SS:SP=2adc:0bec

039f:0168 268C5604         mov     es:[bp+0x4],ss
Trap 1, system state: stopped in real mode while in DPMI
AX=0300  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0316
CS:IP=039f:016c       SS:SP=2adc:0bec

039f:016c 8BC5             mov     ax,bp

Trap 1, system state: stopped in real mode while in DPMI
AX=0020  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0020
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0316
CS:IP=039f:016e       SS:SP=2adc:0bec

039f:016e 268B6E06         mov     bp,es:[bp+0x6]

Trap 1, system state: stopped in real mode while in DPMI
AX=0020  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0546
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0316
CS:IP=039f:0172       SS:SP=2adc:0bec

039f:0172 26394600         cmp     es:[bp],ax

Trap 1, system state: stopped in real mode while in DPMI
AX=0020  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0546
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0176       SS:SP=2adc:0bec

039f:0176 7544             jne     01bc

Trap 1, system state: stopped in real mode while in DPMI
AX=0020  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0546
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0178       SS:SP=2adc:0bec

039f:0178 8CC0             mov     ax,es

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0546
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:017a       SS:SP=2adc:0bec

039f:017a 8EC5             mov     es,bp

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0546
DS=0000  ES=0546  FS=0000  GS=0000  FL=0346
CS:IP=039f:017c       SS:SP=2adc:0bec

039f:017c 8BEC             mov     bp,sp

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=0bec
DS=0000  ES=0546  FS=0000  GS=0000  FL=0346
CS:IP=039f:017e       SS:SP=2adc:0bec

039f:017e 8B6E06           mov     bp,[bp+0x6]

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0bec  BP=003f
DS=0000  ES=0546  FS=0000  GS=0000  FL=0346
CS:IP=039f:0181       SS:SP=2adc:0bec

039f:0181 8ED0             mov     ss,ax

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0546  BP=003f
DS=0000  ES=0546  FS=0000  GS=0000  FL=0346
CS:IP=039f:0185       SS:SP=03c6:0546

039f:0185 8EC0             mov     es,ax

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0546  BP=003f
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:0187       SS:SP=03c6:0546

039f:0187 2E8B6E00         mov     bp,cs:[bp]

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0546  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=039f:018b       SS:SP=03c6:0546

039f:018b 9C               pushf

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=0540  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4000       SS:SP=03c6:0540

f800:4000 1E               push    ds

Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053e  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4001       SS:SP=03c6:053e

f800:4001 50               push    ax
Trap 1, system state: stopped in real mode while in DPMI
AX=03c6  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4002       SS:SP=03c6:053c

f800:4002 31C0             xor     ax,ax

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4004       SS:SP=03c6:053c

f800:4004 8ED8             mov     ds,ax

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4006       SS:SP=03c6:053c

f800:4006 66FF066C04       inc     dword ptr [046c]

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0306
CS:IP=f800:400b       SS:SP=03c6:053c

f800:400b 833E6E0418       cmp     [046e],0018

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0383
CS:IP=f800:4010       SS:SP=03c6:053c

f800:4010 7216             jb      4028

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0383
CS:IP=f800:4028       SS:SP=03c6:053c

f800:4028 803E400400       cmp     [0440],00

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:402d       SS:SP=03c6:053c

f800:402d 7404             je      4033
Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4033       SS:SP=03c6:053c

f800:4033 CD1C             int     0x1c

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000570 SS:ESP= 0097:00000f62

#0187:0570 6655             push    ebp

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000572 SS:ESP= 0097:00000f5e

#0187:0572 6655             push    ebp

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000574 SS:ESP= 0097:00000f5a

#0187:0574 668BEC           mov     ebp,esp

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000577 SS:ESP= 0097:00000f5a

#0187:0577 6653             push    ebx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000579 SS:ESP= 0097:00000f56

#0187:0579 1E               push    ds
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057a SS:ESP= 0097:00000f54

#0187:057a BB9F01           mov     bx,019f

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0000019f ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057d SS:ESP= 0097:00000f54

#0187:057d 8EDB             mov     ds,bx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0000019f ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000057f SS:ESP= 0097:00000f54

#0187:057f 8CD3             mov     bx,ss

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000097 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000581 SS:ESP= 0097:00000f54

#0187:0581 660F02DB         lar     ebx,ebx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000585 SS:ESP= 0097:00000f54

#0187:0585 660FBAE316       bt      ebx,0x16

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000058a SS:ESP= 0097:00000f54

#0187:058a 7204             jb      0590

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040f300 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000590 SS:ESP= 0097:00000f54

#0187:0590 678B5D08         mov     bx,[ebp+0x8]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400073 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000594 SS:ESP= 0097:00000f54

#0187:0594 67895D04         mov     [ebp+0x4],bx

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400073 ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000598 SS:ESP= 0097:00000f54

#0187:0598 2E8A1F           mov     bl,cs:[bx]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040001c ECX: 00000000 EDX: 000000cf eflags: 00000247
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000059b SS:ESP= 0097:00000f54

#0187:059b 2AFF             sub     bh,bh

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040001c ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000059d SS:ESP= 0097:00000f54

#0187:059d 80BF020001       cmp     [bx+0x02],0x1

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040001c ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:000005a2 SS:ESP= 0097:00000f54

#0187:05a2 74A8             je      054c
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 0040001c ECX: 00000000 EDX: 000000cf eflags: 00000246
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000054c SS:ESP= 0097:00000f54

#0187:054c C1E303           shl     bx,3

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 004000e0 ECX: 00000000 EDX: 000000cf eflags: 00000202
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000054f SS:ESP= 0097:00000f54

#0187:054f 81C34201         add     bx,0142

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400222 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000553 SS:ESP= 0097:00000f54

#0187:0553 66FF7704         push    dword ptr [bx+0x4]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400222 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000557 SS:ESP= 0097:00000f50

#0187:0557 66FF37           push    dword ptr [bx]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400222 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 019f ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000055a SS:ESP= 0097:00000f4c

#0187:055a 678E5DFA         mov     ds,[ebp-0x6]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00400222 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:0000055e SS:ESP= 0097:00000f4c

#0187:055e 67668B5DFC       mov     ebx,[ebp-0x4]
Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 00000f5a DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000563 SS:ESP= 0097:00000f4c

#0187:0563 67668B6D00       mov     ebp,[ebp]

Trap 1, system state: stopped in DPMI-16bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 0187:00000568 SS:ESP= 0097:00000f4c

#0187:0568 66CA1000         retf    0010

Trap 1, system state: stopped in DPMI-32bit

EAX: 00000302 EBX: 00000000 ECX: 00000000 EDX: 000000cf eflags: 00000206
ESI: 00000088 EDI: 00004b54 EBP: 41364e30 DS: 00cf ES: 00af FS: 0000 GS: 
0257
CS:EIP= 009f:00004965 SS:ESP= 0097:00000f64

#009f:00004965 F4               hlt

Trap 1, system state: stopped in real mode while in DPMI
AX=0302  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=4e30
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0146
CS:IP=f800:4828       SS:SP=03c6:053c

f800:4828 F4               hlt

Trap 1, system state: stopped in real mode while in DPMI
AX=0000  BX=0000  CX=0000  DX=00cf  SI=0088  DI=4b54  SP=053c  BP=0038
DS=0000  ES=03c6  FS=0000  GS=0000  FL=0346
CS:IP=f800:4035       SS:SP=03c6:053c

<at this point, it repeats.>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-09  4:10 anon permutation
  2004-09-09 15:02 ` Ryan Underwood
  0 siblings, 1 reply; 16+ messages in thread
From: anon permutation @ 2004-09-09  4:10 UTC (permalink / raw)
  To: nemesis-lists; +Cc: linux-msdos


I tried to reproduce the problem using the -D9+Mr log.
However, this time, dosemu actually crashed as opposed to
just hang.  The complete log is 33M, so I am just pasting
the end of it here.  Please let me know if there is a place
where i can email you the complete log.

Thank you for helping me.


------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:045f 000005bc 000b3282 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 17
successfully
PIC:   0  32 00000000 fff8fff9 00020000 Zeroing vm86, DPMI
from 00, k0
PIC:   0  32 00000000 fff8fff9 00020000 pic_itime[1]=
1129905085
PIC:   0  32 00000000 fff8fff9 00020000 pic_sys_time set to
1129873441
PIC:   0  32 00000000 fff8fff9 00020000 Activate ++ dos time
to 1129873441
PIC:   0  32 00000000 fff8fff9 00020000 pic_sys_time is
1129873441
PIC:   0  32 00000000 fff8fff9 00020000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00030000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b8 001b3282 00100200
DPMI: ret_vm86, f800:47f1 000005bc 000b3202 00100200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b8 000b3202 00000200
DPMI: ret_vm86, 0522:380e 000005b4 00033202 00000200 ret=0x4
DPMI: do_vm86,  0522:380e 000005b4 00033202 00000200
DPMI: ret_vm86, 0522:0a5c 000005ac 000b3286 00000200 ret=0x4
DPMI: do_vm86,  0522:0a5c 000005ac 000b3286 00000200
DPMI: ret_vm86, 0522:0aa0 000005b0 00033246 00000200 ret=0x4
DPMI: do_vm86,  0522:0aa0 000005b0 00033246 00000200
DPMI: ret_vm86, 0522:0712 000005aa 00033246 00000200 ret=0x4
DPMI: do_vm86,  0522:0712 000005aa 00033246 00000200
DPMI: ret_vm86, 0522:0ace 000005a8 00033246 00000200 ret=0x4
DPMI: do_vm86,  0522:0ace 000005a8 00033246 00000200
DPMI: ret_vm86, f800:47f1 000005bc 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:045f 000005bc 001b3282 00000200
DPMI: ret_vm86, c316:8ad7 000005c4 000b3246 00000200 ret=0x3
DPMI: Return from vm86() for timeout
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  c316:8ad7 000005c4 000b3246 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:045f 000005bc 000b3282 00100200 ret=0
PIC: cnt lvl pic_isr  pic_imr  pic_irr (column headers)
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b8 000b3282 00000200
DPMI: ret_vm86, f800:47f1 000005bc 000b3202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b8 000b3202 00000200
DPMI: ret_vm86, f800:47f1 000005bc 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:045f 000005bc 000b3282 00000200
DPMI: ret_vm86, f800:490c 00004b54 00030202 00000200 ret=0x1
DPMI: realmode hlt: 0xfc90c
DPMI: Return from Real Mode Procedure
------ DPMI: dpmi loop ---------------------
DPMI SWITCH to 0x187:0x00000954 (0x409ca4c4), Stack
0x19f:0x00004d70 (0x409da230)
DPMI: sti
DPMI: Return to client at 0187:000006fd, Stack 0x19f:0x00004dea
DPMI: ESP bug, esp=0xc6b74e26 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: sti
DPMI: Return to client at 00a7:00007412, Stack 0x19f:0x00004e26
DPMI: ESP bug, esp=0xc6b74e50 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: cli
DPMI: searching blacklist (0 elements) for cli (lina=0x40996d91)
DPMI: Return to client at 00e7:00000d72, Stack 0x19f:0x00004e50
DPMI: ESP bug, esp=0xc6b74e54 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: sti
DPMI: Return to client at 00e7:00000e6b, Stack 0x19f:0x00004e54
DPMI: ESP bug, esp=0xc6b74e56 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: sti
DPMI: Return to client at 00e7:00000d20, Stack 0x19f:0x00004e56
DPMI: ESP bug, esp=0xc6b74e26 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: int 0x31
DPMI: call inthandler 0x31(0x0b) at 0x187:0x0000c4
		ret=0x187:0x00a7d5
DPMI: Return to client at 0187:000000c4, Stack 0x19f:0x00004e1a
DPMI: default protected mode interrupthandler 0x31 called
DPMI: int31, ax=000b, ebx=00000257, ecx=00002000, edx=00000000
        edi=00004e82, esi=00000000, ebp=00004e2c, esp=00004d74
        cs=0187, ds=0000, ss=019f, es=019f, fs=0000, gs=0257
DPMI: GetDescriptor[0x004a;0x0257]: 0x00cff3000000ffff
DPMI: Return to client at 0187:00000954, Stack 0x19f:0x00004d74
DPMI: sti
DPMI: Return to client at 0187:000006fd, Stack 0x19f:0x00004dec
DPMI: ESP bug, esp=0xc6b74e26 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: int 0x31
DPMI: call inthandler 0x31(0x0c) at 0x187:0x0000c4
		ret=0x187:0x00a7d5
DPMI: Return to client at 0187:000000c4, Stack 0x19f:0x00004e1a
DPMI: default protected mode interrupthandler 0x31 called
DPMI: int31, ax=000c, ebx=000001bf, ecx=00009f45, edx=00000000
        edi=00004e82, esi=00000000, ebp=00004e2c, esp=00004d74
        cs=0187, ds=0000, ss=019f, es=019f, fs=0000, gs=0257
DPMI: SetDescriptor[0x0037;0x01bf] 0x4100f336a048ffff
DPMI: SetSelector: 0x01bf base=0x4136a048 limit=0xffff big=0
DPMI: Return to client at 0187:00000954, Stack 0x19f:0x00004d74
DPMI: sti
DPMI: Return to client at 0187:000006fd, Stack 0x19f:0x00004dec
DPMI: ESP bug, esp=0xc6b74eb0 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: int 0x31
DPMI: call inthandler 0x31(0x06) at 0x187:0x0000c4
		ret=0x187:0x0026ca
DPMI: Return to client at 0187:000000c4, Stack 0x19f:0x00004ea4
DPMI: default protected mode interrupthandler 0x31 called
DPMI: int31, ax=0006, ebx=000001bf, ecx=00009f45, edx=00000000
        edi=00004f7a, esi=00004ff2, ebp=00004f98, esp=00004dfc
        cs=0187, ds=019f, ss=019f, es=019f, fs=0000, gs=0257
DPMI: Return to client at 0187:00000954, Stack 0x19f:0x00004dfc
DPMI: sti
DPMI: Return to client at 0187:000006fd, Stack 0x19f:0x00004e76
DPMI: ESP bug, esp=0xc6b74e5c stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: cli
DPMI: searching blacklist (0 elements) for cli (lina=0x40996cde)
DPMI: Return to client at 00e7:00000cbf, Stack 0x19f:0x00004e5c
DPMI: ESP bug, esp=0xc6b74e4c stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: int 0x31
DPMI: call inthandler 0x31(0x06) at 0x187:0x0000c4
		ret=0xe7:0x0008a9
DPMI: Return to client at 0187:000000c4, Stack 0x19f:0x00004e40
DPMI: default protected mode interrupthandler 0x31 called
DPMI: int31, ax=0006, ebx=000001bf, ecx=00000000, edx=000000af
        edi=40e201bf, esi=00004e72, ebp=41364e5a, esp=00004d98
        cs=0187, ds=00af, ss=019f, es=00af, fs=0000, gs=0257
DPMI: Return to client at 0187:00000954, Stack 0x19f:0x00004d98
DPMI: sti
DPMI: Return to client at 0187:000006fd, Stack 0x19f:0x00004e12
DPMI: ESP bug, esp=0xc6b74e56 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: sti
DPMI: Return to client at 00e7:00000e1f, Stack 0x19f:0x00004e56
DPMI: ESP bug, esp=0xc6b74e24 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: cli
DPMI: searching blacklist (0 elements) for cli (lina=0x22a50)
DPMI: Return to client at 00a7:00007371, Stack 0x19f:0x00004e24
DPMI: ESP bug, esp=0xc6b74e24 stack_bot=0xbfffe000, cs32=0
ss32=0
DPMI: int 0x31
DPMI: call inthandler 0x31(0x302) at 0x187:0x0000c4
		ret=0xa7:0x0073dc
DPMI: Return to client at 0187:000000c4, Stack 0x19f:0x00004e18
DPMI: default protected mode interrupthandler 0x31 called
DPMI: int31, ax=0302, ebx=00000000, ecx=00000000, edx=000000cf
        edi=00004b54, esi=00000088, ebp=41364e30, esp=00004d70
        cs=0187, ds=00cf, ss=019f, es=00af, fs=0000, gs=0257
DPMI: switching to realmode stack, in_dpmi_rm_stack=1
DPMI: RealModeCallStructure at 0x1b694
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  c316:07b8 00004b4e 00000000 00000000
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:045b 000005ba 00023a03 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b6 00023a03 00000200
DPMI: ret_vm86, f800:47f1 000005ba 00033202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b6 00033202 00000200
DPMI: ret_vm86, f800:47f1 000005ba 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:045b 000005ba 00023a03 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:0434 000005ba 000b3282 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b6 000b3282 00000200
DPMI: ret_vm86, f800:47f1 000005ba 000b3202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b6 000b3202 00000200
DPMI: ret_vm86, f800:47f1 000005ba 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:0434 000005ba 000b3282 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:045f 000005bc 000b3286 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b8 000b3286 00000200
DPMI: ret_vm86, f800:47f1 000005bc 000b3202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b8 000b3202 00000200
DPMI: ret_vm86, f800:47f1 000005bc 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:045f 000005bc 000b3286 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:0456 000005b8 00033a07 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b4 00033a07 00000200
DPMI: ret_vm86, f800:47f1 000005b8 00033202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b4 00033202 00000200
DPMI: ret_vm86, 0522:0aa0 000005ac 00033246 00100200 ret=0
PIC:   0 -16 00010000 fff8fff9 00000000 Requested irq lvl 17
successfully
PIC:   0  16 00010000 fff8fff9 00020000 Zeroing vm86, DPMI
from 00, k0
PIC:   0  16 00010000 fff8fff9 00020000 pic_itime[1]=
1129905085
PIC:   0  16 00010000 fff8fff9 00020000 pic_sys_time set to
1129885335
PIC:   0  16 00010000 fff8fff9 00020000 Activate ++ dos time
to 1129885335
PIC:   0  16 00010000 fff8fff9 00020000 pic_sys_time is
1129885335
DPMI: do_vm86,  0522:0aa0 000005ac 00033246 00000200
DPMI: ret_vm86, 0522:0712 000005a6 00033246 00000200 ret=0x4
DPMI: do_vm86,  0522:0712 000005a6 00033246 00000200
DPMI: ret_vm86, 0522:0ace 000005a4 00033246 00000200 ret=0x4
DPMI: do_vm86,  0522:0ace 000005a4 00033246 00000200
DPMI: ret_vm86, f800:47f1 000005b8 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:0456 000005b8 00033a07 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:0456 000005b8 00033a03 00100200 ret=0
PIC: cnt lvl pic_isr  pic_imr  pic_irr (column headers)
PIC:   0 +32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b4 00033a03 00000200
DPMI: ret_vm86, f800:47f1 000005b8 00033202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b4 00033202 00000200
DPMI: ret_vm86, f800:47f1 000005b8 00033246 00000200 ret=0x1

------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:0456 000005b8 00033a03 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:0434 000005ba 000b3286 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b6 000b3286 00000200
DPMI: ret_vm86, f800:47f1 000005ba 000b3202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b6 000b3202 00000200
DPMI: ret_vm86, f800:47f1 000005ba 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:0434 000005ba 000b3286 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000000
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000000 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:045f 000005bc 000b3286 00100200 ret=0
PIC:   0  32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005b8 000b3286 00000200
DPMI: ret_vm86, f800:47f1 000005bc 000b3202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005b8 000b3202 00000200
DPMI: ret_vm86, f800:47f1 000005bc 00033246 00000200 ret=0x1
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:045f 000005bc 000b3286 00000200
DPMI: ret_vm86, 0522:381e 000005b2 000b3212 00100200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 522:381e
DPMI: do_int 60: dpmi_eflags=00100200
PIC:   0  32 00000000 fffeffff 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fffeffff 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005a8 00033012 00000000
DPMI: ret_vm86, f800:47f1 000005ac 00033202 00000000 ret=0x1
DPMI: do_vm86,  0522:37b0 000005a8 00033202 00000200
DPMI: ret_vm86, f800:47f1 000005ac 00033246 00000200 ret=0x1
PIC:   0 -16 00010000 fff8fff9 00000000 Requested irq lvl 16
lost
PIC:   0  16 00010000 fff8fff9 00000000 pic_itime and
pic_ltime for timer 16 matched!
PIC:   0  16 00010000 fff8fff9 00000000 Zeroing vm86, DPMI
from 00, k0
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  f000:3100 000005ac 00033012 00000200
DPMI: ret_vm86, f000:0602 000005ac 00033212 00000200 ret=0x6002
DPMI: Return from vm86() for interrupt
DPMI: retval=60 f000:602
DPMI: do_int 60: dpmi_eflags=00000200
------ DPMI: dpmi loop ---------------------
DPMI: do_vm86,  0522:381e 000005b2 000b3212 00000200
DPMI: ret_vm86, 0522:0ab0 000005b0 00023212 00100200 ret=0
PIC:   0 +32 00000000 fff8fff9 00000000 Requested irq lvl 16
successfully
PIC:   0  32 00000000 fff8fff9 00010000 Zeroing vm86, DPMI
from 00, k0
DPMI: do_vm86,  0522:37b0 000005ac 00023212 00000200
DPMI: ret_vm86, f800:47f1 000005b0 00033202 00000200 ret=0x1
DPMI: do_vm86,  0522:37b0 000005ac 00033202 00000200
DPMI: ret_vm86, 0a3c:ffff 00000598 00033286 00000200 ret=0x1
ERROR: general protection at 0x1a3bf: 0
Program=do_vm86.c, Line=348
EIP: 0a3c:0000ffff ESP: c316:00000598  VFLAGS(b): 00000
00110000 10000110
EAX: 0000ffff EBX: 000000dc ECX: 000000e1 EDX: 0000ffff
VFLAGS(h): 00003086
ESI: 00008794 EDI: 0000326d EBP: 00000000 DS: 0522 ES: 0000
FS: 0000 GS: 0000
FLAGS: PF SF IF RF VM  IOPL: 3
OPS  : 34 07 00 34 48 07 00 4d 23 07 -> 00 4d 23 07 00 4a 24
01 00 31
	004d23              0a3c:ffff add     [di+0x23],cl
00| 0133:108a->0023ba   01| 0070:06f4->000df4   02|
039f:0016->003a06
03| 0070:06f4->000df4   04| 0070:44f4->004bf4   05|
f000:0050->0f0050
06| f000:0060->0f0060   07| f000:0070->0f0070   08|
0522:0622->005842
09| 2415:0000->024150   0a| 039f:0057->003a47   0b|
039f:006f->003a5f
0c| 039f:0087->003a77   0d| 039f:009f->003a8f   0e|
039f:00b7->003aa7
0f| 0070:06f4->000df4   10| c316:0792->0c38f2   11|
f000:0110->0f0110
12| f000:0120->0f0120   13| 0070:0774->000e74   14|
f000:0140->0f0140
15| 1b6e:7273->022953   16| f800:3500->0fb500   17|
c316:6884->0c99e4
18| f000:0180->0f0180   19| 045c:002f->0045ef   1a|
f000:01a0->0f01a0
1b| 1b6e:1168->01c848   1c| f000:01c0->0f01c0   1d|
f000:01d0->0f01d0
1e| 0000:0522->000522   1f| c000:0568->0c0568   20|
c316:07b6->0c3916
21| c316:07b8->0c3918   22| 0461:02b1->0048c1   23|
1b6e:1188->01c868
24| 1b6e:118c->01c86c   25| 0133:10a8->0023d8   26|
0133:10b2->0023e2
27| c316:09a1->0c3b01   28| 0133:10da->00240a   29|
0070:0762->000e62
2a| 0133:10da->00240a   2b| 0133:10da->00240a   2c|
0133:10da->00240a
2d| 0133:10da->00240a   2e| 0461:013f->00474f   2f|
c316:4d35->0c7e95
30| 3310:d0ea->0401ea   31| f000:0301->0f0301   32|
0133:10da->00240a
33| f000:0330->0f0330   34| 0133:10da->00240a   35|
0133:10da->00240a
leavedos(4|0x4) called - shutting down
calling SIG_close

Closing all IRQ you opened!
calling keyboard_close
00| 0133:108a->0023ba   01| 0070:06f4->000df4   02|
039f:0016->003a06
03| 0070:06f4->000df4   04| 0070:44f4->004bf4   05|
f000:0050->0f0050
06| f000:0060->0f0060   07| f000:0070->0f0070   08|
0522:0622->005842
09| 2415:0000->024150   0a| 039f:0057->003a47   0b|
039f:006f->003a5f
0c| 039f:0087->003a77   0d| 039f:009f->003a8f   0e|
039f:00b7->003aa7
0f| 0070:06f4->000df4   10| c316:0792->0c38f2   11|
f000:0110->0f0110
12| f000:0120->0f0120   13| 0070:0774->000e74   14|
f000:0140->0f0140
15| 1b6e:7273->022953   16| f800:3500->0fb500   17|
c316:6884->0c99e4
18| f000:0180->0f0180   19| 045c:002f->0045ef   1a|
f000:01a0->0f01a0
1b| 1b6e:1168->01c848   1c| f000:01c0->0f01c0   1d|
f000:01d0->0f01d0
1e| 0000:0522->000522   1f| c000:0568->0c0568   20|
c316:07b6->0c3916
21| c316:07b8->0c3918   22| 0461:02b1->0048c1   23|
1b6e:1188->01c868
24| 1b6e:118c->01c86c   25| 0133:10a8->0023d8   26|
0133:10b2->0023e2
27| c316:09a1->0c3b01   28| 0133:10da->00240a   29|
0070:0762->000e62
2a| 0133:10da->00240a   2b| 0133:10da->00240a   2c|
0133:10da->00240a
2d| 0133:10da->00240a   2e| 0461:013f->00474f   2f|
c316:4d35->0c7e95
30| 3310:d0ea->0401ea   31| f000:0301->0f0301   32|
0133:10da->00240a
33| f000:0330->0f0330   34| 0133:10da->00240a   35|
0133:10da->00240a
calling disk_close_all
calling video_close
releasing ports and blocked devices
calling shared memory exit
calling HMA exit
closing debugger pipes
calling mapping_close()
calling close_all_printers
calling mouse_close


>From: Ryan Underwood <nemesis-lists@icequake.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with DPMI / PIC problem
>Date: Wed, 8 Sep 2004 15:49:15 -0500
>
>
>On Wed, Sep 08, 2004 at 09:54:49AM +0000, anon permutation wrote:
> >
> >
> > I am wondering, since this hanging problem is related to dosemu's dpmi
> > implementation, is it possible for me to use another dpmi 
>implementation?
> > Can I turn off dosemu's dpmi inside dosemu.conf and then run some other
> > dpmi inside autoexec.bat?
> >
> > Is this feasible?  What other DPMI implementation is compatible with 
>dosemu?
>
>No, that is not possible.  DPMI server runs in protected mode, so it has
>to be part of dosemu and a server cannot be installed from the v86 task.
>It is the same reason why you can't use another 386 EMS manager under
>dosemu, because the EMS manager runs in protected mode in order to use
>the 386 paging unit.
>
>Also, usually DPMI servers that are not integrated into the EMS manager
>will use VCPI to enter protected mode, since the EMS manager is already
>running in protected mode and provides a VCPI interface in case another
>program wants protected mode.  Using VCPI is unfortunately also
>impossible under dosemu, not a fault of dosemu but the fault/intent of
>VCPI design.
>
>--
>Ryan Underwood, <nemesis@icequake.net>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to 
School Guide! http://special.msn.com/network/04backtoschool.armx


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-09  4:10 anon permutation
@ 2004-09-09 15:02 ` Ryan Underwood
  0 siblings, 0 replies; 16+ messages in thread
From: Ryan Underwood @ 2004-09-09 15:02 UTC (permalink / raw)
  To: anon permutation; +Cc: linux-msdos


Does this program run in a win95 dos box?  I haven't any idea how to
interpret what it's doing in the trace.  In the dosemu log, it looks
like the program generates a GPF which is not handled for some reason,
which could either be the bug in the program, or the program being
confused by dosemu.  Who sells this program?  Can you ask them what the
problem is?

-- 
Ryan Underwood, <nemesis@icequake.net>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
       [not found] <BAY15-F39YZMGN7Osdt000486a9@hotmail.com>
@ 2004-09-10 16:16 ` Ryan Underwood
  0 siblings, 0 replies; 16+ messages in thread
From: Ryan Underwood @ 2004-09-10 16:16 UTC (permalink / raw)
  To: anon permutation; +Cc: linux-msdos


> Ryan, the dos app was designed for running on a MS-DOS machine that has no 
> Windows on it.  Since it is not meant for Linux, the vendor is not willing 
> to support me in any way...

Maybe you should make some noise to his competitors...

> I also tried to attach dosdebug to dosemu before I start the Dos App.  I 
> was told that dosdebug will give a lot more information on the problem this 
> way. However, dosdebug did not give me any extra info when the Dosemu hang.
> 
> Thank you for helping me.  What else can I try?

Well, the first thing I'm wondering is what int you are inside of in
that trace.  Eventually it does iret, but there was never an int that I
can see.  Was part of the trace omitted?

The other thing is that you can try patching the conditional jump
immediately after that comparison that never succeeds:
c316:9036 F64408FF         test    [si+0x8],0xff
c316:903a 7408             je      9044

The op code for jmp 9044 is EB08.  This will at least get you past this
while (foo != -1) situation, but it might just loop again or crash
afterwards.  You could also try printing the value at the memory
location si+0x8 when you arrive at that instruction to see if it ever
changes.

-- 
Ryan Underwood, <nemesis@icequake.net>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-15  4:49 anon permutation
  2004-09-15  8:54 ` Bart Oldeman
  0 siblings, 1 reply; 16+ messages in thread
From: anon permutation @ 2004-09-15  4:49 UTC (permalink / raw)
  To: nemesis-lists; +Cc: linux-msdos


Hi Ryan,

I have uploaded a complete log here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1027805&group_id=49784&atid=457447


>The other thing is that you can try patching the conditional jump
>immediately after that comparison that never succeeds:
>c316:9036 F64408FF         test    [si+0x8],0xff
>c316:903a 7408             je      9044

how do i "patch" this jump?


>From: Ryan Underwood <nemesis-lists@icequake.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with DPMI / PIC problem
>Date: Fri, 10 Sep 2004 11:16:25 -0500
>
>
> > Ryan, the dos app was designed for running on a MS-DOS machine that has 
>no
> > Windows on it.  Since it is not meant for Linux, the vendor is not 
>willing
> > to support me in any way...
>
>Maybe you should make some noise to his competitors...
>
> > I also tried to attach dosdebug to dosemu before I start the Dos App.  I
> > was told that dosdebug will give a lot more information on the problem 
>this
> > way. However, dosdebug did not give me any extra info when the Dosemu 
>hang.
> >
> > Thank you for helping me.  What else can I try?
>
>Well, the first thing I'm wondering is what int you are inside of in
>that trace.  Eventually it does iret, but there was never an int that I
>can see.  Was part of the trace omitted?
>
>The other thing is that you can try patching the conditional jump
>immediately after that comparison that never succeeds:
>c316:9036 F64408FF         test    [si+0x8],0xff
>c316:903a 7408             je      9044
>
>The op code for jmp 9044 is EB08.  This will at least get you past this
>while (foo != -1) situation, but it might just loop again or crash
>afterwards.  You could also try printing the value at the memory
>location si+0x8 when you arrive at that instruction to see if it ever
>changes.
>
>--
>Ryan Underwood, <nemesis@icequake.net>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-15  4:49 anon permutation
@ 2004-09-15  8:54 ` Bart Oldeman
  2004-09-15 21:00   ` Ryan Underwood
  0 siblings, 1 reply; 16+ messages in thread
From: Bart Oldeman @ 2004-09-15  8:54 UTC (permalink / raw)
  To: anon permutation; +Cc: nemesis-lists, linux-msdos

On Wed, 15 Sep 2004, anon permutation wrote:

>
> >The other thing is that you can try patching the conditional jump
> >immediately after that comparison that never succeeds:
> >c316:9036 F64408FF         test    [si+0x8],0xff
> >c316:903a 7408             je      9044
>
> how do i "patch" this jump?

in dosdebug type:

e c316:903a 75

that will change the "je" to jne. I had to do something similar for
command keen 4, it was hanging in a very similar way.

Bart

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-15  8:54 ` Bart Oldeman
@ 2004-09-15 21:00   ` Ryan Underwood
  2004-09-15 21:43     ` Bart Oldeman
  0 siblings, 1 reply; 16+ messages in thread
From: Ryan Underwood @ 2004-09-15 21:00 UTC (permalink / raw)
  To: Bart Oldeman; +Cc: anon permutation, nemesis-lists, linux-msdos

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]


On Wed, Sep 15, 2004 at 08:54:17PM +1200, Bart Oldeman wrote:
> On Wed, 15 Sep 2004, anon permutation wrote:
> 
> >
> > >The other thing is that you can try patching the conditional jump
> > >immediately after that comparison that never succeeds:
> > >c316:9036 F64408FF         test    [si+0x8],0xff
> > >c316:903a 7408             je      9044
> >
> > how do i "patch" this jump?
> 
> in dosdebug type:
> 
> e c316:903a 75
> 
> that will change the "je" to jne. I had to do something similar for
> command keen 4, it was hanging in a very similar way.

Are you speaking about during the system features detection (the first
screen)?  I have a hang there too, and in fact any similar ID/Apogee
game which has a screen like that.  I haven't any idea what it's sitting
there waiting on....

-- 
Ryan Underwood, <nemesis@icequake.net>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-15 21:00   ` Ryan Underwood
@ 2004-09-15 21:43     ` Bart Oldeman
  2004-09-16 19:58       ` Ryan Underwood
  0 siblings, 1 reply; 16+ messages in thread
From: Bart Oldeman @ 2004-09-15 21:43 UTC (permalink / raw)
  To: Ryan Underwood; +Cc: anon permutation, linux-msdos

On Wed, 15 Sep 2004, Ryan Underwood wrote:

> On Wed, Sep 15, 2004 at 08:54:17PM +1200, Bart Oldeman wrote:
> > On Wed, 15 Sep 2004, anon permutation wrote:
> >
> > >
> > > >The other thing is that you can try patching the conditional jump
> > > >immediately after that comparison that never succeeds:
> > > >c316:9036 F64408FF         test    [si+0x8],0xff
> > > >c316:903a 7408             je      9044
> > >
> > > how do i "patch" this jump?
> >
> > in dosdebug type:
> >
> > e c316:903a 75
> >
> > that will change the "je" to jne. I had to do something similar for
> > command keen 4, it was hanging in a very similar way.
>
> Are you speaking about during the system features detection (the first
> screen)?

Yes.

> I have a hang there too, and in fact any similar ID/Apogee
> game which has a screen like that.  I haven't any idea what it's sitting
> there waiting on....

The timer interrupt generator is reprogrammed, and the loop is waiting
until the timer interrupt has a counter set to a specific value. dosemu
can't keep up (>100 Hz), and has to catch up. So the program sees the
value increasing by amounts > 1. This means that the counter never reaches
*exactly* the value the program wants to see, it steps over it.

Your /dev/rtc patch may help, but I haven't checked that.

Bart

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-16  3:33 anon permutation
  2004-09-16 20:01 ` Ryan Underwood
  0 siblings, 1 reply; 16+ messages in thread
From: anon permutation @ 2004-09-16  3:33 UTC (permalink / raw)
  To: bartoldeman; +Cc: nemesis-lists, linux-msdos


Hi,

Thank you for helping.  Okay:

1.  I tried e c316:903a 75, and I see the je changed to jne.  However, the 
app continues to hang inside that loop...

2.  I tried e c316:903a EB08, and I see the je changed to or [bi+si], cl .  
The app continues to hang inside that loop.  However, I think I am not doing 
exactly what Ryan wanted me to do though...

3.  I tried d si+0x8 10 after the test statement.  The value does not 
change.  I checked it for 4 iterations.


What else can I try?





>From: Bart Oldeman <bartoldeman@users.sourceforge.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: nemesis-lists@icequake.net, linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with DPMI / PIC problem
>Date: Wed, 15 Sep 2004 20:54:17 +1200 (NZST)
>
>On Wed, 15 Sep 2004, anon permutation wrote:
>
> >
> > >The other thing is that you can try patching the conditional jump
> > >immediately after that comparison that never succeeds:
> > >c316:9036 F64408FF         test    [si+0x8],0xff
> > >c316:903a 7408             je      9044
> >
> > how do i "patch" this jump?
>
>in dosdebug type:
>
>e c316:903a 75
>
>that will change the "je" to jne. I had to do something similar for
>command keen 4, it was hanging in a very similar way.
>
>Bart
>-
>To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-16 16:45 Stas Sergeev
  0 siblings, 0 replies; 16+ messages in thread
From: Stas Sergeev @ 2004-09-16 16:45 UTC (permalink / raw)
  To: linux-msdos

Hello.

Ryan Underwood wrote:
>> that will change the "je" to jne. I had to do something similar for
>> command keen 4, it was hanging in a very similar way.
> game which has a screen like that.  I haven't any idea what it's 
> sitting there waiting on....
This should be a FAQ already.
Upgrade your keen! They fixed their loader
years ago, and this was discussed in that
very list (and at IRC) thousand times. There
are several revisions of Keen4, latest ones
do not have that bug at all.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-15 21:43     ` Bart Oldeman
@ 2004-09-16 19:58       ` Ryan Underwood
  0 siblings, 0 replies; 16+ messages in thread
From: Ryan Underwood @ 2004-09-16 19:58 UTC (permalink / raw)
  To: linux-msdos

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

On Thu, Sep 16, 2004 at 09:43:40AM +1200, Bart Oldeman wrote:
> 
> > I have a hang there too, and in fact any similar ID/Apogee
> > game which has a screen like that.  I haven't any idea what it's sitting
> > there waiting on....
> 
> The timer interrupt generator is reprogrammed, and the loop is waiting
> until the timer interrupt has a counter set to a specific value. dosemu
> can't keep up (>100 Hz), and has to catch up. So the program sees the
> value increasing by amounts > 1. This means that the counter never reaches
> *exactly* the value the program wants to see, it steps over it.
> 
> Your /dev/rtc patch may help, but I haven't checked that.

I haven't checked it with those programs either.  I'll give it a try and
see what happens.

-- 
Ryan Underwood, <nemesis@icequake.net>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
  2004-09-16  3:33 anon permutation
@ 2004-09-16 20:01 ` Ryan Underwood
  0 siblings, 0 replies; 16+ messages in thread
From: Ryan Underwood @ 2004-09-16 20:01 UTC (permalink / raw)
  To: anon permutation; +Cc: bartoldeman, nemesis-lists, linux-msdos

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]


On Thu, Sep 16, 2004 at 03:33:03AM +0000, anon permutation wrote:
> 
> Hi,
> 
> Thank you for helping.  Okay:
> 
> 1.  I tried e c316:903a 75, and I see the je changed to jne.  However, the 
> app continues to hang inside that loop...

The flow of execution should be diverted either to or away from the jump
target depending on the value of the zero flag.  If nothing changes in
the trace, then I guess you've done something wrong.  Note that it is
possible for the program to find another place to get stuck after that.

> 2.  I tried e c316:903a EB08, and I see the je changed to or [bi+si], cl .  
> The app continues to hang inside that loop.  However, I think I am not 
> doing exactly what Ryan wanted me to do though...

Um, something didn't work there.  Try
e c316:903a EB
e c316:903b 08

But inverting the conditional jump as bart suggested should have at
least gotten you past that point.

> What else can I try?

Asking the vendor what the program is doing at that point so they can
offer suggestions.

-- 
Ryan Underwood, <nemesis@icequake.net>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Dos App hangs with DPMI / PIC problem
@ 2004-09-17  4:18 anon permutation
  0 siblings, 0 replies; 16+ messages in thread
From: anon permutation @ 2004-09-17  4:18 UTC (permalink / raw)
  To: nemesis-lists; +Cc: bartoldeman, linux-msdos



Hello,

1.  Tried
>e c316:903a EB
>e c316:903b 08

the trace becomes different, but the app still hangs...

2.  Also tried using freedos instead of msdos.  Same thing...

BTW, the app is actually a client - server app running on netx.  Not sure if 
this is relevant...

Thank you, everyone, for helping out!




>From: Ryan Underwood <nemesis-lists@icequake.net>
>To: anon permutation <anonpermutation@hotmail.com>
>CC: bartoldeman@users.sourceforge.net, 
>nemesis-lists@icequake.net,linux-msdos@vger.kernel.org
>Subject: Re: Dos App hangs with DPMI / PIC problem
>Date: Thu, 16 Sep 2004 15:01:50 -0500
>
>
>On Thu, Sep 16, 2004 at 03:33:03AM +0000, anon permutation wrote:
> >
> > Hi,
> >
> > Thank you for helping.  Okay:
> >
> > 1.  I tried e c316:903a 75, and I see the je changed to jne.  However, 
>the
> > app continues to hang inside that loop...
>
>The flow of execution should be diverted either to or away from the jump
>target depending on the value of the zero flag.  If nothing changes in
>the trace, then I guess you've done something wrong.  Note that it is
>possible for the program to find another place to get stuck after that.
>
> > 2.  I tried e c316:903a EB08, and I see the je changed to or [bi+si], cl 
>.
> > The app continues to hang inside that loop.  However, I think I am not
> > doing exactly what Ryan wanted me to do though...
>
>Um, something didn't work there.  Try
>e c316:903a EB
>e c316:903b 08
>
>But inverting the conditional jump as bart suggested should have at
>least gotten you past that point.
>
> > What else can I try?
>
>Asking the vendor what the program is doing at that point so they can
>offer suggestions.
>
>--
>Ryan Underwood, <nemesis@icequake.net>
><< signature.asc >>

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-09-17  4:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 16:45 Dos App hangs with DPMI / PIC problem Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2004-09-17  4:18 anon permutation
2004-09-16  3:33 anon permutation
2004-09-16 20:01 ` Ryan Underwood
2004-09-15  4:49 anon permutation
2004-09-15  8:54 ` Bart Oldeman
2004-09-15 21:00   ` Ryan Underwood
2004-09-15 21:43     ` Bart Oldeman
2004-09-16 19:58       ` Ryan Underwood
     [not found] <BAY15-F39YZMGN7Osdt000486a9@hotmail.com>
2004-09-10 16:16 ` Ryan Underwood
2004-09-09  4:10 anon permutation
2004-09-09 15:02 ` Ryan Underwood
2004-09-09  3:28 anon permutation
2004-09-09  2:42 anon permutation
2004-09-08  9:54 anon permutation
2004-09-08 20:49 ` Ryan Underwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox