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
0000001b:0000001c: create process 'Z:\home\skissane\downloads\MSDE2000A.exe'/0x7fff003c @0040ce00 (0<0>)
0000001b:0000001c: create thread I @0040ce00
target remote localhost:32815
0000001b:0000001c: loads DLL c:\windows\system\ntdll.dll @00840000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\kernel32.dll @00e50000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\advapi32.dll @00770000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\gdi32.dll @00370000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\user32.dll @00270000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\comctl32.dll @00430000 (0<0>)
fixme:dbghelp:elf_new_wine_thunks Duplicate in comctl32<elf>: refDataPropName<004b4d60-00000020> subclasses<4b4d60-00000000>
0000001b:0000001c: loads DLL c:\windows\system\iphlpapi.dll @00b00000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\rpcrt4.dll @004e0000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\ole32.dll @006b0000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\shlwapi.dll @00d90000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\shell32.dll @00550000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\lz32.dll @003e0000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\winex11.drv @00ca0000 (0<0>)
0000001b:0000001c: loads DLL c:\windows\system\imm32.dll @00710000 (0<0>)
0000001b:0000001c: exception code=0x80000003
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:00000202(   - 00      - - I1)
 EAX:00000000 EBX:00004e8c ECX:00004e8c EDX:00000006
 ESI:00000000 EDI:2014fff4
Stack dump:
0x7fcbf38c:  200521f8 00004e8c 2014fff4 00000000
0x7fcbf39c:  b7efe9e0 7fcbf4cc 20053948 00000006
0x7fcbf3ac:  7fcbf440 00000000 00000060 7d00bf80
0x7fcbf3bc:  00000068 00000000 2008bae7 7fcbf404
0x7fcbf3cc:  7d00bf88 7d00bfec 7fcbf4dc 2014fff4
0x7fcbf3dc:  00000059 0000005a 7fcbf4b0 20086515
0200: sel=1007 base=b7f04000 limit=00001f97 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 (0x00000000)
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     0x20000000-20018000     DIA             libwine.so.1
ELF     0x20154000-201c6000     Deferred        ntdll<elf>
  \-PE  0x20170000-201c6000     \               ntdll
ELF     0x201ea000-201f5000     Deferred        libnss_files.so.2
ELF     0x201f5000-2020b000     Deferred        psapi<elf>
  \-PE  0x20200000-2020b000     \               psapi
ELF     0x39fc3000-39fff000     Deferred        advapi32<elf>
  \-PE  0x39fd0000-39fff000     \               advapi32
ELF     0x45dc6000-45e01000     Deferred        dbghelp<elf>
  \-PE  0x45dd0000-45e01000     \               dbghelp
ELF     0x4bd54000-4be4f000     Stabs           kernel32<elf>
  \-PE  0x4bd80000-4be4f000     \               kernel32
ELF     0x6be33000-6bf28000     Deferred        libwine_unicode.so.1
ELF     0x75fd7000-76019000     Stabs           winedbg<elf>
  \-PE  0x75fe0000-76019000     \               winedbg
ELF     0x7bf00000-7bf03000     Deferred        <wine-loader>
Threads:
process  tid      prio (all id:s are in hex)
0000001b
        0000001c    0
0000001e (D) c:\windows\system\winedbg.exe
        0000001d    0 <==
0000000e
        0000000f    0
0000000a
        0000000b    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 error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(gdb)