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 for Bug 34078 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 12972 [details]
simple project demonstrating problem
Have a number of F# / C# programs that run fine on OS X but then fail on recent Linux mono VMs (4.0.x). Had updated source, rebuilt, but seems consistent in the 4.0.x codebase and may be present in 4.2.x.
Any sort of comparison of a struct causes a failure (here am comparing 2 instances of a struct class called Tenor)
Unknown immediate size
UNREACHABLE executed at MCTargetDesc/X86BaseInfo.h:562!
at <unknown> <0xffffffff>
at TestCLRIssue.Tenor.Equals (object,System.Collections.IEqualityComparer) <0x00019>
at TestCLRIssue.Main.main (string) <0x0028f>
at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>
This simple exe runs fine without LLVM (no --llvm). Note that it does not matter whether the struct is defined in F# or in a C# codebase. Doing a comparison between two structs will cause the CLR to fall over.
Note that this is a Linux / LLVM issue and not an issue on OS X.
Including the project as a tar attachment.