[Bug 58084] New: Commit d813ffc3 (ntdll: Align virtual memory allocations to the host page size) breaks Wine in a Rosetta emulated Docker environment
http://bugs.winehq.org/show_bug.cgi?id=58084 Bug ID: 58084 Summary: Commit d813ffc3 (ntdll: Align virtual memory allocations to the host page size) breaks Wine in a Rosetta emulated Docker environment Product: Wine Version: 10.5 Hardware: arm OS: MacOS Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs(a)winehq.org Reporter: alex(a)willner.ws **Version:** 10.5 and 10.4 **Steps that will reproduce the problem:** On an arm64 M2 run macOS 15.4 (24E248) and execute with Docker version 28.0.4 (b8034c0): docker run --platform linux/amd64 --rm scottyhardy/docker-wine:devel-10.4 sh -c 'wine --version && winecfg' **What is the expected result:**
% docker run --platform linux/amd64 --rm scottyhardy/docker-wine:devel-10.5 sh -c 'wine --version && winecfg' wine-10.5 wine: created the configuration directory ...
**What happens instead:**
wine-10.5 wine: dlls/ntdll/unix/virtual.c:253: anon_mmap_fixed: Assertion `!((UINT_PTR)start & host_page_mask)' failed. qemu: uncaught target signal 6 (Aborted) - core dumped Aborted
**Possible workaround:** Downgrade to Wine 10.4:
% docker run --platform linux/amd64 --rm scottyhardy/docker-wine:devel-10.4 sh -c 'wine --version && winecfg' wine-10.4 wine: created the configuration directory ...
*Any additional information:** See Commit d813ffc3: ntdll: Align virtual memory allocations to the host page size. https://gitlab.winehq.org/wine/wine/-/commit/d813ffc3557083fd135a28d59f490bb... -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 cqwrteur <euloanty(a)live.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |euloanty(a)live.com --- Comment #1 from cqwrteur <euloanty(a)live.com> --- i have found the same issue on aarch64-linux-musl Assertion failed: !(size & host_page_mask) (/home/cqwrteur/toolchains_build/wine/dlls/ntdll/unix/virtual.c: alloc_virtual_heap: 3421) Aborted -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 Arseny Solokha <asolokha(a)gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asolokha(a)gmx.com -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 André Z. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |nerv(a)dawncrow.de Status|UNCONFIRMED |NEW --- Comment #2 from André Z. <nerv(a)dawncrow.de> --- confirming, there were reports for Hangover as well -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 André Z. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard(a)winehq.org --- Comment #3 from André Z. <nerv(a)dawncrow.de> --- So according to my calculations this is what happens on a 4k pagesize system with 38 bits address space: virtual_init: pages_vprot_size = ((size_t)host_addr_space_limit /* 0x7fffff0000 */ >> page_shift /* 12 */ >> pages_vprot_shift /* 20 */) + 1; /* = 0x80 */ size = 2 * view_block_size + pages_vprot_size * sizeof(*pages_vprot); /* = 0x200400 */ alloc_virtual_heap: assert( !(size & host_page_mask) ); /* 0x200400 & 0xfff */ //->boom -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 André Z. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |d813ffc3557083fd135a28d59f4 | |90bb83754263f -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 --- Comment #4 from André Z. <nerv(a)dawncrow.de> --- (In reply to André Z. from comment #3)
So according to my calculations this is what happens on a 4k pagesize system with 38 bits address space:
virtual_init: pages_vprot_size = ((size_t)host_addr_space_limit /* 0x7fffff0000 */ >> page_shift /* 12 */ >> pages_vprot_shift /* 20 */) + 1; /* = 0x80 */ size = 2 * view_block_size + pages_vprot_size * sizeof(*pages_vprot); /* = 0x200400 */
alloc_virtual_heap: assert( !(size & host_page_mask) ); /* 0x200400 & 0xfff */ //->boom
396207f4f1ad8903876a31cecbf5756f321295a9 fixed this, but not sure about the similar problem on mac. Somehow this bug is about two different issues. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 --- Comment #5 from Alex <alex(a)willner.ws> ---
396207f4f1ad8903876a31cecbf5756f321295a9 fixed this, but not sure about the similar problem on mac. Somehow this bug is about two different issues.
It seems https://gitlab.winehq.org/wine/wine/-/commit/396207f4f1ad8903876a31cecbf5756... did not fix the problem on mac:
% docker run --platform linux/amd64 --rm scottyhardy/docker-wine:devel-10.7 sh -c 'wine --version && winecfg' wine-10.7 wine: dlls/ntdll/unix/virtual.c:267: anon_mmap_fixed: Assertion `!((UINT_PTR)start & host_page_mask)' failed. qemu: uncaught target signal 6 (Aborted) - core dumped Aborted
-- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 n4jm4@pm.me changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |n4jm4@pm.me --- Comment #6 from n4jm4@pm.me --- Same problem in 2026. Surprised the breaking commit hasn't been reverted. Worse, winecfg in Docker now hangs indefinitely with scottyhardy/docker-wine:devel-10.4 This is frustrating. I didn't plan to spend all day troubleshooting wine, when I simply want Wix Toolset in a Linux Docker container. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 Austin English <austinenglish@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 mata <sutupud@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sutupud@yahoo.com --- Comment #7 from mata <sutupud@yahoo.com> --- 10.4 is the version for which this bug was originally reported. Of course it's not fixed there. The fix that supposedly fixed parts of it was merged in 10.10, so you should try with a current version of wine. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=58084 --- Comment #8 from n4jm4@pm.me --- Right, I already tried with a recent version of wine. Tried both winehq-stable and and winehq-devel from the official wine repos. Tried Debian and Ubuntu. To clarify, the newer versions still have this qemu memory bug on Docker on macOS hosts. That bug was never fixed. -- 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.
participants (2)
-
WineHQ Bugzilla -
WineHQ Bugzilla