http://bugs.winehq.org/show_bug.cgi?id=25192
Summary: 'fatal error in gc: collecting from unknown thread' with Mono Product: Wine Version: 1.3.7 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: sam@robots.org.uk
Created an attachment (id=31979) --> (http://bugs.winehq.org/attachment.cgi?id=31979) test case script
I'm trying to run Wix, a .NET application, on Wine. In order to do this I am using the mono-gtksharp installer from http://ftp.novell.com/pub/mono/archive/2.8/windows-installer/9/mono-2.8-gtksharp-2.12.10-win32-9.exe.
When building an installer, I get the following error:
fatal error in gc Collecting from unknown thread
Some digging around reveals that this message comes from Mono's use of the Boehm garbage collector. There is a bug open in their tracker that talks about the error https://bugzilla.novell.com/show_bug.cgi?id=323578; they seem to consider it a bug in Wine.
I'll attach a shell script that reproduces this from scratch, almost automatically. You just have to download Wix3.msi and drop it in the same directory as test.sh.
http://bugs.winehq.org/show_bug.cgi?id=25192
--- Comment #1 from Sam Morris sam@robots.org.uk 2010-11-16 10:53:38 CST --- Whoops, forgot to describe the test script outcomes.
If the bug is reproduced, you will see a stack trace from Wix and get a 'fatal error in gc' MessageBox.
If the bug is not reproduced, you will see a grey dialog containing a button labelled 'argh'.
http://bugs.winehq.org/show_bug.cgi?id=25192
Sam Morris sam@robots.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #31979|application/x-shellscript |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=25192
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2010-11-16 11:37:23 CST --- It's well-understood. If Mono's garbage collector is run from a thread that existed before Mono was loaded on windows (or wine), it will assert. This is impossible to fix on the Wine side.
Creating a test case that demonstrates the bug on Windows should be fairly simple, but it needs to use the embedding API.
http://bugs.winehq.org/show_bug.cgi?id=25192
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=25192
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2011-01-27 22:48:55 CST --- Atmosphir, which comes with its own bundled unity3d player, which comes with its own bundled mono, also seems to exhibit this problem; I only saw it once in ten installs, I think right after the downloader started the launcher.
http://bugs.winehq.org/show_bug.cgi?id=25192
--- Comment #4 from Austin English austinenglish@gmail.com 2011-02-01 18:08:22 CST --- I see this running the ARES demo with mono28: http://www.gamershell.com/download_68302.shtml
http://bugs.winehq.org/show_bug.cgi?id=25192
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Juan Lang juan_lang@yahoo.com 2011-02-01 18:15:00 CST --- Confirmed by multiple comments. If I understand comment 2 correctly, though, this needs to be fixed somehow in Mono?
http://bugs.winehq.org/show_bug.cgi?id=25192
Jaime jskartman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jskartman@gmail.com
--- Comment #6 from Jaime jskartman@gmail.com 2011-02-06 04:59:01 CST --- Distant Worlds (a .NET 3.5 game) is affected too. Trying to run this game after
winetricks mono28 winetricks forcemono
shows this error.
http://bugs.winehq.org/show_bug.cgi?id=25192
A Wine user RandomAccountName@mail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |RandomAccountName@mail.com
http://bugs.winehq.org/show_bug.cgi?id=25192
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Component|-unknown |mscoree
http://bugs.winehq.org/show_bug.cgi?id=25192
--- Comment #7 from Austin English austinenglish@gmail.com 2011-02-23 18:14:13 CST --- Vincent's patches: http://source.winehq.org/patches/data/71602 http://source.winehq.org/patches/data/71603 http://source.winehq.org/patches/data/71604
seem to help for me.
http://bugs.winehq.org/show_bug.cgi?id=25192
--- Comment #8 from Sam Morris sam@robots.org.uk 2011-05-11 13:19:19 CDT --- My test script no longer reproduces this as of Wine 1.3.19.
http://bugs.winehq.org/show_bug.cgi?id=25192
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Dan Kegel dank@kegel.com 2011-06-09 16:14:06 CDT --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=25192
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2011-06-10 13:18:01 CDT --- Closing bugs fixed in 1.3.22.
https://bugs.winehq.org/show_bug.cgi?id=25192
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d6582ae8bd3e5ffe526407c2b2d | |6fe0b572c28f0 URL| |http://www.gamershell.com/d | |ownload_68302.shtml CC| |focht@gmx.net