https://bugs.winehq.org/show_bug.cgi?id=45916
Bug ID: 45916 Summary: x64dbg does not open executables, nothing happens Product: Wine Version: 3.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: jimbo1qaz@gmail.com Distribution: ---
When I File/Open or drag a .exe file into x32dbg (x64dbg 32-bit), the exe does not load onto the graphs, and Ctrl+G doesn't work. I think the EXE is not loaded by the debugger at all.
Fixed by ~/bin/winetricks vcrun2013 .
Wine 3.16 on Debian on Virtualbox.
https://bugs.winehq.org/show_bug.cgi?id=45916
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Ever confirmed|0 |1 Keywords| |download, source URL| |https://sourceforge.net/pro | |jects/x64dbg/files/snapshot | |s/ Status|UNCONFIRMED |NEW
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
filling some fields and confirm on behalf of OP.
Regards
https://bugs.winehq.org/show_bug.cgi?id=45916
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #2 from Piotr Caban piotr.caban@gmail.com --- It's caused by unimplemented ThreadScheduler_ScheduleTask function.
https://bugs.winehq.org/show_bug.cgi?id=45916
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|x64dbg does not open |x64dbg needs |executables, nothing |ThreadScheduler_ScheduleTas |happens |k
https://bugs.winehq.org/show_bug.cgi?id=45916
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|x64dbg needs |x64dbg fails to load |ThreadScheduler_ScheduleTas |debuggee, needs |k |ThreadScheduler_ScheduleTas | |k
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, still present.
x64dbg requires Concurrency Runtime scheduler API to asynchronously execute commands ('DbgCmdExec', '_dbg_dbgcmdexec').
It makes use of asynchronous message blocks, implemented using concurrency API.
The concept is described here:
https://docs.microsoft.com/en-us/cpp/parallel/concrt/asynchronous-agents-lib... ("Asynchronous Agents Library")
https://docs.microsoft.com/en-us/cpp/parallel/concrt/asynchronous-message-bl... ("Asynchronous Message Blocks")
https://github.com/x64dbg/x64dbg/search?q=MsgSend&unscoped_q=MsgSend
https://github.com/x64dbg/x64dbg/blob/58825d4522f06986e09ab17b141204a66e68dd...
https://github.com/x64dbg/x64dbg/blob/58825d4522f06986e09ab17b141204a66e68dd...
BTW there is no need to pollute the WINEPREFIX globally with VC++ 2013 runtime using 'winetricks'. It's rather harmful, especially if you want to debug bugs that are in same component(s). x64dbg ships the VC++ 2013 runtime in the app folder:
--- snip --- $ pwd /home/focht/wine-apps/x64dbg/release/x32
$ ls -la *.{dll,exe} -rw-rw-r--. 1 focht focht 231112 Aug 26 2017 asmjit.dll -rw-rw-r--. 1 focht focht 1245624 Jul 29 2017 dbghelp.dll -rw-rw-r--. 1 focht focht 59832 Jul 29 2017 DeviceNameResolver.dll -rw-rw-r--. 1 focht focht 128440 Jul 29 2017 jansson.dll -rw-rw-r--. 1 focht focht 50104 Jul 29 2017 ldconvert.dll -rw-rw-r--. 1 focht focht 1373112 Jul 29 2017 libeay32.dll -rw-rw-r--. 1 focht focht 93112 Jul 29 2017 lz4.dll -rw-rw-r--. 1 focht focht 1211536 Jul 5 2018 msdia140.dll -rw-rw-r--. 1 focht focht 454968 Jul 29 2017 msvcp120.dll -rw-rw-r--. 1 focht focht 971064 Jul 29 2017 msvcr120.dll -rw-rw-r--. 1 focht focht 4676296 Aug 26 2017 Qt5Core.dll -rw-rw-r--. 1 focht focht 5017288 Aug 26 2017 Qt5Gui.dll -rw-rw-r--. 1 focht focht 860360 Aug 26 2017 Qt5Network.dll -rw-rw-r--. 1 focht focht 4477640 Aug 26 2017 Qt5Widgets.dll -rw-rw-r--. 1 focht focht 458952 Jan 28 2018 Scylla.dll -rw-rw-r--. 1 focht focht 2020280 Jul 29 2017 snowman.dll -rw-rw-r--. 1 focht focht 341944 Jul 29 2017 ssleay32.dll -rw-rw-r--. 1 focht focht 130488 Jul 29 2017 symsrv.dll -rw-rw-r--. 1 focht focht 690424 Nov 18 2018 TitanEngine.dll -rw-rw-r--. 1 focht focht 16824 Jul 29 2017 x32_bridge.dll -rw-rw-r--. 1 focht focht 57080 May 19 18:23 x32bridge.dll -rw-rw-r--. 1 focht focht 9144 Jul 29 2017 x32_dbg.dll -rw-rw-r--. 1 focht focht 1373944 May 19 18:23 x32dbg.dll -rwxrwxr-x. 1 focht focht 54008 May 19 18:24 x32dbg.exe -rw-rw-r--. 1 focht focht 4130552 May 19 18:23 x32gui.dll -rw-rw-r--. 1 focht focht 1316280 Jul 29 2017 XEDParse.dll -rw-rw-r--. 1 focht focht 1839032 Jul 29 2017 yara.dll --- snip ---
Hence just make an app-local registry override or use:
--- snip --- $ WINEDLLOVERRIDES=msvcr120,msvcp120=n,b wine ./x32dbg.exe --- snip ---
$ sha1sum snapshot_2019-05-19_18-24.zip e29431ac8fb4e9311dc54a1c11582d47d3ff3b24 snapshot_2019-05-19_18-24.zip
$ du -sh snapshot_2019-05-19_18-24.zip 32M snapshot_2019-05-19_18-24.zip
$ wine --version wine-4.9
Regards
https://bugs.winehq.org/show_bug.cgi?id=45916
mr.exodia.tpodt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mr.exodia.tpodt@gmail.com
--- Comment #4 from mr.exodia.tpodt@gmail.com --- For what it's worth, there is an (unmaintained) wine branch available in the x64dbg repository. See https://github.com/x64dbg/x64dbg/tree/wine, it replaces Microsoft's stuff with a different concurrent queue implementation and seems to fix most issues people are having. You should be able to cherry pick this commit to whatever version you want.
https://bugs.winehq.org/show_bug.cgi?id=45916
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://sourceforge.net/pro |https://web.archive.org/web |jects/x64dbg/files/snapshot |/20210127234740/https://git |s/ |hub.com/x64dbg/x64dbg/relea | |ses/download/snapshot/snaps | |hot_2021-01-14_13-25.zip
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download link via Internet Archive:
https://web.archive.org/web/20210127234740/https://github.com/x64dbg/x64dbg/...
The last update from Duncan to the Wine-specific x64dbg branch was in 2017 (741 commits behind current development). I don't think it's worth to rebase/maintain further. Few people build x64dbg from source and the overrides workaround for Wine is much easier to apply.
I recommend to use app-specific native overrides via registry setting to benefit from current x64dbg development snapshots which includes GleeBug (https://github.com/x64dbg/GleeBug), a successor/replacement for TitanEngine.
Registry snippet you need to apply to each WINEPREFIX where you want to use x64dbg/x32dbg on:
--- snip --- [HKEY_CURRENT_USER\Software\Wine\AppDefaults\x32dbg.exe]
[HKEY_CURRENT_USER\Software\Wine\AppDefaults\x32dbg.exe\DllOverrides] "msvcp120"="native,builtin" "msvcr120"="native,builtin"
[HKEY_CURRENT_USER\Software\Wine\AppDefaults\x64dbg.exe]
[HKEY_CURRENT_USER\Software\Wine\AppDefaults\x64dbg.exe\DllOverrides] "msvcp120"="native,builtin" "msvcr120"="native,builtin" --- snip ---
The benefit of using an app-specific override:
* allows to debug problems with Wine's builtin runtime implementation if the app (debuggee) uses the same VC++ runtime version
* avoids accidentally stepping into proprietary Microsoft code when debugging the app (cleanroom rules)
$ sha1sum snapshot_2021-01-14_13-25.zip e39756243f419db6f4d2213227ab266ae0618163 snapshot_2021-01-14_13-25.zip
$ du -sh snapshot_2021-01-14_13-25.zip 32M snapshot_2021-01-14_13-25.zip
$ wine --version wine-6.1-38-gcfbbde2abce
Regards
https://bugs.winehq.org/show_bug.cgi?id=45916
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #6 from temp82@luukku.com --- https://source.winehq.org/patches/data/231525
got merged and should solve or at least help this bug.
https://bugs.winehq.org/show_bug.cgi?id=45916
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2d2dba53740a3bf6407e19c33e5 | |30a84945aceff Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/2d2dba53740a3bf6407e19c33e... ("msvcr100: Improve ThreadScheduler_ScheduleTask_loc stub."). Part of Wine 7.6 release.
Thanks Piotr
Thanks Jarkko for the reminder.
Native msvcp120 and msvcr120 overrides are no longer needed.
$ wine --version wine-7.6
Regards
https://bugs.winehq.org/show_bug.cgi?id=45916
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.7.
https://bugs.winehq.org/show_bug.cgi?id=45916
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.0.x
https://bugs.winehq.org/show_bug.cgi?id=45916
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|7.0.x |---
--- Comment #9 from Michael Stefaniuc mstefani@winehq.org --- Removing the 7.0.x milestone from bug fixes included in 7.0.1.