[Bug 35291] New: setcap on wine-preloader makes Hearthstone fail to start
http://bugs.winehq.org/show_bug.cgi?id=35291 Bug ID: 35291 Summary: setcap on wine-preloader makes Hearthstone fail to start Product: Wine Version: 1.7.9 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: yeled.nova(a)gmail.com Classification: Unclassified Hi, When a Linux capability is enabled for wine preloader, Hearthstone does not start. This bug at least affects ------------------------- Archlinux x64/Linux 3.12.6-1-ARCH/Wine 1.7.9/libcap 2.22 Ubuntu 13.10 x64/Linux 3.11.0-14-generic/Wine (PPA) 1.7.9/libcap 2.22 Steps to reproduce ------------------ # setcap 'cap_net_bind_service=+ep' /usr/bin/wine-preloader $ wine Hearthstone.exe -launch -uid hs_beta Get a message box that captions "Fatal error in gc" and says "GetThreadContext failed", click "OK" Another message box that captions "Wine program crash", and says "Internal errors - invalid parameters received", click "OK" The process turns to a zombie, kill it. Revert the capabilities, the program loads. # setcap '-r' /usr/bin/wine-preloader $ wine Hearthstone.exe -launch -uid hs_beta This issue persists over system reboots. It's not just setting CAP_NET_BIND_SERVICE causes the problem. From what I observed, this error occurs as long as any capablity is enabled. Note on getting debug trace --------------------------- Right now due to bug #33947, battle.net.exe requires dbghelp to be disabled, and Hearthstone.exe depends on it in order to play. However, directly running Hearthstone.exe is good enough to reproduce this bug. So I suggest anyone who wants to look into this problem to re-enable the debugger and run 'wine Hearthstone.exe -launch -uid hs_beta' to get a debug trace. -- 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=35291 --- Comment #1 from yeled.nova(a)gmail.com --- Created attachment 47067 --> http://bugs.winehq.org/attachment.cgi?id=47067 terminal output & +relay,+seh,+tid -- 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=35291 --- Comment #2 from yeled.nova(a)gmail.com --- Created attachment 47072 --> http://bugs.winehq.org/attachment.cgi?id=47072 "Hearthstone Beta Launcher.exe" output when setcap'ed. Thanks to oiaohm from the forum, I now have additional information. # setcap 'cap_net_bind_service=+ep' /usr/bin/wine-preloader $ wine "Hearthstone Beta Launcher.exe" gives
err:ntdll:RtlpWaitForCriticalSection section 0x710e94 "?" wait timed out in thread 0031, blocked by 002d, retrying (60 sec)
while # setcap '-r' /usr/bin/wine-preloader $ wine "Hearthstone Beta Launcher.exe" doesn't. Running "Hearthstone.exe" doesn't show this line of error. I think this might be helpful to this bug, or it's the lead to a new bug. Thanks. -- 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=35291 --- Comment #3 from yeled.nova(a)gmail.com --- This might be relevant and useful that when cap_net_bind_service is on, "Hearthstone Beta Launcher.exe" gives many "err:wininet:open_http_connection create_netconn failed: 12029". Thanks. -- 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=35291 Frédéric Delanoy <frederic.delanoy(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://us.battle.net/hearth | |stone/en/ CC| |frederic.delanoy(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=35291 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht(a)gmx.net, | |nerv(a)dawncrow.de Summary|setcap on wine-preloader |setcap on wine-preloader |makes Hearthstone fail to |causes application problems |start |(Hearthstone, | |ElsterFormular) Ever confirmed|0 |1 --- Comment #4 from André H. <nerv(a)dawncrow.de> --- Similar behavior for ElsterFormular, with sudo setcap cap_net_raw+epi /usr/bin/wine-preloader it fails to transmit data to the server (same for authenticated and non-authenticated tests) This might simply be a kernel bug, but might as well be some bad expectations in Wines code... I'll CC AF for professional analysis ;) -- 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.
https://bugs.winehq.org/show_bug.cgi?id=35291 --- Comment #5 from André H. <nerv(a)dawncrow.de> --- I have no time to test it, but Sebastian found a good solution for maybe the same problem: https://bugs.winehq.org/show_bug.cgi?id=26256#c10 Would someone please give it a try? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=35291 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|setcap on wine-preloader |setcap on wine-preloader |causes application problems |causes application problems |(Hearthstone, |(Hearthstone) |ElsterFormular) | --- Comment #6 from André H. <nerv(a)dawncrow.de> --- ElsterFormular seems not to be affected anymore -- 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)
-
wine-bugs@winehq.org