Bug 10539 - ExecutionEngineException on ClosedOverNullReferenceInstanceMethod test (mscorlib)
Summary: ExecutionEngineException on ClosedOverNullReferenceInstanceMethod test (mscor...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 10.5.99 (Xcode 8.3 previews)
Hardware: PC Mac OS
: Normal minor
Target Milestone: Future Cycle (TBD)
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2013-02-21 11:55 UTC by Marek Safar
Modified: 2017-03-20 11:22 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: No
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 Developer Community or GitHub 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 NOT_ON_ROADMAP

Description Marek Safar 2013-02-21 11:55:06 UTC
This is when running corlib DelegateTest::ClosedOverNullReferenceInstanceMethod on device

ClosedOverNullReferenceInstanceMethod : System.ExecutionEngineException : Attempting to JIT compile method '(wrapper delegate-invoke) <Module>:invoke_void__this___int (int)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
2013-02-21 13:13:33.639 mscorlibtests[2849:907] 		  at MonoTests.System.DelegateTest.ClosedOverNullReferenceInstanceMethod () [0x00069] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/Test/System/DelegateTest.cs:1069 
2013-02-21 13:13:33.644 mscorlibtests[2849:907] 		  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2013-02-21 13:13:33.648 mscorlibtests[2849:907] 		  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0005a] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:223
Comment 1 Zoltan Varga 2013-03-08 19:16:48 UTC
These tests have now been disabled until this is fixed.

The problem is that these tests require specialized delegate-invoke wrappers and those are not currently generated by the AOT compiler.
Comment 3 PJ 2013-11-19 16:44:53 UTC
This bug was targeted for a past milestone, moving to the next non-hotfix active milestone.
Comment 4 GouriKumari 2016-01-11 22:14:50 UTC
Based on comment #!, I am moving this message to "far future".
Comment 5 Vincent Dondain [MSFT] 2017-02-28 21:10:45 UTC
@marek, @zoltan Is this still happening? Are those tests still disabled / failing?

If so please set the bug to confirmed otherwise let us close this.
Comment 6 Vincent Dondain [MSFT] 2017-03-01 17:29:33 UTC
Found the test!

This is still happening:

(tried on iOS 10.3 device with this environment https://gist.github.com/VincentDondain/63f2e75d965c34a68debd564cd235ee5)

2017-03-01 12:19:48.055 mscorlibtests[1794:590901] 	[PASS] DelegateTest.ClosedOverNullReferenceStaticMethod
2017-03-01 12:19:48.061 mscorlibtests[1794:590901] Tests run: 1 Passed: 1 Inconclusive: 0 Failed: 0 Ignored: 0
2017-03-01 12:19:49.087 mscorlibtests[1794:590901] [Runner executing:	MonoTests.System.DelegateTest.ClosedOverNullReferenceInstanceMethod]
2017-03-01 12:19:49.087 mscorlibtests[1794:590901] [MonoTouch Version:	10.5.0]
2017-03-01 12:19:49.088 mscorlibtests[1794:590901] [Assembly:	Xamarin.iOS.dll (64 bits)]
2017-03-01 12:19:49.088 mscorlibtests[1794:590901] [GC:	sgen]
2017-03-01 12:19:49.089 mscorlibtests[1794:590901] [iPhone:	iOS v10.3]
2017-03-01 12:19:49.091 mscorlibtests[1794:590901] [Device Name:	iPhone 7]
2017-03-01 12:19:49.091 mscorlibtests[1794:590901] [Device UDID:	unknown]
2017-03-01 12:19:49.092 mscorlibtests[1794:590901] [Device Locale:	en_US]
2017-03-01 12:19:49.093 mscorlibtests[1794:590901] [Device Date/Time:	3/1/2017 12:19:49 PM]
2017-03-01 12:19:49.093 mscorlibtests[1794:590901] [Bundle:	com.xamarin.mscorlibtests]
2017-03-01 12:19:49.113 mscorlibtests[1794:590901] 	[FAIL] DelegateTest.ClosedOverNullReferenceInstanceMethod : System.ExecutionEngineException : Attempting to JIT compile method '(wrapper delegate-invoke) <Module>:invoke_closed_over_null_void ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
2017-03-01 12:19:49.114 mscorlibtests[1794:590901] 		  at MonoTests.System.DelegateTest.ClosedOverNullReferenceInstanceMethod () [0x00033] in /Users/vidondai/Documents/xi-master/xamarin-macios/external/mono/mcs/class/corlib/Test/System/DelegateTest.cs:1054 
2017-03-01 12:19:49.114 mscorlibtests[1794:590901] 		  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2017-03-01 12:19:49.114 mscorlibtests[1794:590901] 		  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
2017-03-01 12:19:49.119 mscorlibtests[1794:590901] Tests run: 1 Passed: 0 Inconclusive: 0 Failed: 1 Ignored: 0
Comment 7 Zoltan Varga 2017-03-03 17:45:15 UTC
These tests are marked NotWorking on mobile, and the problem is not expected to be fixed in the near future.
Comment 8 Zoltan Varga 2017-03-20 11:22:42 UTC
-> NOT_ON_ROADMAP.