Skip to content

21.1.x clang-cl crash [Exception Code: 0xC0000005] #167793

@Rinn

Description

@Rinn

Making a new ticket for this crash as it is different than the previous one I reported.

I also got another crash with the same exception code, unsure if it's related or not as the stack dump looks different. If not I can make a new issue, but same as before this crash does not occur with 20.1.8 but does with 21.1.0 and later.

FieldOfViewNetObjectPrioritizer-8aa4e8.zip

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: E:\\AutoSDK\\HostWin64\\Win64\\LLVM\\21.1.5\\bin\\clang-cl.exe @../Intermediate/Build/XB1/x64/UnrealGameNU/Development/IrisCore/FieldOfViewNetObjectPrioritizer.cpp.obj.rsp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'Runtime/Net/Iris/Private/Iris/ReplicationSystem/Prioritization/FieldOfViewNetObjectPrioritizer.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@"?PrioritizeBatch@UFieldOfViewNetObjectPrioritizer@@IEAAXAEAUFBatchParams@1@@Z"'
Exception Code: 0xC0000005
 #0 0x00007ff6f64211fe (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x15311fe)
 #1 0x00007ff6f6420db8 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1530db8)
 #2 0x00007ff6f689389c (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x19a389c)
 #3 0x00007ff6f688e332 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x199e332)
 #4 0x00007ff6f69c67ef (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1ad67ef)
 #5 0x00007ff6f69c2dcc (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1ad2dcc)
 #6 0x00007ff6f693a8a9 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1a4a8a9)
 #7 0x00007ff6f51c1de9 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x2d1de9)
 #8 0x00007ff6f54288d4 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x5388d4)
 #9 0x00007ff6f68a536e (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x19b536e)
#10 0x00007ff6f68c61d0 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x19d61d0)
#11 0x00007ff6f5186e0a (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x296e0a)
#12 0x00007ff6f51868de (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x2968de)
#13 0x00007ff6f518041e (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x29041e)
#14 0x00007ff6f68c0dda (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x19d0dda)
#15 0x00007ff6f6e29e85 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1f39e85)
#16 0x00007ff6f551a493 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x62a493)
#17 0x00007ff6f551a0dd (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x62a0dd)
#18 0x00007ff6f5516d96 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x626d96)
#19 0x00007ff6f55138f8 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x6238f8)
#20 0x00007ff6f551218e (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x62218e)
#21 0x00007ff6f5dfee5d (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0xf0ee5d)
#22 0x00007ff6f56a2685 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x7b2685)
#23 0x00007ff6f56a2478 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x7b2478)
#24 0x00007ff6f53c7825 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x4d7825)
#25 0x00007ff6f53c716e (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x4d716e)
#26 0x00007ff6f53c6d4d (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x4d6d4d)
#27 0x00007ff6f53bda86 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x4cda86)
#28 0x00007ff6f53bb023 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x4cb023)
#29 0x00007ff6f6edd0a0 (E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin\clang-cl.exe+0x1fed0a0)
#30 0x00007ffc7f4ee8d7 (C:\WINDOWS\System32\KERNEL32.DLL+0x2e8d7)
#31 0x00007ffc8000c53c (C:\WINDOWS\SYSTEM32\ntdll.dll+0x8c53c)
clang-cl: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 21.1.5
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: E:\AutoSDK\HostWin64\Win64\LLVM\21.1.5\bin
clang-cl: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\joe.kirchoff\AppData\Local\Temp\UnrealBuildTool\3f3aa673\FieldOfViewNetObjectPrioritizer-8aa4e8.cpp
clang-cl: note: diagnostic msg: C:\Users\joe.kirchoff\AppData\Local\Temp\UnrealBuildTool\3f3aa673\FieldOfViewNetObjectPrioritizer-8aa4e8.sh
clang-cl: note: diagnostic msg:
********************

Originally posted by @Rinn in #167433

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:X86crashPrefer [crash-on-valid] or [crash-on-invalid]llvm:SelectionDAGSelectionDAGISel as wellneeds-reductionLarge reproducer that should be reduced into a simpler form

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions