[Bug 34865] 64-bit mingw toolchain from Rtools fails to execute (cygwin 1.7.15-1, queued user APC not executed for signal handling)

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jan 8 16:13:53 CST 2014


http://bugs.winehq.org/show_bug.cgi?id=34865

--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

it seems the Rtools release 3.0.2 download location was silently updated with a
cygwin dll (1.7.25) that doesn't have that short-lived APC patch applied .

Unfortunately I didn't sha1sum when I wrote the analysis (I usually do) so I
verified the installed 'cygwin1.dll' in question:

--- snip ---
$ ll cygwin1.dll 
-rw-rw-r--. 1 focht focht 3115385 Aug 31 14:40 cygwin1.dll

$ strings cygwin1.dll | grep cygwin-1.7

/home/corinna/src/cygwin/cygwin-1.7.25/32/cygwin-1.7.25-1/src/src/winsup/cygwin/cygheap.cc
...
--- snip ---

OP: I can't reproduce the bug anymore with your script, can you confirm?

FYI I had to install an additional package, named 'plyr' your 'kimisc' package
depends on.

Interesting tidbit from http://bugs.winehq.org/show_bug.cgi?id=24018#c13 (
Andrey Turkin):

--- quote ---
... unfortunately the latest cygwin build still doesn't work as it should due
to another regression. This one is a Wine bug.

Basically it boils down to the fact that user APCs queued before starting
process' WinMain (that is, queued in DllMain handlers and in TLS callbacks)
should be executed after dlls are loaded, tls callbacks are executed, loader
lock is released but before starting WinMain. Wine doesn't do that (which is
not surprising given how Wine process startup differs from Windows')
To properly fix this bug one would need to implement NtTestAlert (to make sure
APC queue is empty).

In meantime I attached a small hack which is enough to make Cygwin happy (with
regard to this bug). With this hack and latest Cygwin snapshot cygwin's setup
completes, though not entirely successfully - some of postinstall steps are
failing.
--- quote ---

That's definitely the same issue I analyzed here because Andrey's comment is
dated 2013-06-30 which matches the date where this short-lived APC sneaked into
snapshot.

--- quote ---
On Sat, Jul 30, 2011 at 05:09:08PM -0400, Christopher Faylor wrote:

Oops.  Forgot to mention that these changes are available in the most
recent snapshot at:  http://cygwin.com/snapshots/ .
--- quote ---

With the original Rtools release 3.0.2 and this short lived cygwin dll snapshot
version no longer available there is no app to reproduce this anymore.

So the issue is more of theoretical nature.

Regards

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