hi all im trying to debug a program in wine but im not having any luck as to where the problem is. most probably due to my inexperience with wine:-P. maybe you can help. i know this program works on another wine developers computer with no problems but not on mine. attached is the output from the wine debugger and the last few lines from -debugmsg +all (the original log is 20+mb). i cant decide whether its a memory read problem or file write problem or ole problem or my problem ;-). if you want to test the program its at locutus.all.at and is called superlotto. the program is in turkish but the instructions on the web site are in english (im an aussie living in turkey). i wrote this program in vb5. ive been having this problem from cvs 26122001 and have been trying that long to debug it. if you can help me with some pointers or solutions it would be greatly appreciated. i would like to fix it myself but im stuck.
thanks in advance Shane Shields To drink the WINE of success you must first seek the sayings of source ps im seeking the source but im nowhere near getting drunk ;-P
WineDbg starting... on pid 82cb5b8 Breakpoint 1 at 0x004017a0 No debug information in 32bit DLL 'C:\Program Files\Superlotto\superlotto.exe' (0x00400000) Loaded debug information from ELF 'wine' (0x00000000) Breakpoint 2 at 0x4000bdf4 (_end+0x37fbe6ec) Loaded debug information from ELF '/usr/local/lib/libntdll.so' (0x4001e000) Loaded debug information from ELF '/usr/local/lib/libwine.so' (0x4010f000) Loaded debug information from ELF '/usr/local/lib/libwine_unicode.so' (0x40125000) *** Invalid address 0x40016f18 (_end+0x37fc9810) No debug information in ELF '/lib/libc.so.6' (0x40210000) No debug information in ELF '/lib/libdl.so.2' (0x40339000) No debug information in ELF '/lib/ld-linux.so.2' (0x40000000) No debug information in 32bit DLL 'NTDLL.DLL' (0x40056000) No debug information in 32bit DLL 'KERNEL32.DLL' (0x405a3000) No debug information in ELF '/lib/libm.so.6' (0x401ee000) Loaded debug information from ELF '/usr/local/lib/libkernel32.so' (0x40577000) No debug information in 32bit DLL 'ADVAPI32.DLL' (0x4078e000) Loaded debug information from ELF '/usr/local/lib/libuser32.so' (0x405f2000) Loaded debug information from ELF '/usr/local/lib/libgdi32.so' (0x40712000) Loaded debug information from ELF '/usr/local/lib/libadvapi32.so' (0x40780000) No debug information in 32bit DLL 'GDI32.DLL' (0x4072e000) No debug information in 32bit DLL 'USER32.DLL' (0x40620000) *** Invalid address 0x40016f18 (_end+0x37fc9810) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSVCRT20.DLL' (0x7fd40000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\RPCRT4.DLL' (0x7fcc0000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLE32.DLL' (0x7ff60000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLEAUT32.DLL' (0x65340000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSVBVM50.DLL' (0x797b0000) No debug information in 32bit DLL 'X11DRV.DLL' (0x407b1000) Loaded debug information from ELF '/usr/local/lib/libx11drv.so' (0x407a1000) Loaded debug information from ELF '/usr/local/lib/libwine_tsx11.so' (0x407ef000)No debug information in ELF '/usr/X11R6/lib/libSM.so.6' (0x40804000) No debug information in ELF '/usr/X11R6/lib/libICE.so.6' (0x4080e000) No debug information in ELF '/usr/X11R6/lib/libXrender.so.1' (0x40826000) No debug information in ELF '/usr/lib/libGL.so.1' (0x4082b000) No debug information in ELF '/usr/lib/libGLU.so.1' (0x40a32000) No debug information in ELF '/usr/X11R6/lib/libXext.so.6' (0x40aec000) No debug information in ELF '/usr/X11R6/lib/libX11.so.6' (0x40afa000) No debug information in ELF '/usr/X11R6/lib/libXmu.so.6' (0x40bda000) No debug information in ELF '/usr/X11R6/lib/libXi.so.6' (0x40bf0000) No debug information in ELF '/lib/libpthread.so.0' (0x40bf8000) No debug information in ELF '/usr/X11R6/lib/libXt.so.6' (0x40c0e000) fixme:keyboard:X11DRV_KEYBOARD_DetectLayout Your keyboard layout was not found! Using closest match instead (Turkish keyboard layout) for scancode mapping. Please define your layout in windows/x11drv/keyboard.c and submit them to us for inclusion into future Wine releases. See the Wine User Guide, chapter "Keyboard" for more information. Stopped on breakpoint 1 at 0x004017a0 (superlotto.exe.EntryPoint in C:\Program Files\Superlotto\superlotto.exe) In 32-bit mode. Wine-dbg>cont No debug information in 32bit DLL 'LZ32.DLL' (0x40d84000) Loaded debug information from ELF '/usr/local/lib/libversion.so' (0x40d71000) Loaded debug information from ELF '/usr/local/lib/liblz32.so' (0x40d81000) No debug information in 32bit DLL 'VERSION.DLL' (0x40d74000) *** Invalid address 0x40016f18 (_end+0x37fc9810) First chance exception: page fault on read access to 0x3889cdf3 in 32-bit code (0x6539418e). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:008f GS:0000 EIP:6539418e ESP:40566764 EBP:405667d0 EFLAGS:00210202( R- 00 I - - 1 ) EAX:3889cdeb EBX:653940b0 ECX:ffffffff EDX:400f4f8c ESI:00000000 EDI:00000001 Stack dump: 0x40566764 (NTDLL.DLL.memcpy+0x2d9964): 797cea8c 653a9875 405667c0 653a97fb 0x40566774 (NTDLL.DLL.memcpy+0x2d9974): ffffffff 405667c0 00000001 797c29c0 0x40566784 (NTDLL.DLL.memcpy+0x2d9984): 403a2668 6539413f 405667c0 ffffffff 0x40566794 (NTDLL.DLL.memcpy+0x2d9994): 00000001 40fbc178 403a2668 00000097 0x405667a4 (NTDLL.DLL.memcpy+0x2d99a4): 00000000 40fbc178 00000001 405667d4 0x405667b4 (NTDLL.DLL.memcpy+0x2d99b4): 797cea8c 40fbc178 00000097 40566c5c 0x405667c4 (NTDLL.DLL.memcpy+0x2d99c4): 0011: sel=008f base=4010dbe0 limit=00000fff 32-bit rw- Backtrace: =>0 0x6539418e (OLEAUT32.DLL.OleIconToCursor+0x4ab in C:\WINDOWS\SYSTEM\OLEAUT32.DLL) (ebp=405667d0) 1 0x65392717 (OLEAUT32.DLL.OleSavePictureFile+0x3507 in C:\WINDOWS\SYSTEM\OLEAUT32.DLL) (ebp=00000000) 0x6539418e (OLEAUT32.DLL.OleIconToCursor+0x4ab in C:\WINDOWS\SYSTEM\OLEAUT32.DLL): call *0x8(%eax) Wine-dbg>quit
0806f1a0:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7ff6124f 0806f1a0:Call ntdll.RtlFreeHeap(65430000,00000000,65430ea0) ret=7ff6124f 0806f1a0:trace:heap:RtlFreeHeap (65430000,04000000,65430ea0): returning TRUE 0806f1a0:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7ff6124f 0806f1a0:RET ole32.144: StgCreateDocfile(00000000,0806f1a0:trace:seh:EXC_RtlRaiseException code=c0000005 flags=0 addr=0x400c42fd 0806f1a0:trace:seh:EXC_RtlRaiseException info[0]=00000000 0806f1a0:trace:seh:EXC_RtlRaiseException info[1]=04000012 0806f1a0: queue_exception_event( first=1, record={context={flags=00000000,eax=00000000,ebx=400f7904,ecx=04000012,edx=00000000,esi=00000000,edi=00000001,ebp=405663e0,eip=400c42fd,esp=40566320,eflags=00210246,cs=0023,ds=002b,es=002b,fs=008f,gs=0000,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x400c42fd,params={0,4000012}} ) 0806f1a0: queue_exception_event() = 0 { handle=0 } 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x40062708 code=c0000005 flags=0 0806f1a0:trace:seh:EXC_RtlUnwind code=c0000005 flags=2 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x40061fb0 code=c0000005 flags=2 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 0806f1a0:trace:seh:EXC_RtlRaiseException code=c0000005 flags=0 addr=0x400c43d7 0806f1a0:trace:seh:EXC_RtlRaiseException info[0]=00000000 0806f1a0:trace:seh:EXC_RtlRaiseException info[1]=04000012 0806f1a0: queue_exception_event( first=1, record={context={flags=00000000,eax=00000000,ebx=400f7904,ecx=04000012,edx=00000000,esi=00000000,edi=00000001,ebp=405663e0,eip=400c43d7,esp=40566320,eflags=00210246,cs=0023,ds=002b,es=002b,fs=008f,gs=0000,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x400c43d7,params={0,4000012}} ) 0806f1a0: queue_exception_event() = 0 { handle=0 } 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x40062708 code=c0000005 flags=0 0806f1a0:trace:seh:EXC_RtlUnwind code=c0000005 flags=2 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x40061fb0 code=c0000005 flags=2 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 04000012,00000000,653b3434) retval = 80030005 ret=65396629 0806f1a0:trace:heap:RtlFreeHeap (40340000,00000002,403a9580): returning TRUE 0806f1a0:trace:seh:EXC_RtlRaiseException code=c0000005 flags=0 addr=0x6539418e 0806f1a0:trace:seh:EXC_RtlRaiseException info[0]=00000000 0806f1a0:trace:seh:EXC_RtlRaiseException info[1]=3889cdf3 0806f1a0: queue_exception_event( first=1, record={context={flags=00000000,eax=3889cdeb,ebx=653940b0,ecx=ffffffff,edx=400f89a0,esi=00000000,edi=00000001,ebp=405667d0,eip=6539418e,esp=40566764,eflags=00210202,cs=0023,ds=002b,es=002b,fs=008f,gs=0000,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x6539418e,params={0,3889cdf3}} ) 0806f1a0: queue_exception_event() = 0 { handle=0 } 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x653a97fb code=c0000005 flags=0 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x653a98c0 code=c0000005 flags=0 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x4014a6 code=c0000005 flags=0 0806f1a0:CALL msvbvm50.205: __vbaExceptHandler(<unknown, check return>0806f1a0:trace:heap:RtlAllocateHeap (40340000,00000002,00000040): returning 403a9580 ) ret=40062086 0806f1a0:Call kernel32.IsBadReadPtr(004010b0,00000004) ret=797d2b9f 0806f1a0:Ret kernel32.IsBadReadPtr() retval=00000000 ret=797d2b9f 0806f1a0:RET msvbvm50.205: __vbaExceptHandler() retval = 00000001 ret=40062086 0806f1a0:trace:heap:RtlFreeHeap (40340000,00000002,403a9580): returning TRUE 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x797c69d0 code=c0000005 flags=0 0806f1a0:trace:seh:EXC_CallHandler handler returned 1 0806f1a0:trace:seh:EXC_CallHandler calling handler at 0x79893684 code=c0000005 flags=0 0806f1a0:Call kernel32.UnhandledExceptionFilter(40454900) ret=79814608 0806f1a0: queue_exception_event( first=0, record={context={flags=00000000,eax=3889cdeb,ebx=653940b0,ecx=ffffffff,edx=400f89a0,esi=00000000,edi=00000001,ebp=405667d0,eip=6539418e,esp=40566764,eflags=00210202,cs=0023,ds=002b,es=002b,fs=008f,gs=0000,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x6539418e,params={0,3889cdf3}} ) 0806f1a0: queue_exception_event() = 0 { handle=0 } 0806f1a0: create_event( manual_reset=1, initial_state=0, inherit=1, name=L"" ) 0806f1a0: create_event() = 0 { handle=148 } wine: Unhandled exception, starting debugger...