http://bugs.winehq.org/show_bug.cgi?id=35947
Bug ID: 35947 Summary: winedbg crashes when running tests in gdb mode Product: Wine Version: 1.7.16 Hardware: x86-64 OS: Linux Status: NEW Keywords: download, regression, source Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: frederic.delanoy@gmail.com CC: piotr.caban@gmail.com Regression SHA1: 23191a4355c16febe4d26722de27d7a14f11872a
Starting from
23191a4355c16febe4d26722de27d7a14f11872a is the first bad commit commit 23191a4355c16febe4d26722de27d7a14f11872a Author: Piotr Caban piotr@codeweavers.com Date: Fri Apr 5 14:08:02 2013 +0200
server: Don't debug children when debugger is attached with DebugActiveProcess function.
:040000 040000 ffc2fb86c4636c6669a13bc23f08a9f372439390 b03f8a23d6c68377d2a28f610c922422d3aae480 M dlls :040000 040000 9c4928c0e817c8a2435123afbeb38a2d20b7587e e2c9b51eb707ab192d48d7c5fe205da0b95c2b1d M server
winedbg crashes when running tests in gdb mode.
For instance:
cd dlls/dinput/tests wine winedbg --gdb dinput_test.exe.so
gives an assertion failure followed by a crash:
-gdb: gdbproxy.c:2494: gdb_init_context: Assertion `gdbctx->process == ((void *)0) && de.dwProcessId == dbg_curr_pid' failed. winedbg: Internal crash at 0xf7750430
https://bugs.winehq.org/show_bug.cgi?id=35947
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=35947
--- Comment #1 from Austin English austinenglish@gmail.com --- 4fca1693018de3c77d8fea0c10753f40c7a3cd1c looks related, but this still fails for me: austin@aw25 ~/wine-git/dlls/dinput/tests $ wine winedbg --gdb dinput_test.exe.so 0022:0023: create process 'Z:\home\austin\wine-git\dlls\dinput\tests\dinput_test.exe'/0x1109f8 @0x7ee6f2d0 (0<0>) 0022:0023: create thread I @0x7ee6f2d0 GNU gdb (Gentoo 7.7 p1) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://bugs.gentoo.org/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word". 0022:0023: loads DLL C:\windows\system32\KERNEL32.dll @0x7b810000 (0<0>) 0022:0023: loads DLL C:\windows\system32\ntdll.dll @0x7bc10000 (0<0>) 0022:0023: loads DLL C:\windows\system32\advapi32.dll @0x7e9f0000 (0<0>) 0022:0023: loads DLL C:\windows\system32\gdi32.dll @0x7ea60000 (0<0>) 0022:0023: loads DLL C:\windows\system32\version.dll @0x7e9d0000 (0<0>) 0022:0023: loads DLL C:\windows\system32\user32.dll @0x7eb80000 (0<0>) 0022:0023: loads DLL C:\windows\system32\comctl32.dll @0x7ecd0000 (0<0>) 0022:0023: loads DLL C:\windows\system32\rpcrt4.dll @0x7e810000 (0<0>) 0022:0023: loads DLL C:\windows\system32\ole32.dll @0x7e8a0000 (0<0>) 0022:0023: loads DLL C:\windows\system32\dinput.dll @0x7edd0000 (0<0>) input_test.exe.so: gdbproxy.c:2494: gdb_init_context: Assertion `gdbctx->process == ((void *)0) && de.dwProcessId == dbg_curr_pid' failed. winedbg: Internal crash at 0xf775b430 /tmp/winegdb.G5nnWe:2: Error in sourced command file: Remote communication error. Target disconnected.: Connection reset by peer.
https://bugs.winehq.org/show_bug.cgi?id=35947
--- Comment #2 from Piotr Caban piotr.caban@gmail.com --- It works for me now.
Austin, are you sure that you have updated wine and that you're running with updated wineserver (you can e.g. run `wineserver -k` to make sure updated version is used)? If it still doesn't work for you can you check if reverting the patch that caused the regression helps in your case.
http://bugs.winehq.org/show_bug.cgi?id=35947
--- Comment #3 from Frédéric Delanoy frederic.delanoy@gmail.com --- Fixed with 4fca1693018de3c77d8fea0c10753f40c7a3cd1c for me. Thx Piotr.
https://bugs.winehq.org/show_bug.cgi?id=35947
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4fca1693018de3c77d8fea0c107 | |53f40c7a3cd1c Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to Piotr Caban from comment #2)
It works for me now.
Austin, are you sure that you have updated wine and that you're running with updated wineserver (you can e.g. run `wineserver -k` to make sure updated version is used)? If it still doesn't work for you can you check if reverting the patch that caused the regression helps in your case.
You're right, I was using 'wine' without having done make install. Running wine from the git tree works.
https://bugs.winehq.org/show_bug.cgi?id=35947
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.17.
https://bugs.winehq.org/show_bug.cgi?id=35947
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |wineserver