Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Recent builds, up to and including 3.0.12, are crashing when running xunit. The crash doesn't seem to be specific to the test (it seems to be random), but certain assemblies cause it more than others so I'm guessing some kind of race condition is at work.
I've attached a file with a simple repro - just extract it and run go.sh and it will run the xunit commandline runner and execute a set of tests (from the Nancy project - http://nancyfx.org) - it doesn't always crash, but seems to do so probably 4 out of 5 times. The crash is after running a random test, but the output is always:
* Assertion at mini-generic-sharing.c:285, condition `subclass->image == image' not met
Debug info from gdb:
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
The source for these tests is pretty innocuous, but it can be found here:
There are other assemblies which also crash it, and some that always seem to work, but the forms test one seems to reproduce the bug most reliably. This is currently breaking our CI builds on Mono 3.x, but it works fine on Mono 2.x (we CI build on .net, mono 2.x and mono 3.x for completeness)
Created attachment 4167 [details]
Simple repro case
If I add "-O=-gshared" to the mono command line it *seems* to make the problem go away, but the fact it crashes inside mono, and relatively randomly, still suggests to me this is a bug.
Fixed in ac8695db9fe1eeccf579964af5a4b8acd7deeceb. Thanks for the testcase.
*** Bug 11216 has been marked as a duplicate of this bug. ***