Bug 15508 - [iOS] monotouch-test _gsharedvt : ContextTest fails on iOS7 device
Summary: [iOS] monotouch-test _gsharedvt : ContextTest fails on iOS7 device
Status: VERIFIED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: 7.0.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: 7.0.3 (connection)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-10-18 20:02 UTC by GouriKumari
Modified: 2013-10-21 16:23 UTC (History)
2 users (show)

Tags:
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 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:
VERIFIED INVALID

Comment 1 Sebastien Pouliot 2013-10-19 12:13:12 UTC
From what I'm seeing (let me know if I'm wrong) I can duplicate this when I turn *off* (not on) the "Enable generic value type sharing" option.

And that's "normal" as this option (enabled by default) was created to fix this failure you're seeing, i.e.

System.ExecutionEngineException : Attempting to JIT compile method 'NUnit.Framework.Constraints.Constraint:Matches<int> (NUnit.Framework.Constraints.ActualValueDelegate`1<int>)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

I cannot really adapt the test cases to "accept" this since it would not catch any regression in the "gsharedvt" feature. If you want to run this configuration you'll need to exclude any System.ExecutionEngineException manually.


Can you include the description (or a link to a document) of the build configuration for `monotouch-test_gsharedvt` (and others) ? I have assumed it means it's *on* (not *off*).
Comment 2 GouriKumari 2013-10-21 16:14:01 UTC
Build Configuration and test results for monotouch-test_gsharedvt

Build Config : Debug/Release
--aot-options=-O=-gsharedvt  added as additional mtouch arguments. I believe "-O" option will turn off the generic share option, even if  "enable genric value type sharing checkbox" is enabled.
Context Test fails for both configurations.

Build Config : Debug/Release
Context Test passed on removing --aot-options=-O=-gsharedvt from additional mtouch arguments and enabling genric value type sharing checkbox only.

Therefore, as mentioned in comment #1, the bug appears, if enable generic value type sharing is turned off.

Supplemental info: 
Release config
http://screencast.com/t/X5IMwGXvi
http://screencast.com/t/dHjCIjD4T1NZ

Test Env:
Xamarin.iOS
Version: 7.0.3.214 (Trial Edition)
Hash: 07fb1cd

iPhone4s 7.0.2
Comment 3 Sebastien Pouliot 2013-10-21 16:20:01 UTC
> I believe "-O" option will turn off

Close:
`-O=` is to specify optimizations
`-gsharedvt` means turn it off (`-`) while
`gsharedvt` would turn it on
Comment 4 GouriKumari 2013-10-21 16:23:57 UTC
Oh okay :). Thanks Sebastien. 

I will close the bug as verified invalid.