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

Convert all remaining tests in the Loader subtree to the merged model #92407

Merged
merged 19 commits into from
Oct 1, 2023

Fix LLVAM AOT crash when compiling the genmeth.dll assembly

c2eb64d
Select commit
Loading
Failed to load commit list.
Merged

Convert all remaining tests in the Loader subtree to the merged model #92407

Fix LLVAM AOT crash when compiling the genmeth.dll assembly
c2eb64d
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_Mono) failed Oct 1, 2023 in 49m 38s

Build maccatalyst-x64 Release AllSubsets_Mono failed

Annotations

Check failure on line 252 in src/mono/msbuild/apple/build/AppleBuild.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_Mono)

src/mono/msbuild/apple/build/AppleBuild.targets#L252

src/mono/msbuild/apple/build/AppleBuild.targets(252,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Precompiling failed for /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/System.Private.CoreLib.dll with exit code 1.
LLVM ERROR: Cannot select: 0x7fc09dcb9800: v16i8 = X86ISD::PSHUFB 0x7fc09dcb6d80, 0x7fc09df161c0
  0x7fc09dcb6d80: v16i8,ch = load<(load (s128) from %ir.55, align 1)> 0x7fc09c706a60, 0x7fc09db4c230, undef:i64
    0x7fc09db4c230: i64 = add 0x7fc09df16f50, 0x7fc09dd79b60
      0x7fc09df16f50: i64,ch = CopyFromReg 0x7fc09c706a60, Register:i64 %46
        0x7fc09dd2f1b0: i64 = Register %46
      0x7fc09dd79b60: i64,ch = CopyFromReg 0x7fc09c706a60, Register:i64 %39
        0x7fc09df160e0: i64 = Register %39
    0x7fc09dcb9100: i64 = undef
  0x7fc09df161c0: v16i8,ch = load<(load (s128) from constant-pool)> 0x7fc09c706a60, 0x7fc09dcb8ca0, undef:i64
    0x7fc09dcb8ca0: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<<16 x i8> <i8 15, i8 14, i8 13, i8 12, i8 11, i8 10, i8 9, i8 8, i8 7, i8 6, i8 5, i8 4, i8 3, i8 2, i8 1, i8 0>> 0
      0x7fc09db4c1c0: i64 = TargetConstantPool<<16 x i8> <i8 15, i8 14, i8 13, i8 12, i8 11, i8 10, i8 9, i8 8, i8 7, i8 6, i8 5, i8 4, i8 3, i8 2, i8 1, i8 0>> 0
    0x7fc09dcb9100: i64 = undef
In function: corlib_System_SpanHelpers_Reverse_byte__uintptr
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/llc -march=x86-64 -mcpu=generic -enable-implicit-null-checks -disable-fault-maps -asm-verbose=false -mtriple=x86_64-apple-ios13.5-macabi -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=_mono_aot_corlib_eh_frame -disable-tail-calls -no-x86-call-frame-opt -relocation-model=static -filetype=obj -o /Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll-llvm.o /Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll.s.opt.bc
1.	Running pass 'Function Pass Manager' on module '/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll.s.opt.bc'.
2.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@corlib_System_SpanHelpers_Reverse_byte__uintptr'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc                      0x00000001060032c7 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 414423
1  llc                      0x0000000106002258 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 410216
2  llc                      0x0000000106003920 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 416048
3  libsystem_platform.dylib 0x00007ff811879dfd _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370286834208
5  libsystem_c.dylib        0x00007ff8117afd24 abort + 123
6  llc                      0x0000000105f4b0b1 llvm::cl::opt<bool, false, llvm::cl::parser<bool>>::setCallback(std::__1::function<void (bool const&)>) + 126289
7  llc                      0x0000000105e9ad4a llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1746298
8  llc                      0x0000000105e99cbd llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1742061
9  llc                      0x00000001048851be
10 llc                      0x0000000105e9038f llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1702847
11 llc                      0x0000000105e8f938 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1700200
12 llc                      0x0000000105e8ed52 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1697154
13 llc                      0x0000000105e8c767 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1687447
14 llc                      0x0000000104877a10
15 llc                      0x00000001054ad94b llvm::Pass* llvm::callDefaultCtor<llvm::MachineDominatorTree, true>() + 147083
16 llc                      0x00000001058ce1f8 llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 163000
17 llc                      0x00000001058d43ac llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 188012
18 llc                      0x00000001058ce815 llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 164565
19 llc                      0x0000000104720078
20 llc                      0x000000010471da0f
21 dyld                     0x00000001080ba52e start + 462
AOT of image /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/System.Private.CoreLib.dll failed.
Mono Ahead of Time compiler - compiling assembly /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/System.Private.CoreLib.dll
AOTID 2C041B53-AFF7-8B5B-E3A3-67E3F2EF7BEF
Executing opt: "/Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/opt" -f -disable-tail-calls -passes="default<O2>,place-safepoints" -spp-all-backedges -o "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll.s.opt.bc" "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll.s.bc"
Executing llc: "/Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/llc"  -march=x86-64 -mcpu=generic -enable-implicit-null-checks -disable-fault-maps -asm-verbose=false -mtriple=x86_64-apple-ios13.5-macabi -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=_mono_aot_corlib_eh_frame -disable-tail-calls -no-x86-call-frame-opt -relocation-model=static -filetype=obj -o "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll-llvm.o" "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/System.Private.CoreLib.dll.s.opt.bc"

Check failure on line 252 in src/mono/msbuild/apple/build/AppleBuild.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-extra-platforms (Build maccatalyst-x64 Release AllSubsets_Mono)

src/mono/msbuild/apple/build/AppleBuild.targets#L252

src/mono/msbuild/apple/build/AppleBuild.targets(252,5): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Precompiling failed for /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/aot-instances.dll with exit code 1.
Unable to compile method 'void System.Runtime.Serialization.SerializationGuard:<ThrowIfDeserializationInProgress>g__ThrowIfDeserializationInProgress|0_0 (System.Runtime.Serialization.SerializationInfo,string,int&)' due to: 'Method has zero rva'.
LLVM ERROR: Cannot select: 0x7f9ef8d6a7a0: v16i8 = X86ISD::PSHUFB 0x7f9ef8dff300, 0x7f9ef8dfaaf0
  0x7f9ef8dff300: v16i8,ch = load<(load (s128) from constant-pool)> 0x7f9efc4809b0, 0x7f9ef8eea0d0, undef:i64
    0x7f9ef8eea0d0: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<<16 x i8> <i8 1, i8 2, i8 4, i8 8, i8 16, i8 32, i8 64, i8 -128, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>> 0
      0x7f9ef8d36680: i64 = TargetConstantPool<<16 x i8> <i8 1, i8 2, i8 4, i8 8, i8 16, i8 32, i8 64, i8 -128, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>> 0
    0x7f9ef8e35e70: i64 = undef
  0x7f9ef8dfaaf0: v16i8 = bitcast 0x7f9ef8d6a6c0
    0x7f9ef8d6a6c0: v2i64 = X86ISD::UNPCKL 0x7f9ef8dff760, 0x7f9ef8e02880
      0x7f9ef8dff760: v2i64 = bitcast 0x7f9ef8dfa770
        0x7f9ef8dfa770: v16i8 = and 0x7f9ef8d367d0, 0x7f9ef8f00660
          0x7f9ef8d367d0: v16i8 = bitcast 0x7f9ef8d35c00
            0x7f9ef8d35c00: v8i16 = X86ISD::VSRLI 0x7f9ef8e0b700, TargetConstant:i8<4>
              0x7f9ef8e0b700: v8i16 = bitcast 0x7f9ef8eebc70
                0x7f9ef8eebc70: v16i8,ch = load<(load (s128) from %ir.59, align 1)> 0x7f9efc4809b0, 0x7f9ef831b490, undef:i64
                  0x7f9ef831b490: i64 = add 0x7f9ef8f00f90, 0x7f9ef8eeb530
                  0x7f9ef8e35e70: i64 = undef
              0x7f9ef8ee6f80: i8 = TargetConstant<4>
          0x7f9ef8f00660: v16i8,ch = load<(load (s128) from constant-pool)> 0x7f9efc4809b0, 0x7f9ef8eea840, undef:i64
            0x7f9ef8eea840: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<<16 x i8> <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>> 0
              0x7f9ef8e01f50: i64 = TargetConstantPool<<16 x i8> <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>> 0
            0x7f9ef8e35e70: i64 = undef
      0x7f9ef8e02880: v2i64 = bitcast 0x7f9ef8de2700
        0x7f9ef8de2700: v16i8 = and 0x7f9ef8ee76f0, 0x7f9ef8f00660
          0x7f9ef8ee76f0: v16i8 = bitcast 0x7f9ef8e0bf50
            0x7f9ef8e0bf50: v8i16 = X86ISD::VSRLI 0x7f9ef8dfece0, TargetConstant:i8<4>
              0x7f9ef8dfece0: v8i16 = bitcast 0x7f9ef8e0baf0
                0x7f9ef8e0baf0: v2i64 = scalar_to_vector 0x7f9ef8e9f1f0
                  0x7f9ef8e9f1f0: i64,ch = load<(load (s64) from %ir.56)> 0x7f9ef8eea290, 0x7f9ef8d6a180, undef:i64
              0x7f9ef8ee6f80: i8 = TargetConstant<4>
          0x7f9ef8f00660: v16i8,ch = load<(load (s128) from constant-pool)> 0x7f9efc4809b0, 0x7f9ef8eea840, undef:i64
            0x7f9ef8eea840: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<<16 x i8> <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>> 0
              0x7f9ef8e01f50: i64 = TargetConstantPool<<16 x i8> <i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15, i8 15>> 0
            0x7f9ef8e35e70: i64 = undef
In function: aot_instances_System_Buffers_IndexOfAnyAsciiSearcher_IndexOfAnyVectorized_System_Buffers_IndexOfAnyAsciiSearcher_DontNegate_byte__int_System_Buffers_IndexOfAnyAsciiSearcher_AsciiState_
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/llc -march=x86-64 -mcpu=generic -enable-implicit-null-checks -disable-fault-maps -asm-verbose=false -mtriple=x86_64-apple-ios13.5-macabi -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=_mono_aot_aot_instances_eh_frame -disable-tail-calls -no-x86-call-frame-opt -relocation-model=static -filetype=obj -o /Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll-llvm.o /Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll.s.opt.bc
1.	Running pass 'Function Pass Manager' on module '/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll.s.opt.bc'.
2.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@aot_instances_System_Buffers_IndexOfAnyAsciiSearcher_IndexOfAnyVectorized_System_Buffers_IndexOfAnyAsciiSearcher_DontNegate_byte__int_System_Buffers_IndexOfAnyAsciiSearcher_AsciiState_'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc                      0x00000001071952c7 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 414423
1  llc                      0x0000000107194258 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 410216
2  llc                      0x0000000107195920 llvm::SmallVectorBase<unsigned long long>::set_size(unsigned long) + 416048
3  libsystem_platform.dylib 0x00007ff811879dfd _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370286834208
5  libsystem_c.dylib        0x00007ff8117afd24 abort + 123
6  llc                      0x00000001070dd0b1 llvm::cl::opt<bool, false, llvm::cl::parser<bool>>::setCallback(std::__1::function<void (bool const&)>) + 126289
7  llc                      0x000000010702cd4a llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1746298
8  llc                      0x000000010702bcbd llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1742061
9  llc                      0x0000000105a171be
10 llc                      0x000000010702238f llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1702847
11 llc                      0x0000000107021938 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1700200
12 llc                      0x0000000107020d52 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1697154
13 llc                      0x000000010701e767 llvm::IntervalMap<long long, std::__1::monostate, 8u, llvm::IntervalMapHalfOpenInfo<long long>>::deleteNode(llvm::IntervalMapImpl::NodeRef, unsigned int) + 1687447
14 llc                      0x0000000105a09a10
15 llc                      0x000000010663f94b llvm::Pass* llvm::callDefaultCtor<llvm::MachineDominatorTree, true>() + 147083
16 llc                      0x0000000106a601f8 llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 163000
17 llc                      0x0000000106a663ac llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 188012
18 llc                      0x0000000106a60815 llvm::Attribute llvm::CallBase::getFnAttrOnCalledFunction<llvm::StringRef>(llvm::StringRef) const + 164565
19 llc                      0x00000001058b2078
20 llc                      0x00000001058afa0f
21 dyld                     0x0000000111ad052e start + 462
AOT of image /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/aot-instances.dll failed.
Mono Ahead of Time compiler - compiling assembly /Users/runner/work/1/s/artifacts/bundles/runonly/iOS.Simulator.Aot-Llvm.Test/aot-instances.dll
AOTID D6ED632C-26F7-3881-FF0F-BFE22BE67BD0
Adding 20225 dedup-ed methods.
Executing opt: "/Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/opt" -f -disable-tail-calls -passes="default<O2>,place-safepoints" -spp-all-backedges -o "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll.s.opt.bc" "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll.s.bc"
Executing llc: "/Users/runner/work/1/s/artifacts/bin/mono/maccatalyst.x64.Release/cross/maccatalyst-x64/llc"  -march=x86-64 -mcpu=generic -enable-implicit-null-checks -disable-fault-maps -asm-verbose=false -mtriple=x86_64-apple-ios13.5-macabi -disable-gnu-eh-frame -enable-mono-eh-frame -mono-eh-frame-symbol=_mono_aot_aot_instances_eh_frame -disable-tail-calls -no-x86-call-frame-opt -relocation-model=static -filetype=obj -o "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll-llvm.o" "/Users/runner/work/1/s/artifacts/obj/iOS.Simulator.Aot-Llvm.Test/Release/net9.0/maccatalyst-x64/mobile/aot-instances.dll.s.opt.bc"