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@winehq.org Reporter: yeled.nova@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.