[Bug 46098] ftruncate fails with Invalid Argument when file is memory mapped

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Nov 6 14:14:15 CST 2018


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

--- Comment #7 from Georg Sauthoff <mail at georg.so> ---
(In reply to Alexandre Julliard from comment #2)
> Actually your test case fails on Windows too, so it's Wine-staging that's
> more correct (though the error code seems different).

So I ran this test-case again today under native-windows (windows 8
professional, 64 bit, bare-metal, test-case cross-compiled on Fedora with
mingw) and it does fail with:

    2nd ftruncate before unmap: Permission denied

Thus, there was some human error in the execution of my previous experiment and
I take my original comment back regarding the windows behavior.

Since my main use case for Wine is to conveniently run cross-compiled unit-test
suites (e.g. when it's simpler to integrate in a CI environment or quicker
during development) I appreciate that Wine now behaves more like native
Windows.

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