[Bug 40289] winedbg --gdb fails to create process

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 13 19:13:29 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=40289

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |focht at gmx.net
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

I couldn't reproduce the problem a single time with all (old) versions reported
here.

* Wine 1.8

--- snip ---
$ wine --version
wine-1.8-3-g4faf4d9cb0

$ winedbg --gdb notepad.exe
0023:0024: create process 'C:\windows\system32\notepad.exe'/0x1106c0
@0x7ea02e50 (0<0>)
...
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block no range
0023:0024: create thread I @0x7ea02e50
GNU gdb (GDB) Fedora 8.1.1-3.fc28
Copyright (C) 2018 Free Software Foundation, Inc.
...
0023:0024: loads DLL C:\windows\system32\KERNEL32.dll @0x7b810000 (0<0>)
0023:0024: loads DLL C:\windows\system32\ntdll.dll @0x7bc10000 (0<0>)
0023:0024: loads DLL C:\windows\system32\advapi32.dll @0x7e380000 (0<0>)
0023:0024: loads DLL C:\windows\system32\gdi32.dll @0x7e400000 (0<0>)
0023:0024: loads DLL C:\windows\system32\version.dll @0x7eff0000 (0<0>)
0023:0024: loads DLL C:\windows\system32\user32.dll @0x7e510000 (0<0>)
0023:0024: loads DLL C:\windows\system32\shlwapi.dll @0x7e660000 (0<0>)
0023:0024: loads DLL C:\windows\system32\shell32.dll @0x7e6d0000 (0<0>)
0023:0024: loads DLL C:\windows\system32\comctl32.dll @0x7e290000 (0<0>)
0023:0024: loads DLL C:\windows\system32\winspool.drv @0x7e250000 (0<0>)
0023:0024: loads DLL C:\windows\system32\comdlg32.dll @0x7e910000 (0<0>)
0023:0024: loads DLL C:\windows\system32\msvcrt.dll @0x7e1a0000 (0<0>)
0023:0024: loads DLL C:\windows\system32\imm32.dll @0x7df40000 (0<0>)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block no range
0023:0024: loads DLL C:\windows\system32\winex11.drv @0x7deb0000 (0<0>)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block no range
...
0023:0024: loads DLL C:\windows\system32\uxtheme.dll @0x7de70000 (0<0>)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block no range
...
00000023:00000024: exception code=0x80000003
No support for verbose packet MustReplyEmpty
No support for verbose packet File:setfs:0
No support for verbose packet File:open:6a7573742070726f62696e67,0,1c0
warning: remote target does not support file transfer, attempting to access
files from local filesystem.
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
start_process (peb=0x7ffdf000) at
/home/focht/projects/wine/mainline-src-1.8/dlls/kernel32/process.c:1107
1107        return call_process_entry( peb, entry );
trace: 98 => 80

Wine-gdb> bt
#0  start_process (peb=0x7ffdf000) at
/home/focht/projects/wine/mainline-src-1.8/dlls/kernel32/process.c:1107
#1  0x7bc7da1c in call_thread_func_wrapper () from
/home/focht/projects/wine/mainline-install-1.8-x86_64/bin/../lib/wine/ntdll.dll.so
#2  0x7bc80759 in call_thread_func (entry=0x7b85d050 <start_process>,
arg=0x7ffdf000, frame=0x33ffc8) at
/home/focht/projects/wine/mainline-src-1.8/dlls/ntdll/signal_i386.c:2719
#3  0x7bc7d9fa in call_thread_entry_point () from
/home/focht/projects/wine/mainline-install-1.8-x86_64/bin/../lib/wine/ntdll.dll.so
#4  0x7bc523e7 in start_process (kernel_start=0x7b85d050 <start_process>) at
/home/focht/projects/wine/mainline-src-1.8/include/winnt.h:2321
#5  0xf7dcfedd in wine_call_on_stack () from
/home/focht/projects/wine/mainline-install-1.8-x86_64/bin/../lib/libwine.so.1
#6  0xf7dd0040 in wine_switch_to_stack (func=0x7bc523d0 <start_process>,
arg=0x7b85d050 <start_process>, stack=0x340000)
    at /home/focht/projects/wine/mainline-src-1.8/libs/wine/port.c:59
#7  0x7bc57f7d in LdrInitializeThunk (kernel_start=<optimized out>,
unknown2=<optimized out>, unknown3=<optimized out>, unknown4=<optimized out>)
    at /home/focht/projects/wine/mainline-src-1.8/include/winnt.h:2321
#8  0x7b863103 in __wine_kernel_init () at
/home/focht/projects/wine/mainline-src-1.8/dlls/kernel32/process.c:1279
#9  0x7bc58e0c in __wine_process_init () at
/home/focht/projects/wine/mainline-src-1.8/dlls/ntdll/loader.c:3303
#10 0xf7dcedf8 in wine_init (argc=2, argv=0xffad6464, error=0xffad5fa0 "",
error_size=1024) at
/home/focht/projects/wine/mainline-src-1.8/libs/wine/loader.c:956
#11 0x7bf00cea in main ()
Wine-gdb> 
--- snip ---

* Wine 2.0

--- snip ---
$ wine --version
wine-2.0-1-g1dc52b5fc9

$ winedbg --gdb notepad.exe
0025:0026: create process 'C:\windows\system32\notepad.exe'/0x110760
@0x7ea02eb0 (0<0>)
...
0025:0026: create thread I @0x7ea02eb0
GNU gdb (GDB) Fedora 8.1.1-3.fc28
Copyright (C) 2018 Free Software Foundation, Inc.
...
0025:0026: loads DLL C:\windows\system32\KERNEL32.dll @0x7b410000 (0<0>)
0025:0026: loads DLL C:\windows\system32\ntdll.dll @0x7bc10000 (0<0>)
0025:0026: loads DLL C:\windows\system32\advapi32.dll @0x7e360000 (0<0>)
0025:0026: loads DLL C:\windows\system32\gdi32.dll @0x7e3e0000 (0<0>)
0025:0026: loads DLL C:\windows\system32\version.dll @0x7eff0000 (0<0>)
0025:0026: loads DLL C:\windows\system32\user32.dll @0x7e500000 (0<0>)
0025:0026: loads DLL C:\windows\system32\shlwapi.dll @0x7e650000 (0<0>)
0025:0026: loads DLL C:\windows\system32\shell32.dll @0x7e6d0000 (0<0>)
0025:0026: loads DLL C:\windows\system32\comctl32.dll @0x7e260000 (0<0>)
0025:0026: loads DLL C:\windows\system32\winspool.drv @0x7e230000 (0<0>)
0025:0026: loads DLL C:\windows\system32\comdlg32.dll @0x7e910000 (0<0>)
0025:0026: loads DLL C:\windows\system32\msvcrt.dll @0x7e180000 (0<0>)
0025:0026: loads DLL C:\windows\system32\imm32.dll @0x7df10000 (0<0>)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block no range
0025:0026: loads DLL C:\windows\system32\winex11.drv @0x7de90000 (0<0>)
...
00000025:00000026: exception code=0x80000003
No support for verbose packet MustReplyEmpty
No support for verbose packet File:setfs:0
No support for verbose packet File:open:6a7573742070726f62696e67,0,1c0
warning: remote target does not support file transfer, attempting to access
files from local filesystem.
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
start_process (peb=0x7ffdf000) at
/home/focht/projects/wine/mainline-src-2.0/dlls/kernel32/process.c:1108
1108        return call_process_entry( peb, entry );
trace: 98 => 80

Wine-gdb> bt
#0  start_process (peb=0x7ffdf000) at
/home/focht/projects/wine/mainline-src-2.0/dlls/kernel32/process.c:1108
#1  0x7bc7f13c in call_thread_func_wrapper () from
/home/focht/projects/wine/mainline-install-2.0-x86_64/bin/../lib/wine/ntdll.dll.so
#2  0x7bc81eb9 in call_thread_func (entry=0x7b45fb60 <start_process>,
arg=0x7ffdf000, frame=0x33ffc8) at
/home/focht/projects/wine/mainline-src-2.0/dlls/ntdll/signal_i386.c:2765
#3  0x7bc7f11a in call_thread_entry_point () from
/home/focht/projects/wine/mainline-install-2.0-x86_64/bin/../lib/wine/ntdll.dll.so
#4  0x7bc52877 in start_process (kernel_start=0x7b45fb60 <start_process>) at
/home/focht/projects/wine/mainline-src-2.0/include/winnt.h:2324
#5  0xf7d6e49d in wine_call_on_stack () from
/home/focht/projects/wine/mainline-install-2.0-x86_64/bin/../lib/libwine.so.1
#6  0xf7d6e600 in wine_switch_to_stack (func=0x7bc52860 <start_process>,
arg=0x7b45fb60 <start_process>, stack=0x340000) at
/home/focht/projects/wine/mainline-src-2.0/libs/wine/port.c:77
#7  0x7bc5841d in LdrInitializeThunk (kernel_start=<optimized out>,
unknown2=<optimized out>, unknown3=<optimized out>, unknown4=<optimized out>)
    at /home/focht/projects/wine/mainline-src-2.0/include/winnt.h:2324
#8  0x7b465bf3 in __wine_kernel_init () at
/home/focht/projects/wine/mainline-src-2.0/dlls/kernel32/process.c:1302
#9  0x7bc592ac in __wine_process_init () at
/home/focht/projects/wine/mainline-src-2.0/dlls/ntdll/loader.c:3312
#10 0xf7d6dac8 in wine_init (argc=2, argv=0xff9d5954, error=0xff9d5490 "",
error_size=1024) at
/home/focht/projects/wine/mainline-src-2.0/libs/wine/loader.c:956
#11 0x7c000a3a in main ()
--- snip ---

* Wine 2.18

--- snip ---
$ wine --version
wine-2.18

$ winedbg --gdb notepad.exe
002b:002c: create process 'C:\windows\system32\notepad.exe'/0x110760
@0x7ea02ea0 (0<0>)
002b:002c: create thread I @0x7ea02ea0
GNU gdb (GDB) Fedora 8.1.1-3.fc28
Copyright (C) 2018 Free Software Foundation, Inc.
...
002b:002c: loads DLL C:\windows\system32\KERNEL32.dll @0x7b410000 (0<0>)
002b:002c: loads DLL C:\windows\system32\ntdll.dll @0x7bc10000 (0<0>)
002b:002c: loads DLL C:\windows\system32\advapi32.dll @0x7e2d0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\gdi32.dll @0x7e340000 (0<0>)
002b:002c: loads DLL C:\windows\system32\version.dll @0x7eff0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\user32.dll @0x7e470000 (0<0>)
002b:002c: loads DLL C:\windows\system32\shlwapi.dll @0x7e640000 (0<0>)
002b:002c: loads DLL C:\windows\system32\shell32.dll @0x7e6c0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\comctl32.dll @0x7e1b0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\winspool.drv @0x7e170000 (0<0>)
002b:002c: loads DLL C:\windows\system32\comdlg32.dll @0x7e910000 (0<0>)
002b:002c: loads DLL C:\windows\system32\msvcrt.dll @0x7e0b0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\imm32.dll @0x7dd40000 (0<0>)
002b:002c: loads DLL C:\windows\system32\winex11.drv @0x7dcc0000 (0<0>)
002b:002c: loads DLL C:\windows\system32\uxtheme.dll @0x7dc80000 (0<0>)
0000002b:0000002c: exception code=0x80000003
No support for verbose packet MustReplyEmpty
No support for verbose packet File:setfs:0
No support for verbose packet File:open:6a7573742070726f62696e67,0,1c0
warning: remote target does not support file transfer, attempting to access
files from local filesystem.
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
start_process (entry=<optimized out>) at
/home/focht/projects/wine/mainline-src-2.18/dlls/kernel32/process.c:1124
1124        return call_process_entry( peb, entry );
trace: 98 => 80

Wine-gdb> bt
#0  start_process (entry=<optimized out>) at
/home/focht/projects/wine/mainline-src-2.18/dlls/kernel32/process.c:1124
#1  0x7bc7f70c in call_thread_func_wrapper () from
/home/focht/projects/wine/mainline-install-2.18-x86_64/bin/../lib/wine/ntdll.dll.so
#2  0x7bc82763 in call_thread_func (entry=0x7b460c50 <start_process>,
arg=0x7ea02ea0 <__wine_spec_exe_entry>, frame=0x33ffec)
    at
/home/focht/projects/wine/mainline-src-2.18/dlls/ntdll/signal_i386.c:2932
#3  0x7bc7f6ea in call_thread_entry_point () from
/home/focht/projects/wine/mainline-install-2.18-x86_64/bin/../lib/wine/ntdll.dll.so
#4  0x00000000 in ?? ()
--- snip ---

Resolving 'fixed' although I think it was either broken Wine builds or
something else broken in your distro. As an exercise, you could prove it by
doing a reverse regression test (https://wiki.winehq.org/Regression_Testing) to
show which Wine commit "magically" fixed the problem.

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list