[Bug 262378] emulators/wine-devel won't start on CURRENT due to ASLR changes

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Mar 2022 12:44:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262378

            Bug ID: 262378
           Summary: emulators/wine-devel won't start on CURRENT due to
                    ASLR changes
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: damjan.jov@gmail.com

On recent CURRENT, Wine errors out and exits very quickly during startup:

$ wine64 cmd
err:virtual:virtual_alloc_first_teb wine: failed map the shared user data:
c0000017

truss shows a lot of mmap() failures with errno 12.

"git bisect" between releng/13 and main has narrowed it down to this range of
commits so far: dd694648ff0f..2075d00fabb

Reading over the commit messages for those commits, and toggling some of the
sysctls mentioned, I found this one got it working again:

sysctl kern.elf64.aslr.stack=0

leading me to suspect the regression is from commit
1811c1e957ee1250b08b3246fc0db37ddf64b736 or thereabout.

-- 
You are receiving this mail because:
You are the assignee for the bug.