[Bug 60185] New: Some processes don't exit if long env vars list is set
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.
http://bugs.winehq.org/show_bug.cgi?id=60185 --- Comment #1 from Callum Gare <callum@gare.au> --- I've just tried it out with 11.15 (Wine staging from https://github.com/Gcenx/macOS_Wine_builds/releases/tag/11.15) and that has the same behaviour of hanging when the env vars size is large -- 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=60185 --- Comment #2 from Alexandre Julliard <julliard@winehq.org> --- The content of attachment 81868 has been deleted for the following reason: Please do not attach copyrighted binaries -- 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=60185 --- Comment #3 from Callum Gare <callum@gare.au> --- I've now tried it with wine 10.0 and that does not have the hang-on-large-env-vars-size issue. I tested by downloading WS12WineSikarugir10.0_6.tar.xz from https://github.com/Sikarugir-App/Engines/releases/ and Template-1.0.11.tar.xz from https://github.com/Sikarugir-App/Wrapper/releases/. After extracting and running `xattr -dr com.apple.quarantine $PATH_TO_EXTRACTED_FILES` over the extracted files to remove any macOS quarantine status I then ran: `cd $DIR_OF_SETUP_EXE && env -i "PATH=/path/to/wswine.bundle/bin" "DYLD_FALLBACK_LIBRARY_PATH=/path/to/Template-1.0.11.app/Contents/Frameworks" make_env_var_size_big=$(head -c 5000 /dev/zero | tr '\0' 'A') wine start /wait Setup.exe` When hitting "Cancel" in the setup wizard the process did not hang on exit. -- 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=60185 --- Comment #4 from Callum Gare <callum@gare.au> ---
Please do not attach copyrighted binaries
Sorry! It looks like you can also replicate the issue by downloading isetup-5.4.2.exe from https://files.jrsoftware.org/is/5/. When run you first have to click "Ok" to confirm English as the language then on the next screen clicking "Cancel" will cause the hang on affected wine versions. -- 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=60185 --- Comment #5 from Ken Sharp <imwellcushtymelike@gmail.com> --- Please run a regression test. https://gitlab.winehq.org/wine/wine/-/wikis/Regression-Testing -- 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=60185 --- Comment #6 from Callum Gare <callum@gare.au> --- I've spend a good part of the day trying but sadly I haven't been able to get wine to successfully build and run a range of versions on my M2 MacBook Pro so can't do a regression test. -- 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=60185 --- Comment #7 from Callum Gare <callum@gare.au> --- Created attachment 81885 --> http://bugs.winehq.org/attachment.cgi?id=81885 An AutoIt (https://www.autoitscript.com/site/autoit/downloads/) script to automate checking if isetup-5.4.2.exe exits correctly However I did (with heavy Claude help) make an AutoIt script to automate checking if isetup-5.4.2.exe exits okay to assist in running a git bisect so hopefully if someone else has a working wine setup on Apple Silicon. ```bash wine AutoIt3.exe cancel-setup.au3 ``` -- 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 (1)
-
WineHQ Bugzilla