[Bug 49626] New: ntdll can be loaded multiple times into the same process
https://bugs.winehq.org/show_bug.cgi?id=49626 Bug ID: 49626 Summary: ntdll can be loaded multiple times into the same process Product: Wine Version: 5.13 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs(a)winehq.org Reporter: madewokherd(a)gmail.com Distribution: --- The simplest way I've found to reproduce this is to install Python for windows and run: wine python -c 'print(__import__("ctypes").windll.kernel32.LoadLibraryW(r"c:\ntdll.dll"))' This should show 0, indicating failure, but on Wine it returns a real module handle, different from the ntdll originally loaded in the process. Worse, the new ntdll isn't initialized properly by ntdll.so, so its functions don't work. This affects wine-mono, which tries to load ntdll from the application path first, apparently expecting that to fail. Anything using an ntdll p/invoke, such as enumerating files, won't work. This causes the run-tests.exe wrapper (from https://github.com/madewokherd/wine-mono/releases) to crash. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Esme Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/madewokh | |erd/wine-mono/releases/down | |load/wine-mono-5.1.0/wine-m | |ono-5.1.0-tests.zip CC| |madewokherd(a)gmail.com Keywords| |download, regression, | |source, testcase -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 --- Comment #1 from Esme Povirk <madewokherd(a)gmail.com> --- Created attachment 67823 --> https://bugs.winehq.org/attachment.cgi?id=67823 work-around for Wine Mono Here's a patch that works around it in Wine Mono. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Andrew Eikum <aeikum(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum(a)codeweavers.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Jactry Zeng <jactry92(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Esme Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tijs(a)familiebeek.eu --- Comment #2 from Esme Povirk <madewokherd(a)gmail.com> --- *** Bug 49634 has been marked as a duplicate of this bug. *** -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 --- Comment #3 from Esme Povirk <madewokherd(a)gmail.com> --- It seems like loading c:\ntdll.dll actually did succeed earlier, but it returned the same handle already in the process. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 --- Comment #4 from Jactry Zeng <jactry92(a)gmail.com> --- Is this fixed by https://source.winehq.org/git/wine.git/?a=commit;h=b7e51a1653320d06a9c04f53d... ? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Esme Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |b7e51a1653320d06a9c04f53d0d | |9e7eda577c31b --- Comment #5 from Esme Povirk <madewokherd(a)gmail.com> --- Yes, it's fixed, thank you. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.14. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |annoywife(a)gmail.com --- Comment #7 from Anastasius Focht <focht(a)gmx.net> --- *** Bug 49536 has been marked as a duplicate of this bug. *** -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49626 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |8a169390c9ef4d8a43b604558c4 | |194a052473c0c CC| |focht(a)gmx.net -- 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.
participants (1)
-
WineHQ Bugzilla