http://bugs.winehq.org/show_bug.cgi?id=60185 Bug ID: 60185 Summary: Some processes don't exit if long env vars list is set Product: Wine Version: 11.0 Hardware: arm OS: MacOS Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: callum@gare.au Target Milestone: --- Created attachment 81868 --> http://bugs.winehq.org/attachment.cgi?id=81868 An example exe (the installer for an old game) which hangs on exit Using the latest available stable wine binary for macOS, 11.0 (https://github.com/Gcenx/macOS_Wine_builds) I get very odd behaviour when some programs will hang when exiting if the size of the environment variables is large. ## Reproduction I've attached "Setup.exe" which is an installer from an old game that produces this behaviour (though I see it for other programs too). You don't need to actually proceed with the installation (which will fail in any case as there are other files this installer needs to actually install the game) but simply running the exe then hitting cancel to quit it should be enough to demonstrate this behaviour. I didn't not have this issue when running the same Setup.exe with an older version of wine (`wine-9.0 (KegworksCX 24.0.7)`). If "Wine Stable.app" is not already installed it can be installed with `brew install --cask wine-stable` or by downloading it from https://github.com/Gcenx/macOS_Wine_builds/releases/tag/11.0_1. First to confirm that the installer exits fine when a smaller sized environment is used run `cd $DIR_OF_SETUP_EXE && env -i "PATH=/Applications/Wine Stable.app/Contents/Resources/wine/bin" wine start /wait Setup.exe` and when the setup wizard appears hit cancel. It should exit fine. However if run with `cd $DIR_OF_SETUP_EXE && env -i "PATH=/Applications/Wine Stable.app/Contents/Resources/wine/bin" make_env_var_size_big=$(head -c 5000 /dev/zero | tr '\0' 'A') wine start /wait Setup.exe` after hitting cancel in the setup wizard the wizard should close but the wine processes remain open. One of them hovers at around 100% CPU usage continuously and has to be force quit in order to close. ## Environment Setup I'm running this in macOS 15.6.1 on M2 Pro. -- 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.