Hi, Can anyone help me to interpret this debug messages? I'm trying to run our user application on wine-0.9.19. I can't see which part giving the actual problem. Thks WINEDEBUG=+loaddll wine "c:\esispen\esispen.exe" ---------------------------------------------------------- trace:loaddll:load_builtin_dll Loaded module L"kernel32.dll" : builtin trace:loaddll:load_native_dll Loaded module L"C:\\esispen\\esispen.exe" : native trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\advapi32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\gdi32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\user32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\comctl32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\iphlpapi.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\rpcrt4.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\ole32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\shlwapi.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\shell32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\winspool.drv" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\comdlg32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\oleaut32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\mpr.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\wininet.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\ws2_32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\wsock32.dll" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "gdi.exe" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "user.exe" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\winex11.drv" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\imm32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\uxtheme.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"kernel32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\explorer.exe" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\advapi32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\gdi32.dll" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\user32.dll" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "krnl386.exe" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "system.drv" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "gdi.exe" : builtin trace:loaddll:MODULE_LoadModule16 Loaded module "user.exe" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\winex11.drv" : builtin trace:loaddll:load_builtin_dll Loaded module L"c:\\windows\\system\\imm32.dll" : builtin wine: Unhandled division by zero at address 0x480eb8 (thread 0009), starting debugger... WineDbg starting on pid 0x8 Unhandled exception: divide by zero in 32-bit code (0x00480eb8). Register dump: CS:0073 SS:007b DS:007b ES:007b FS:003b GS:0033 EIP:00480eb8 ESP:0033f418 EBP:0033f760 EFLAGS:00210206( - 00 - RIP1) EAX:0000000c EBX:00386dd8 ECX:0000000c EDX:00000000 ESI:00386dd8 EDI:00000001 Stack dump: 0x0033f418: 0033f34c 00000000 00000001 00481094 0x0033f428: 00000001 00386dd8 0033f760 0033f448 0x0033f438: 00000001 0033f34c 00000000 00386dd8 0x0033f448: 00386dd8 00484d7c 00386dd8 00000677 0x0033f458: 0033f760 0033f470 003846c8 82800000 0x0033f468: 0051af40 00386dd8 00386dd8 00481305 fixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for c0000119 Backtrace: =>1 0x00480eb8 in esispen (+0x80eb8) (0x00480eb8) 2 0x604ce425 in user32 (+0x9e425) (0x604ce425) 3 0x604d0a1d CallWindowProcA+0x5d in user32 (0x604d0a1d) 4 0x60499733 in user32 (+0x69733) (0x60499733) 5 0x6049cecc SendMessageTimeoutA+0x1ec in user32 (0x6049cecc) 6 0x6049cf8c SendMessageA+0x4c in user32 (0x6049cf8c) 7 0x60c74ea0 X11DRV_CreateWindow+0x890 in winex11 (0x60c74ea0) 8 0x604c70de in user32 (+0x970de) (0x604c70de) 9 0x604c8850 CreateWindowExA+0x90 in user32 (0x604c8850) 10 0x00503849 in esispen (+0x103849) (0x00503849) 11 0x004a915c in esispen (+0xa915c) (0x004a915c) 12 0x0040578a in esispen (+0x578a) (0x0040578a) 13 0x004a932c in esispen (+0xa932c) (0x004a932c) 14 0x004a98ff in esispen (+0xa98ff) (0x004a98ff) 15 0x6001f9d7 wine_switch_to_stack+0x17 in libwine.so.1 (0x6001f9d7) 0x00480eb8: idivl 0x12d(%ebx),%eax Modules: Module Address Debug info Name (72 modules) PE 400000-ca3000 Export esispen ELF 60000000-60017000 Deferred ld-linux.so.2 ELF 60018000-60129000 Export libwine.so.1 ELF 6012f000-6013a000 Deferred libgcc_s.so.1 ELF 6013a000-6014c000 Deferred libpthread.so.0 ELF 6014c000-6026b000 Deferred libc.so.6 ELF 6026b000-6026f000 Deferred libdl.so.2 ELF 60270000-60296000 Deferred libm.so.6 ELF 602fe000-60344000 Deferred advapi32<elf> \-PE 60310000-60344000 \ advapi32 ELF 60344000-6040b000 Deferred comctl32<elf> \-PE 60350000-6040b000 \ comctl32 ELF 6040b000-60545000 Export user32<elf> \-PE 60430000-60545000 \ user32 ELF 60545000-605fc000 Deferred gdi32<elf> \-PE 60560000-605fc000 \ gdi32 ELF 606d8000-60775000 Deferred comdlg32<elf> \-PE 606e0000-60775000 \ comdlg32 ELF 60775000-6085f000 Deferred shell32<elf> \-PE 60790000-6085f000 \ shell32 ELF 6085f000-608b8000 Deferred shlwapi<elf> \-PE 60870000-608b8000 \ shlwapi ELF 608b8000-6094c000 Deferred ole32<elf> \-PE 608d0000-6094c000 \ ole32 ELF 6094c000-6099d000 Deferred rpcrt4<elf> \-PE 60960000-6099d000 \ rpcrt4 ELF 6099d000-609bc000 Deferred iphlpapi<elf> \-PE 609a0000-609bc000 \ iphlpapi ELF 609be000-609c6000 Deferred libxrender.so.1 ELF 609c6000-609ca000 Deferred libxrandr.so.2 ELF 609ca000-609cc000 Deferred xlcutf8load.so.2 ELF 609cd000-609e0000 Deferred libresolv.so.2 ELF 609e0000-60a0f000 Deferred winspool<elf> \-PE 609f0000-60a0f000 \ winspool ELF 60a0f000-60aa4000 Deferred oleaut32<elf> \-PE 60a20000-60aa4000 \ oleaut32 ELF 60aa4000-60aec000 Deferred wininet<elf> \-PE 60ab0000-60aec000 \ wininet ELF 60aec000-60b0c000 Deferred mpr<elf> \-PE 60af0000-60b0c000 \ mpr ELF 60b0c000-60b26000 Deferred wsock32<elf> \-PE 60b10000-60b26000 \ wsock32 ELF 60b26000-60b51000 Deferred ws2_32<elf> \-PE 60b30000-60b51000 \ ws2_32 ELF 60b51000-60bbf000 Deferred libfreetype.so.6 ELF 60bbf000-60bd2000 Deferred libz.so.1 ELF 60bd2000-60c02000 Deferred libfontconfig.so.1 ELF 60c02000-60c22000 Deferred libexpat.so.0 ELF 60c22000-60ca6000 Export winex11<elf> \-PE 60c30000-60ca6000 \ winex11 ELF 60ca6000-60caf000 Deferred libsm.so.6 ELF 60caf000-60cc7000 Deferred libice.so.6 ELF 60cc7000-60ccc000 Deferred libxxf86vm.so.1 ELF 60ccc000-60cda000 Deferred libxext.so.6 ELF 60cda000-60dd3000 Deferred libx11.so.6 ELF 60dd3000-60e3a000 Deferred libgl.so.1 ELF 60e3a000-60ff5000 Deferred i915_dri.so ELF 64db5000-64dd4000 Deferred ximcp.so.2 ELF 64e25000-64e41000 Deferred imm32<elf> \-PE 64e30000-64e41000 \ imm32 ELF 64e52000-64e5b000 Deferred libxcursor.so.1 ELF 64e5b000-64e8d000 Deferred uxtheme<elf> \-PE 64e60000-64e8d000 \ uxtheme ELF 64ec6000-64ee4000 Deferred libcups.so.2 ELF 64ee4000-64f14000 Deferred libssl.so.0.9.7 ELF 64f14000-6500e000 Deferred libcrypto.so.0.9.7 ELF 6500e000-65019000 Deferred libnss_files.so.2 ELF 7b800000-7b907000 Deferred kernel32<elf> \-PE 7b820000-7b907000 \ kernel32 ELF 7bc00000-7bc83000 Deferred ntdll<elf> \-PE 7bc10000-7bc83000 \ ntdll ELF 7bf00000-7bf03000 Deferred <wine-loader> Threads: process tid prio (all id:s are in hex) 0000000a 0000000b 0 00000008 (D) C:\esispen\esispen.exe 00000009 0 <==
Fredolin.Lakuman@gmail.com wrote:> Can anyone help me to interpret this debug messages? I'm trying to run > our user application on wine-0.9.19. I can't see which part giving the > actual problem. Thks > > WINEDEBUG=+loaddll wine "c:\esispen\esispen.exe" > ----------------------------------------------------------[...]> wine: Unhandled division by zero at address 0x480eb8 (thread 0009), > starting debugger... > WineDbg starting on pid 0x8 > Unhandled exception: divide by zero in 32-bit code (0x00480eb8). > Register dump: > CS:0073 SS:007b DS:007b ES:007b FS:003b GS:0033 > EIP:00480eb8 ESP:0033f418 EBP:0033f760 EFLAGS:00210206( - 00 - > RIP1) > EAX:0000000c EBX:00386dd8 ECX:0000000c EDX:00000000 > ESI:00386dd8 EDI:00000001 > Stack dump: > 0x0033f418: 0033f34c 00000000 00000001 00481094 > 0x0033f428: 00000001 00386dd8 0033f760 0033f448 > 0x0033f438: 00000001 0033f34c 00000000 00386dd8 > 0x0033f448: 00386dd8 00484d7c 00386dd8 00000677 > 0x0033f458: 0033f760 0033f470 003846c8 82800000 > 0x0033f468: 0051af40 00386dd8 00386dd8 00481305 > fixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for c0000119 > Backtrace: > =>1 0x00480eb8 in esispen (+0x80eb8) (0x00480eb8) > 2 0x604ce425 in user32 (+0x9e425) (0x604ce425) > 3 0x604d0a1d CallWindowProcA+0x5d in user32 (0x604d0a1d) > 4 0x60499733 in user32 (+0x69733) (0x60499733) > 5 0x6049cecc SendMessageTimeoutA+0x1ec in user32 (0x6049cecc) > 6 0x6049cf8c SendMessageA+0x4c in user32 (0x6049cf8c) > 7 0x60c74ea0 X11DRV_CreateWindow+0x890 in winex11 (0x60c74ea0) > 8 0x604c70de in user32 (+0x970de) (0x604c70de) > 9 0x604c8850 CreateWindowExA+0x90 in user32 (0x604c8850) > 10 0x00503849 in esispen (+0x103849) (0x00503849) > 11 0x004a915c in esispen (+0xa915c) (0x004a915c) > 12 0x0040578a in esispen (+0x578a) (0x0040578a) > 13 0x004a932c in esispen (+0xa932c) (0x004a932c) > 14 0x004a98ff in esispen (+0xa98ff) (0x004a98ff) > 15 0x6001f9d7 wine_switch_to_stack+0x17 in libwine.so.1 (0x6001f9d7) > 0x00480eb8: idivl 0x12d(%ebx),%eaxOk. Firstly, the division by zero occurs in your program, so the first step is to recompile it with debugging symbols, to see where exactly something is going wrong. Secondly, it happens right after a return from user32. So my guess is that you call some function in user32.dll and use some of the values returned. I'll assume it doesn't crash on native windows, so there are two possibilities: a) The function in wines user32.dll is misbehaving, and not returning correct values. b) The function in wines user32.dll is behaving correctly, but different from what you expected. Check the return values more carefully. Daniel