[Bug 49920] wine: could not load ntdll.so, and more

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jan 4 10:22:43 CST 2021


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

Alexandre Julliard <julliard at winehq.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTOURBUG
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #9 from Alexandre Julliard <julliard at winehq.org> ---
Looking at your code, I suspect the bug is that the path of the custom
ld-linux.so.2 loader ends up as the bin directory, and so we try to exec wine
from there (the /usr/lib32/wine path). Normally that would fail and we'd
fallback to WINELOADER (cf. loader_exec() in dlls/ntdll/unix/loader.c), but
your exec replacement routine in libhookexecv.c is not going to fail for
nonexistent paths, it will exec and then die when loading. 

Detecting all possible failures would be tricky, but adding a simple "if
(stat(path,&st)) return -1;" at the top of the execv hook may be good enough.

-- 
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