https://bugs.winehq.org/show_bug.cgi?id=54009
Bug ID: 54009 Summary: Wine segfaults on startup on macOS 12 and 13 Product: Wine Version: 7.22 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: loader Assignee: wine-bugs@winehq.org Reporter: bshanks@codeweavers.com Regression SHA1: 63bf2677ed22d26ff1f5ff1886fde08b1f5fb00c
63bf2677ed22d26ff1f5ff1886fde08b1f5fb00c started building the Wine loader as an LC_UNIXTHREAD binary to fix bug 52354, but on macOS 12 (Monterey) and 13 (Ventura) this causes the loader to have 'environ' set to NULL, causing crashes later in ntdll. I'm working on fixing this in the preloader.