http://bugs.winehq.org/show_bug.cgi?id=25583
Summary: Starcraft II fails to start Product: Wine Version: 1.3.8 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: spectre-nvnews@yopmail.com CC: marcus@jet.franken.de
Created an attachment (id=32571) --> (http://bugs.winehq.org/attachment.cgi?id=32571) Terminal Output
After upgrading from wine-1.3.7 to wine-1.3.8 Starcraft II does no longer start.
Git bisecting says: da8c179d61f0ccc679b68b1ecca9f10b4334ae99 is the first bad commit ntdll: Fixed file view mapping in regards to no-exec.
Terminal output is attached.
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #1 from Marcus Meissner marcus@jet.franken.de 2010-12-21 09:51:27 CST --- can you also test current GIT?
If you run Starcraft II.exe from a nonexec filesystem, this will no longer work after my patch.
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #2 from spectre-nvnews@yopmail.com 2010-12-21 10:09:56 CST --- Current git yields the same results. Does not start anymore.
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #3 from Marcus Meissner marcus@jet.franken.de 2010-12-21 10:16:40 CST --- is there a "noexec" warning now?
is the binary on a noexec mounted filesystem?
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #4 from spectre-nvnews@yopmail.com 2010-12-21 11:10:13 CST --- Yes, wine does complain about noexec filesystems now. Thus, I removed the noexec flag one by one from every filesystem (there has not been one on the partition where the StarCraft executable is). The last one I tried and which kind of solved it (Starcraft launches again) was the noexec flag on /tmp. But to be honest I'd like to keep this flag.
http://bugs.winehq.org/show_bug.cgi?id=25583
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |wylda@volny.cz Component|-unknown |ntdll
http://bugs.winehq.org/show_bug.cgi?id=25583
Neil Skrypuch ns03ja@brocku.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ns03ja@brocku.ca
--- Comment #5 from Neil Skrypuch ns03ja@brocku.ca 2010-12-27 19:14:49 CST --- I can confirm this bug, Starcraft II no longer starts up as of 1.3.8 (1.3.7 was fine). I have noexec on /tmp as well. Interestingly enough, even if I remove the default Z: drive mapping (so /tmp should no longer be visible), Starcraft II still fails to start. I've also tested wine-1.3.10-48-g1288078, with the same results.
Removing noexec from /tmp allows Starcraft II to start up again, which is curious, as I still have other filesystems mounted noexec (/proc, /sys, several ISOs via loopback).
In the newer version of Wine, I see several of these:
err:virtual:map_file_into_view failed to set 00000007 protection on file map, noexec filesystem? err:virtual:NtMapViewOfSection map_file_into_view 0x4410000 1000 000000000 failed
In an attempt to find the files in question, I straced Wine, finding this:
[pid 21465] mmap2(0x4410000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MA P_FIXED, 23, 0) = -1 EPERM (Operation not permitted) [pid 21465] write(2, "err:virtual:map_file_into_view f"..., 97err:virtual:map_fi le_into_view failed to set 00000007 protection on file map, noexec filesystem? ) = 97
For fds 19, 22 and 23, which resolve to:
[pid 21465] open("/home/neil/wine-git/dlls/dbghelp/dbghelp.dll.so", O_RDONLY) = 23 [pid 21465] open("/home/neil/.wine-sc2/dosdevices/c:/users/neil/My Documents/Sta rCraft II/2010-12-27 19.27.31 i7-920 Crash", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_D IRECTORY|O_CLOEXEC) = 22
I'm not sure about fd 19, because I couldn't find a corresponding open() call from the right process (although there are several from other processes).
At this point, I ran out of ideas, because none of those files reside on a noexec filesystem. Hopefully this is useful to someone though...
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2010-12-28 03:16:50 CST --- If the binary has shared sections we need to create a file in /tmp to make it shareable across processes.
http://bugs.winehq.org/show_bug.cgi?id=25583
Dennis Schridde devurandom@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |devurandom@gmx.net
--- Comment #7 from Dennis Schridde devurandom@gmx.net 2010-12-31 04:17:04 CST --- (In reply to comment #6)
If the binary has shared sections we need to create a file in /tmp to make it shareable across processes.
The debug output on the console should say something about this and the path to the (temp) file. I ran into the same problem with Baldur's Gate, and until reading this bugreport it was totally shrouded in mist why Wine would see any noexec filesystem if only /tmp was mounted this way.
Further: Such critical errors should be outputted using a dialogue box, too. (I first only saw the application not starting, because I ran it from a file browser, not from a console.)
http://bugs.winehq.org/show_bug.cgi?id=25583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2011-01-28 12:31:11 CST --- Should be fixed by 8dbd06a1f8ab3f89e46be62e05a51f4b15f20b1c.
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #9 from Neil Skrypuch ns03ja@brocku.ca 2011-01-28 20:46:18 CST --- Confirmed fixed with wine-1.3.12-174-g58786dc.
http://bugs.winehq.org/show_bug.cgi?id=25583
--- Comment #10 from spectre-nvnews@yopmail.com 2011-01-29 00:17:21 CST --- wine-1.3.12-174-g58786dc does not seem to fix it for me. StarCraft 2 still fails to launch if /tmp is mounted with noexec (works fine if there is no noexec). But there are no errors in the console anymore complaining about noexec.
http://bugs.winehq.org/show_bug.cgi?id=25583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2011-02-04 13:21:06 CST --- Closing bugs fixed in 1.3.13.
http://bugs.winehq.org/show_bug.cgi?id=25583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.2.x
http://bugs.winehq.org/show_bug.cgi?id=25583
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.2.x |---
https://bugs.winehq.org/show_bug.cgi?id=25583
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8dbd06a1f8ab3f89e46be62e05a | |51f4b15f20b1c CC| |focht@gmx.net Component|ntdll |wineserver Regression SHA1| |da8c179d61f0ccc679b68b1ecca | |9f10b4334ae99