[Bug 40744] NtLockFile I/O completion on lock breaks Strawberry Perl CPAN

WineHQ Bugzilla wine-bugs at winehq.org
Sat Nov 23 06:19:31 CST 2019


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

--- Comment #13 from Richard Hughes <richard at hughsie.com> ---
> I'd be happy to create a small reproducer if that helps.

That would be appreciated, thanks.

So, I did that, and it failed to reproduce the "bug" in wine. I spent about 2
hours looking at the debugging until I realized I was calling
g_rw_lock_writer_lock() and then g_rw_lock_reader_unlock() -- which is
something that seems to work "by accident" in glibc -- but not in Windows.
After applying
https://github.com/fwupd/fwupd/commit/0fe4914320e1c8f148860be784b67c746ee45d6c
it seems to work without either error message in wine. My apologies!

If you still want a reproducer (using w_lock, r_unlock) yell, although it's of
course not wine's fault that I'm less than awesome at reviewing patches :)

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