Re: winedebug/gdb crashes

2005-09-04 Thread Eric Pouech

Simon Kissane a écrit :

Hi

Using latest wine CVS (checked out today), trying to debug the 
PackageForTheWeb self-extracting EXE that MS uses to distribute MSDE 
2000


The EXE works fine (albeit with some visual bugs) when running under plain 
wine instead of winedebug


Anyone have any idea what might be wrong? (I am very new to wine, although 
I've been following the wine-devel archives for a while...)


Cheers
Simon Kissane

= winedebug window ==


winedbg --gdb --no-start z:/home/skissane/downloads/MSDE2000A.exe


001b:001c: create process 
'Z:\home\skissane\downloads\MSDE2000A.exe'/0x7fff003c @0040ce00 (00)

001b:001c: create thread I @0040ce00
target remote localhost:32815
001b:001c: loads DLL c:\windows\system\ntdll.dll @0084 (00)
001b:001c: loads DLL c:\windows\system\kernel32.dll @00e5 (00)
001b:001c: loads DLL c:\windows\system\advapi32.dll @0077 (00)
001b:001c: loads DLL c:\windows\system\gdi32.dll @0037 (00)
001b:001c: loads DLL c:\windows\system\user32.dll @0027 (00)
001b:001c: loads DLL c:\windows\system\comctl32.dll @0043 (00)
fixme:dbghelp:elf_new_wine_thunks Duplicate in comctl32elf: 
refDataPropName004b4d60-0020 subclasses4b4d60-

001b:001c: loads DLL c:\windows\system\iphlpapi.dll @00b0 (00)
001b:001c: loads DLL c:\windows\system\rpcrt4.dll @004e (00)
001b:001c: loads DLL c:\windows\system\ole32.dll @006b (00)
001b:001c: loads DLL c:\windows\system\shlwapi.dll @00d9 (00)
001b:001c: loads DLL c:\windows\system\shell32.dll @0055 (00)
001b:001c: loads DLL c:\windows\system\lz32.dll @003e (00)
001b:001c: loads DLL c:\windows\system\winex11.drv @00ca (00)
001b:001c: loads DLL c:\windows\system\imm32.dll @0071 (00)
001b:001c: exception code=0x8003
wine-pthread: gdbproxy.c:1984: extract_packets: Assertion `i == 
gdbctx-out_len' failed.

wine: Unhandled exception (thread 001d), starting debugger...
WineDbg starting on pid 0x1e
Unhandled exception: assertion failed in 32-bit code (0x595a97e2).
In 32 bit mode.
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:1007 GS:0033
EIP:595a97e2 ESP:7fcbf38c EBP:7fcbf3a0 EFLAGS:0202( - 00 - - I1)
EAX: EBX:4e8c ECX:4e8c EDX:0006
ESI: EDI:2014fff4
Stack dump:
0x7fcbf38c: 200521f8 4e8c 2014fff4 
0x7fcbf39c: b7efe9e0 7fcbf4cc 20053948 0006
0x7fcbf3ac: 7fcbf440  0060 7d00bf80
0x7fcbf3bc: 0068  2008bae7 7fcbf404
0x7fcbf3cc: 7d00bf88 7d00bfec 7fcbf4dc 2014fff4
0x7fcbf3dc: 0059 005a 7fcbf4b0 20086515
0200: sel=1007 base=b7f04000 limit=1f97 32-bit rw-
Backtrace:
=1 0x595a97e2 (0x7fcbf3a0)
2 0x20053948 (0x7fcbf4cc)
3 0x2004b38e (0x7fcbf510)
4 0x75ff7e2f gdb_remote+0xaab(flags=0x1) 
[/home/skissane/osdevel/wine/programs/winedbg/gdbproxy.c:1981] in winedbg 
(0x7fcbfddc)
5 0x76002b9b main+0x473(argc=0x2, argv=0x7fee04a8) 
[/home/skissane/osdevel/wine/programs/winedbg/winedbg.c:1285] in winedbg 
(0x7fcbfeac)

6 0x75fef26f __wine_exe_main+0x176 in winedbg (0x7fcbff2c)
7 0x4bdbe9e2 start_process+0xb6(arg=0x0) 
[/home/skissane/osdevel/wine/dlls/kernel/process.c:996] in kernel32 
(0x7fcbfff4)

8 0x20004935 wine_switch_to_stack+0x11 in libwine.so.1 (0x)
0x595a97e2: ret
Modules:
Module Address Debug info Name (21 modules)
ELF 0x0051b000-00537000 Deferred ld-linux.so.2
ELF 0x00539000-00663000 Deferred libc.so.6
ELF 0x00665000-00669000 Deferred libdl.so.2
ELF 0x0066b000-0068f000 Deferred libm.so.6
ELF 0x00a05000-00a17000 Deferred libpthread.so.0
ELF 0x2000-20018000 DIA libwine.so.1
ELF 0x20154000-201c6000 Deferred ntdllelf
\-PE 0x2017-201c6000 \ ntdll
ELF 0x201ea000-201f5000 Deferred libnss_files.so.2
ELF 0x201f5000-2020b000 Deferred psapielf
\-PE 0x2020-2020b000 \ psapi
ELF 0x39fc3000-39fff000 Deferred advapi32elf
\-PE 0x39fd-39fff000 \ advapi32
ELF 0x45dc6000-45e01000 Deferred dbghelpelf
\-PE 0x45dd-45e01000 \ dbghelp
ELF 0x4bd54000-4be4f000 Stabs kernel32elf
\-PE 0x4bd8-4be4f000 \ kernel32
ELF 0x6be33000-6bf28000 Deferred libwine_unicode.so.1
ELF 0x75fd7000-76019000 Stabs winedbgelf
\-PE 0x75fe-76019000 \ winedbg
ELF 0x7bf0-7bf03000 Deferred wine-loader
Threads:
process tid prio (all id:s are in hex)
001b
001c 0
001e (D) c:\windows\system\winedbg.exe
001d 0 ==
000e
000f 0
000a
000b 0
WineDbg terminated on pid 0x1e

= gdb window ==


gdb


GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type show copying to see the conditions.
There is absolutely no warranty for GDB. Type show warranty for details.
This GDB was configured as i386-redhat-linux-gnu.
(gdb) target remote localhost:32815
Remote debugging 

winedebug/gdb crashes

2005-08-05 Thread Simon Kissane
Hi

Using latest wine CVS (checked out today), trying to debug the
PackageForTheWeb self-extracting EXE that MS uses to distribute MSDE
2000

The EXE works fine (albeit with some visual bugs) when running under plain wine instead of winedebug

Anyone have any idea what might be wrong? (I am very new to wine,
although I've been following the wine-devel archives for a while...)

Cheers
Simon Kissane

= winedebug window ==
 winedbg --gdb --no-start z:/home/skissane/downloads/MSDE2000A.exe
001b:001c: create process 'Z:\home\skissane\downloads\MSDE2000A.exe'/0x7fff003c @0040ce00 (00)
001b:001c: create thread I @0040ce00
target remote localhost:32815
001b:001c: loads DLL c:\windows\system\ntdll.dll @0084 (00)
001b:001c: loads DLL c:\windows\system\kernel32.dll @00e5 (00)
001b:001c: loads DLL c:\windows\system\advapi32.dll @0077 (00)
001b:001c: loads DLL c:\windows\system\gdi32.dll @0037 (00)
001b:001c: loads DLL c:\windows\system\user32.dll @0027 (00)
001b:001c: loads DLL c:\windows\system\comctl32.dll @0043 (00)
fixme:dbghelp:elf_new_wine_thunks Duplicate in comctl32elf:
refDataPropName004b4d60-0020
subclasses4b4d60-
001b:001c: loads DLL c:\windows\system\iphlpapi.dll @00b0 (00)
001b:001c: loads DLL c:\windows\system\rpcrt4.dll @004e (00)
001b:001c: loads DLL c:\windows\system\ole32.dll @006b (00)
001b:001c: loads DLL c:\windows\system\shlwapi.dll @00d9 (00)
001b:001c: loads DLL c:\windows\system\shell32.dll @0055 (00)
001b:001c: loads DLL c:\windows\system\lz32.dll @003e (00)
001b:001c: loads DLL c:\windows\system\winex11.drv @00ca (00)
001b:001c: loads DLL c:\windows\system\imm32.dll @0071 (00)
001b:001c: exception code=0x8003
wine-pthread: gdbproxy.c:1984: extract_packets: Assertion `i == gdbctx-out_len' failed.
wine: Unhandled exception (thread 001d), starting debugger...
WineDbg starting on pid 0x1e
Unhandled exception: assertion failed in 32-bit code (0x595a97e2).
In 32 bit mode.
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:1007 GS:0033
EIP:595a97e2 ESP:7fcbf38c EBP:7fcbf3a0 EFLAGS:0202( - 00 - - I1)
EAX: EBX:4e8c ECX:4e8c EDX:0006
ESI: EDI:2014fff4
Stack dump:
0x7fcbf38c: 200521f8 4e8c 2014fff4 
0x7fcbf39c: b7efe9e0 7fcbf4cc 20053948 0006
0x7fcbf3ac: 7fcbf440  0060 7d00bf80
0x7fcbf3bc: 0068  2008bae7 7fcbf404
0x7fcbf3cc: 7d00bf88 7d00bfec 7fcbf4dc 2014fff4
0x7fcbf3dc: 0059 005a 7fcbf4b0 20086515
0200: sel=1007 base=b7f04000 limit=1f97 32-bit rw-
Backtrace:
=1 0x595a97e2 (0x7fcbf3a0)
 2 0x20053948 (0x7fcbf4cc)
 3 0x2004b38e (0x7fcbf510)
 4 0x75ff7e2f gdb_remote+0xaab(flags=0x1)
[/home/skissane/osdevel/wine/programs/winedbg/gdbproxy.c:1981] in
winedbg (0x7fcbfddc)
 5 0x76002b9b main+0x473(argc=0x2, argv=0x7fee04a8)
[/home/skissane/osdevel/wine/programs/winedbg/winedbg.c:1285] in
winedbg (0x7fcbfeac)
 6 0x75fef26f __wine_exe_main+0x176 in winedbg (0x7fcbff2c)
 7 0x4bdbe9e2 start_process+0xb6(arg=0x0) [/home/skissane/osdevel/wine/dlls/kernel/process.c:996] in kernel32 (0x7fcbfff4)
 8 0x20004935 wine_switch_to_stack+0x11 in libwine.so.1 (0x)
0x595a97e2: ret
Modules:
Module
Address
Debug info Name (21 modules)
ELF 0x0051b000-00537000
Deferred ld-linux.so.2
ELF 0x00539000-00663000
Deferred libc.so.6
ELF 0x00665000-00669000
Deferred libdl.so.2
ELF 0x0066b000-0068f000
Deferred libm.so.6
ELF 0x00a05000-00a17000
Deferred libpthread.so.0
ELF 0x2000-20018000
DIA
libwine.so.1
ELF 0x20154000-201c6000
Deferred ntdllelf
 \-PE 0x2017-201c6000
\
ntdll
ELF 0x201ea000-201f5000
Deferred libnss_files.so.2
ELF 0x201f5000-2020b000
Deferred psapielf
 \-PE 0x2020-2020b000
\
psapi
ELF 0x39fc3000-39fff000
Deferred advapi32elf
 \-PE 0x39fd-39fff000
\
advapi32
ELF 0x45dc6000-45e01000
Deferred dbghelpelf
 \-PE 0x45dd-45e01000
\
dbghelp
ELF 0x4bd54000-4be4f000
Stabs
kernel32elf
 \-PE 0x4bd8-4be4f000
\
kernel32
ELF 0x6be33000-6bf28000
Deferred libwine_unicode.so.1
ELF 0x75fd7000-76019000
Stabs
winedbgelf
 \-PE 0x75fe-76019000
\
winedbg
ELF 0x7bf0-7bf03000
Deferred wine-loader
Threads:
process tid prio (all id:s are in hex)
001b
 001c 0
001e (D) c:\windows\system\winedbg.exe
 001d 0 ==
000e
 000f 0
000a
 000b 0
WineDbg terminated on pid 0x1e

= gdb window ==
 gdb
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB. Type show warranty for details.
This GDB was configured as i386-redhat-linux-gnu.
(gdb) target remote localhost:32815
Remote debugging using localhost:32815
Ignoring packet