[Bug 40528] Cygwin installs (with errors) but doesn't work at all

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 31 02:32:13 CDT 2017


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

--- Comment #6 from Angus Gratton <gus at projectgus.com> ---
> It's not surprising it doesn't work as they are expecting exact opcode sequence for some ntdll exports. We can't do that, maybe someone interested could convince them to add back fallback logic if only for Wine.

Yes, sorry - I posted that comment and then read find_fast_fwd_pointer()'s
source and realised the same.

There is actually some existing fallback logic if that fails:
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/path.cc;h=475c99599a19689bd67f8b81f91ce70f79d7666e;hb=HEAD#l4367

I think the current crash may happen when Cygwin calls RtlEnterCriticalSection
(peb.FastPebLock);, as wine doesn't set this field and calls
RtlAcquirePebLock() instead (which uses a static variable). I don't know if
that's the only thing that's different, though...

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