Bug 41948 - Bitcode backend throws InvalidCastException on runtime-invoke.cs's test_0_string_ctor
Summary: Bitcode backend throws InvalidCastException on runtime-invoke.cs's test_0_str...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: 4.5.X
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alexander Kyte
URL:
Depends on:
Blocks:
 
Reported: 2016-06-17 17:56 UTC by Alexander Kyte
Modified: 2016-06-30 23:42 UTC (History)
3 users (show)

Tags: bitcode_mobile_static
Is this bug a regression?: ---
Last known good build:

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 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.

Related Links:
Status:
RESOLVED FIXED

Description Alexander Kyte 2016-06-17 17:56:17 UTC
The test throws 

runtime-invoke.exe
=============== runtime-invoke.exe.stdout ===============
TEST: System.String ToString() System.String Test()
A
Test

=============== EOF ===============
=============== runtime-invoke.exe.stderr ===============

Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid.
  at Tests.test_0_string_ctor () <0x10cc54270 + 0x001d4> in <filename unknown>:0
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x10c07f010 + 0x00103> in <filename unknown>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x10c07f010 + 0x00263> in <filename unknown>:0
  at TestDriver.RunTests (System.Type type, System.String[] args) <0x10cc5bb60 + 0x00976> in <filename unknown>:0
  at Tests.Main (System.String[] args) <0x10cc53600 + 0x0003f> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception trying to figure out what went wrong

=============== EOF ===============
Comment 1 Zoltan Varga 2016-06-30 23:42:09 UTC
Fixed in mono master.