Unhandled exception in old DOS application

M.H.VanLeeuwen vanl at megsinet.net
Mon May 13 21:32:51 CDT 2002


Hi,

I hope this is the correct place to ask...

Up until the 20020411 wine release my old DOS application worked well...for the
last ~2 years. (Thanks all of you!)
With both 20020411 and 20020509 releases the wine issues an Unhandled exception
report and starts the debugger.

bash-2.05$ wine cardload.exe -- -a340 -f"c:\\\winapps\\\winphone\\\cardload.hex"
Could not stat /mnt/fd0 (No such file or directory), ignoring drive A:
Warning: unprotecting the first 64KB of memory to allow real-mode calls.
         NULL pointer accesses will no longer be caught.
wine: Unhandled exception, starting debugger...
err:int:DOSVM_Loop MsgWaitForMultipleObjects returned unexpected value.

This application just downloads firmware (cardload.hex) to an old ISA card.

What can be done to fix this, where should I begin looking to fix it, who
knows if there is a fix already, any ideas how to fix it?

I can send the cardload.exe file if anyone is interested, its 48K.

Martin
------------------------------------------------------------------------------------
wine --debugmsg +mmsys,+module,+int21 --managed cardload.exe
gives:
Major SNIP...
trace:int21:ioctlGetDeviceInfo (1)
trace:int21:DOS3Call returning: AX=4400 BX=0001 CX=7fea DX=0945 SI=36d7 DI=0448 DS=14b2 ES=102f EFL=000b0286
trace:int21:DOS3Call AX=4400 BX=0000 CX=7fea DX=0945 SI=36d7 DI=0448 DS=14b2 ES=102f EFL=000b0286
trace:int21:ioctlGetDeviceInfo (0)
trace:int21:DOS3Call returning: AX=4400 BX=0000 CX=7fea DX=0945 SI=36d7 DI=0448 DS=14b2 ES=102f EFL=000b0286
trace:int21:DOSVM_Int21Handler GET INTERRUPT VECTOR 0x1c
wine: Unhandled exception, starting debugger...
trace:module:CreateProcessA app (null) cmdline "/usr/local/bin/winedbg 134675656 76"
trace:module:get_file_name trying '/usr/local/bin/winedbg'


--------------------------------------------------------------------------------------
debugger for cardload.exe in the gives me:

WineDbg starting...  on pid 806fcc8
No debug information in 32bit DLL 'F:\wine' (0x0804a000)
Can't find file for ELF '/home/mhvl/wine' (0x00000000)
No debug information in 32bit DLL 'NTDLL.DLL' (0x4005a000)
No debug information in 32bit DLL 'KERNEL32.DLL' (0x407c4000)
No debug information in 32bit DLL 'ADVAPI32.DLL' (0x40822000)
No debug information in 32bit DLL 'GDI32.DLL' (0x40740000)
No debug information in 32bit DLL 'USER32.DLL' (0x40629000)
No debug information in 32bit DLL 'WINMM.DLL' (0x405b3000)
No debug information in 32bit DLL 'X11DRV.DLL' (0x40883000)
No debug information in 32bit DLL 'WINEOSS.DRV' (0x40b93000)
No debug information in 32bit DLL 'MSACM32.DLL' (0x40bb7000)
No debug information in 32bit DLL 'MSACM.DRV' (0x40bac000)
No debug information in 32bit DLL 'MIDIMAP.DRV' (0x4036b000)
No debug information in 32bit DLL 'WINEDOS.DLL' (0x40ce5000)
Unhandled exception: page fault on write access to 0x3c8900b0 in 32-bit code (0x40cf12eb).
In 32-bit mode.
0x40cf12eb (WINEDOS.DLL.LoadDosExe+0x113b): movb        %al,0x0(%edx)
Wine-dbg>bt
Backtrace:
=>0 0x40cf12eb (WINEDOS.DLL.LoadDosExe+0x113b) (ebp=40e26858)
  1 0x40cf1435 (WINEDOS.DLL.LoadDosExe+0x1285) (ebp=40e26890)
  2 0x40cec388 (WINEDOS.DLL.EntryPoint+0x2c28) (ebp=40e268b0)
  3 0x40ced0d0 (WINEDOS.DLL.EntryPoint+0x3970) (ebp=40e268cc)
  4 0x40ce969f (WINEDOS.DLL.GetTimer+0x11f) (ebp=40e268e4)
  5 0x40ce85e2 (WINEDOS.DLL.ASPIHandler+0x1132) (ebp=40e26904)
  6 0x40ce91df (WINEDOS.DLL.ASPIHandler+0x1d2f) (ebp=40e26934)
  7 0x40068495 (NTDLL.DLL.__wine_exception_handler+0x45) (ebp=40e26958)
  8 0x40067dc5 (NTDLL.DLL.wine_dbg_log+0x165) (ebp=40e2698c)
  9 0x400680ef (NTDLL.DLL.RtlRaiseException+0x147) (ebp=40e26a20)
  10 0x40071b0f (NTDLL.DLL.RtlConvertSidToUnicodeString+0x109f) (ebp=40e26b64)
  11 0x40ce9359 (WINEDOS.DLL.ASPIHandler+0x1ea9) (ebp=40e26c2c)
  12 0x40cf0527 (WINEDOS.DLL.LoadDosExe+0x377) (ebp=40e26f14)
  13 0x400d8d5a (KERNEL32.DLL.RestoreThunkLock+0x59a) (ebp=40e26f38)
  14 0x400d806c (KERNEL32.DLL.WaitForMultipleObjectsEx+0x44c) (ebp=40e26ff4)

Wine-dbg>info stack
Stack dump:
0x40e26840 (WINEDOS.DLL.LoadDosExe+0x136690):  40e26848 40e2684c 00007754 000040cf
0x40e26850 (WINEDOS.DLL.LoadDosExe+0x1366a0):  40cf7754 40cf6e0c 40e26890 40cf1435
0x40e26860 (WINEDOS.DLL.LoadDosExe+0x1366b0):  0000003c 00006830 000040e2 0000a60d
0x40e26870 (WINEDOS.DLL.LoadDosExe+0x1366c0):  00000000 3c106630 00006830 000040e2
0x40e26880 (WINEDOS.DLL.LoadDosExe+0x1366d0):  00006840 000040e2 40cf7754 0000003c
0x40e26890 (WINEDOS.DLL.LoadDosExe+0x1366e0):  40e268b0 40cec388 0000003c 00000001
0x40e268a0 (WINEDOS.DLL.LoadDosExe+0x1366f0):

Wine-dbg>info reg
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0257 GS:0000
 EIP:40cf12eb ESP:40e26840 EBP:40e26858 EFLAGS:00010202(  R- 00  I   - - 1 )
 EAX:0000003c EBX:40cf7754 ECX:00006830 EDX:3c8900b0
 ESI:0000003c EDI:00000400
Wine-dbg>



More information about the wine-devel mailing list