Bug 34078 - LLVM / native stack trace failure on trivial F# exe comparing structures (general & fundamental problem in codegen)
Summary: LLVM / native stack trace failure on trivial F# exe comparing structures (gen...
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 4.0.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-18 19:27 UTC by Jonathan Shore
Modified: 2015-09-19 08:53 UTC (History)
2 users (show)

Tags: JIT, LLVM
Is this bug a regression?: ---
Last known good build:


Attachments
simple project demonstrating problem (8.07 KB, application/x-bzip2)
2015-09-18 19:27 UTC, Jonathan Shore
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Jonathan Shore 2015-09-18 19:27:59 UTC
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!
Stacktrace:

  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.