Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT crashes with "MVAR 0 (Ts) cannot be expanded with type 0x1e" when compiling monotouch_System.Core_xunit-test.dll #13455

Closed
akoeplinger opened this issue Mar 14, 2019 · 5 comments
Assignees

Comments

@akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Mar 14, 2019

Steps to Reproduce

  1. Run [xUnit] Mono SystemCoreXunit - iOS Unified 64-bits - device - Debug on xamarin-macios mono-2019-02 branch
  2. The project build fails with an AOT issue.

Current Behavior

  MONO_PATH=/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/3-Build /Users/alexander/dev/xamarin-macios/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt -O=-float32  --aot=mtriple=arm64-ios,data-outfile=/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/arm64/monotouch_System.Core_xunit-test.aotdata.arm64,static,asmonly,direct-icalls,full,soft-debug,dwarfdebug,no-direct-calls,outfile=/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/arm64/monotouch_System.Core_xunit-test.dll.s "/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/3-Build/monotouch_System.Core_xunit-test.dll" (TaskId:54)
  Mono Ahead of Time compiler - compiling assembly /Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/3-Build/monotouch_System.Core_xunit-test.dll (TaskId:54)
  AOTID 266E41A7-4919-5054-EA78-FF2AAB98628C (TaskId:54)
  Could not load signature of System.Linq.Expressions.Tests.ArrayArrayLengthTests:GenerateGenericWithStructRestrictionArrayArray due to: MVAR 0 (Ts) cannot be expanded with type 0x1e (TaskId:54)
  Could not load signature of System.Linq.Expressions.Tests.ArrayArrayLengthTests:CheckExceptionGenericWithStructRestrictionArrayArrayLength due to: MVAR 0 (Ts) cannot be expanded with type 0x1e (TaskId:54)
  Could not load signature of System.Linq.Expressions.Tests.ArrayLengthTests:GenerateGenericWithStructRestrictionArray due to: MVAR 0 (Ts) cannot be expanded with type 0x1e (TaskId:54)
  * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-02/ios/release/mono/mini/aot-compiler.c:4106, condition `is_ok (error)' not met, function:add_extra_method_with_depth, VAR 0 (Ts) cannot be expanded with type 0x13 (TaskId:54)
   (TaskId:54)
   (TaskId:54)
MTOUCH : error MT3001: Could not AOT the assembly '/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/obj/iPhone/Debug64/mtouch-cache/3-Build/monotouch_System.Core_xunit-test.dll' [/Users/alexander/dev/xamarin-macios/xamarin-macios/tests/xharness/tmp-test-dir/SystemCoreXunit215/SystemCoreXunit.csproj]

Expected Behavior

It works.

On which platforms did you notice this

[ X ] macOS
[ ] Linux
[ ] Windows

Version Used: 2019-02

@marek-safar

This comment has been minimized.

Copy link
Member

@marek-safar marek-safar commented Mar 14, 2019

@akoeplinger

This comment has been minimized.

Copy link
Member Author

@akoeplinger akoeplinger commented Mar 14, 2019

It also happens with monotouch_System.Numerics_xunit-test.dll but there it just crashes with:

  * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-02/ios/release/mono/mini/aot-compiler.c:4106, condition `is_ok (error)' not met, function:add_extra_method_with_depth, VAR 0 (T) cannot be expanded with type 0x13 (TaskId:65)
@vargaz vargaz self-assigned this Mar 14, 2019
@vargaz

This comment has been minimized.

Copy link
Member

@vargaz vargaz commented Mar 16, 2019

It doesn't seem to happen with master, maybe some error checking was added instead of asserting.

@vargaz

This comment has been minimized.

Copy link
Member

@vargaz vargaz commented Mar 19, 2019

Can't reproduce this with xamarin-macios master. I used the .sln, SystemCoreXunit, Debug|iPhone configuration.

@lewurm

This comment has been minimized.

Copy link
Member

@lewurm lewurm commented Mar 19, 2019

@vargaz this is on xamarin-macios/mono-2019-02 integration branch

vargaz added a commit to vargaz/mono that referenced this issue Mar 21, 2019
akoeplinger added a commit that referenced this issue Mar 22, 2019
monojenkins added a commit to monojenkins/mono that referenced this issue Mar 22, 2019
akoeplinger added a commit that referenced this issue Mar 22, 2019
…3604)

* [aot] Avoid an assert which can happen in normal usage.

Fixes #13455.

* cleanup MonoError in add_extra_method_with_depth
jonpryor added a commit to xamarin/xamarin-android that referenced this issue Apr 24, 2019
Bumps to mono/api-snapshot@ae01378
Bumps to mono/reference-assemblies@e5173a5
Bumps to mono/bockbuild@d30329d
Bumps to mono/boringssl@3d87996
Bumps to mono/corefx@72f7d76
Bumps to mono/corert@1b7d4a1
Bumps to mono/helix-binaries@7e893ea
Bumps to mono/illinker-test-assets@f21ff68
Bumps to mono/linker@13d864e
Bumps to mono/llvm@1aaaaa5 [mono]
Bumps to mono/llvm@2c2cffe [xamarin-android]
Bumps to mono/NUnitLite@0029561
Bumps to mono/roslyn-binaries@0bbc9b4
Bumps to mono/xunit-binaries@8f6e62e

	$ git diff --shortstat 886c4901..e66c7667      # mono
        3597 files changed, 350850 insertions(+), 91128 deletions(-)
	$ git diff --shortstat 349752c464c5fc93b32e7d45825f2890c85c8b7d..2c2cffedf01e0fe266b9aaad2c2563e05b750ff4
	 240 files changed, 18562 insertions(+), 6581 deletions(-)

Context: dotnet/coreclr#22046

Fixes: CVE 2018-8292 on macOS
Fixes: http://work.devdiv.io/737323
Fixes: dotnet/corefx#33965
Fixes: dotnet/standard#642
Fixes: mono/mono#6997
Fixes: mono/mono#7326
Fixes: mono/mono#7517
Fixes: mono/mono#7750
Fixes: mono/mono#7859
Fixes: mono/mono#8360
Fixes: mono/mono#8460
Fixes: mono/mono#8766
Fixes: mono/mono#8922
Fixes: mono/mono#9418
Fixes: mono/mono#9507
Fixes: mono/mono#9951
Fixes: mono/mono#10024
Fixes: mono/mono#10030
Fixes: mono/mono#10038
Fixes: mono/mono#10448
Fixes: mono/mono#10735
Fixes: mono/mono#10735
Fixes: mono/mono#10737
Fixes: mono/mono#10743
Fixes: mono/mono#10834
Fixes: mono/mono#10837
Fixes: mono/mono#10838
Fixes: mono/mono#10863
Fixes: mono/mono#10945
Fixes: mono/mono#11020
Fixes: mono/mono#11021
Fixes: mono/mono#11021
Fixes: mono/mono#11049
Fixes: mono/mono#11091
Fixes: mono/mono#11095
Fixes: mono/mono#11123
Fixes: mono/mono#11138
Fixes: mono/mono#11146
Fixes: mono/mono#11202
Fixes: mono/mono#11214
Fixes: mono/mono#11317
Fixes: mono/mono#11326
Fixes: mono/mono#11378
Fixes: mono/mono#11385
Fixes: mono/mono#11478
Fixes: mono/mono#11479
Fixes: mono/mono#11488
Fixes: mono/mono#11489
Fixes: mono/mono#11527
Fixes: mono/mono#11529
Fixes: mono/mono#11596
Fixes: mono/mono#11603
Fixes: mono/mono#11613
Fixes: mono/mono#11623
Fixes: mono/mono#11663
Fixes: mono/mono#11681
Fixes: mono/mono#11684
Fixes: mono/mono#11693
Fixes: mono/mono#11697
Fixes: mono/mono#11779
Fixes: mono/mono#11809
Fixes: mono/mono#11858
Fixes: mono/mono#11895
Fixes: mono/mono#11898
Fixes: mono/mono#11898
Fixes: mono/mono#11965
Fixes: mono/mono#12182
Fixes: mono/mono#12193
Fixes: mono/mono#12218
Fixes: mono/mono#12235
Fixes: mono/mono#12263
Fixes: mono/mono#12307
Fixes: mono/mono#12331
Fixes: mono/mono#12362
Fixes: mono/mono#12374
Fixes: mono/mono#12402
Fixes: mono/mono#12421
Fixes: mono/mono#12461
Fixes: mono/mono#12479
Fixes: mono/mono#12479
Fixes: mono/mono#12552
Fixes: mono/mono#12603
Fixes: mono/mono#12747
Fixes: mono/mono#12831
Fixes: mono/mono#12843
Fixes: mono/mono#12881
Fixes: mono/mono#13030
Fixes: mono/mono#13284
Fixes: mono/mono#13297
Fixes: mono/mono#13455
Fixes: mono/mono#13460
Fixes: mono/mono#13478
Fixes: mono/mono#13479
Fixes: mono/mono#13522
Fixes: mono/mono#13607
Fixes: mono/mono#13610
Fixes: mono/mono#13610
Fixes: mono/mono#13639
Fixes: mono/mono#13672
Fixes: mono/mono#13834
Fixes: mono/mono#13878
Fixes: mono/mono#6352
Fixes: mono/monodevelop#6898
Fixes: xamarin/maccore#1069
Fixes: xamarin/maccore#1407
Fixes: xamarin/maccore#604
Fixes: xamarin/xamarin-macios#4984
Fixes: xamarin/xamarin-macios#5289
Fixes: xamarin/xamarin-macios#5363
Fixes: xamarin/xamarin-macios#5381
Fixes: https://issuetracker.unity3d.com/issues/editor-crashes-with-g-logv-when-entering-play-mode-with-active-flowcanvas-script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.