http://bugs.winehq.org/show_bug.cgi?id=32725
Bug #: 32725 Summary: VC runtime functions crash when called from reloaded library in a thread Product: Wine Version: 1.3.24 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: most@museresearch.com Classification: Unclassified
Created attachment 43181 --> http://bugs.winehq.org/attachment.cgi?id=43181 msvcrt-dll-problem.zip
Assume WHAT.DLL is a windows DLL with static MSVCRT linkage. If WHAT.DLL is unloaded and reloaded, it's C runtime functions like std::cout can crash when called from a thread.
According to Piotr Caban (piotr dot caban at gmail dot com) "The crash is caused by incomplete FlsFree implementation. There's a comment in it's code that says what needs to be added: /* FIXME: add equivalent of ThreadZeroTlsCell here */"
The crash is repeatable with the attached example winelib program (captain.exe) and windows DLL (what.dll). Code for the compiled what.dll is included. An included README file describes the contents. 'make test' demonstrates the problem.
http://bugs.winehq.org/show_bug.cgi?id=32725
Michael Ost most@museresearch.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |most@museresearch.com
http://bugs.winehq.org/show_bug.cgi?id=32725
--- Comment #1 from Michael Ost most@museresearch.com 2013-01-15 13:39:01 CST --- The crash does not happen in windows.
http://bugs.winehq.org/show_bug.cgi?id=32725
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com Component|msvcrt |kernel32
http://bugs.winehq.org/show_bug.cgi?id=32725
Simon swdevelop1981@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |swdevelop1981@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=32725
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=32725
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #2 from super_man@post.com --- Still crashes 1.7.53
https://bugs.winehq.org/show_bug.cgi?id=32725
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #3 from winetest@luukku.com --- (In reply to super_man from comment #2)
Still crashes 1.7.53
Still crashing wine 1.9.16-git and staging 1.9.16
https://bugs.winehq.org/show_bug.cgi?id=32725
--- Comment #4 from Gijs Vermeulen gijsvrm@gmail.com --- Running the provided captain.exe seems to work with wine-6.7, could you confirm?