Skip to content

Mono llvm crash when emitting shuffle intrinsic #106270

Open
@BrzVlad

Description

@BrzVlad

Crash started happening after change in shuffle intrinsic handling in 4fbd498cc25c

Crash stacktrace

0x104d49ccb mono-aot-cross : _ZN4llvm10ConstantFP3getERNS_11LLVMContextERKNS_7APFloatE
0x104d4ae2b mono-aot-cross : _ZN4llvm8Constant15getAllOnesValueEPNS_4TypeE
0x104d2c716 mono-aot-cross : _ZN4llvm29ConstantFoldBinaryInstructionEjPNS_8ConstantES1_
0x104d2d525 mono-aot-cross : _ZN4llvm29ConstantFoldBinaryInstructionEjPNS_8ConstantES1_
0x104d6ea15 mono-aot-cross : LLVMBuildAnd
0x1046ee3cf mono-aot-cross : process_bb
0x1046d83b4 mono-aot-cross : emit_method_inner
0x1046d63fc mono-aot-cross : mono_llvm_emit_method
0x104574012 mono-aot-cross : mini_method_compile
0x104602a64 mono-aot-cross : compile_method
0x1045f540f mono-aot-cross : compile_methods
0x1045f0401 mono-aot-cross : aot_assembly
0x1045ed39f mono-aot-cross : mono_aot_assemblies
0x1045e4943 mono-aot-cross : main_thread_handler
0x1045e0b0d mono-aot-cross : mono_main
0x10442c5f8 mono-aot-cross : main

Steps to reproduce

  • Reproducible on osx x64, probably reproduces the same on linux x64
  • Revert fix in simd-intrinsics.c from [mono] Test llvm bump #105867
  • ./build.sh -subset mono+libs+clr.hosts -c Release /p:MonoEnableLLVM=true /p:MonoAOTEnableLLVM=true
  • ./src/tests/build.sh -mono Release generatelayoutonly
  • cd artifacts/tests/coreclr/osx.x64.Release/Tests/Core_Root
  • export MONO_PATH=..../artifacts/tests/coreclr/osx.x64.Release/Tests/Core_Root
  • export PATH=$PATH:.../artifacts/bin/mono/osx.x64.Release // in order to find opt and llc
  • export MONO_ENV_OPTIONS="--aot=llvm"
  • ./artifacts/bin/mono/osx.x64.Release/cross/osx-x64/mono-aot-cross System.IO.Hashing.dll

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions