llvm-project
llvm-project copied to clipboard
[11/12] clang frontend crash
| Bugzilla Link | 51372 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @DougGregor,@zygoloid |
Extended Description
$ cat test.c
enum E e;
void foo(void) { double d[e]; }
$ clang-1201 --version clang version 12.0.1 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /path-to-llvm/12.0.1/install/bin
$ clang-1201 test.c PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /path-to-llvm/12.0.1/install/bin/clang-12 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /path-to-llvm/12.0.1/install/lib/clang/12.0.1 -internal-isystem /usr/local/include -internal-isystem /path-to-llvm/12.0.1/install/lib/clang/12.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /path-to-code -ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o /tmp/test-6847e5.o -x c test.c
parser at end of file - test.c:4:6: LLVM IR generation of declaration 'foo'
- test.c:4:6: Generating code for declaration 'foo' #0 0x0000563678092b01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1ccbb01) #1 0x00005636780908c4 llvm::sys::RunSignalHandlers() (/path-to-llvm/12.0.1/install/bin/clang-12+0x1cc98c4) #2 0x0000563678090a3b SignalHandler(int) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1cc9a3b) #3 0x00007f18205783c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0) #4 0x00005636786664ef hasBooleanRepresentation(clang::QualType) (/path-to-llvm/12.0.1/install/bin/clang-12+0x229f4ef) #5 0x0000563678669339 clang::CodeGen::CodeGenFunction::EmitFromMemory(llvm::Value*, clang::QualType) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22a2339) #6 0x000056367867797f clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(clang::CodeGen::Address, bool, clang::QualType, clang::SourceLocation, clang::CodeGen::LValueBaseInfo, clang::CodeGen::TBAAAccessInfo, bool) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22b097f) #7 0x0000563678679bd5 clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(clang::CodeGen::LValue, clang::SourceLocation) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22b2bd5) #8 0x00005636786c7f63 (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2300f63) #9 0x00005636786c5be2 (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22febe2) #10 0x00005636786cb738 (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2304738) #11 0x00005636786c4cd0 (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22fdcd0) #12 0x00005636786c5f37 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22fef37) #13 0x000056367840c261 clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(clang::QualType) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2045261) #14 0x000056367864ed78 clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(clang::VarDecl const&) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2287d78) #15 0x000056367864f9ff clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) (/path-to-llvm/12.0.1/install/bin/clang-12+0x22889ff) #16 0x000056367864fd52 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (.localalias) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2288d52) #17 0x00005636783a497f clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1fdd97f) #18 0x00005636783b52d9 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1fee2d9) #19 0x00005636783b0036 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1fe9036) #20 0x00005636783b06d2 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/path-to-llvm/12.0.1/install/bin/clang-12+0x1fe96d2) #21 0x0000563678406efa clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x203fefa) #22 0x000056367841255e clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/path-to-llvm/12.0.1/install/bin/clang-12+0x204b55e) #23 0x0000563678461077 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x209a077) #24 0x000056367845ea95 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2097a95) #25 0x000056367845ef63 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2097f63) #26 0x0000563678464ec9 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.0) (/path-to-llvm/12.0.1/install/bin/clang-12+0x209dec9) #27 0x000056367903ea01 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2c77a01) #28 0x000056367903261d clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/path-to-llvm/12.0.1/install/bin/clang-12+0x2c6b61d) #29 0x0000563679e19734 clang::ParseAST(clang::Sema&, bool, bool) (/path-to-llvm/12.0.1/install/bin/clang-12+0x3a52734) #30 0x000056367903c146 clang::CodeGenAction::ExecuteAction() (/path-to-llvm/12.0.1/install/bin/clang-12+0x2c75146) #31 0x00005636789bec31 clang::FrontendAction::Execute() (/path-to-llvm/12.0.1/install/bin/clang-12+0x25f7c31) #32 0x000056367895b99b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/path-to-llvm/12.0.1/install/bin/clang-12+0x259499b) #33 0x0000563678a90ae0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/path-to-llvm/12.0.1/install/bin/clang-12+0x26c9ae0) #34 0x0000563676ee11bb cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/path-to-llvm/12.0.1/install/bin/clang-12+0xb1a1bb) #35 0x0000563676ede9cb ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/path-to-llvm/12.0.1/install/bin/clang-12+0xb179cb) #36 0x0000563676e6176e main (/path-to-llvm/12.0.1/install/bin/clang-12+0xa9a76e) #37 0x00007f18200460b3 __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3 #38 0x0000563676ede55e _start (/path-to-llvm/12.0.1/install/bin/clang-12+0xb1755e) clang-12: error: unable to execute command: Segmentation fault (core dumped) clang-12: error: clang frontend command failed due to signal (use -v to see invocation) clang version 12.0.1 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /path-to-llvm/12.0.1/install/bin clang-12: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-12: note: diagnostic msg: /tmp/test-ced1df.c clang-12: note: diagnostic msg: /tmp/test-ced1df.sh clang-12: note: diagnostic msg:
$ clang-1100 --version clang version 11.0.0 (https://github.com/llvm/llvm-project.git 0160ad802e899c2922bc9b29564080c22eb0908c) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin
$ clang-1100 test.c PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem /path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/lib/clang/11.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /path-to-code -ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o /tmp/test-5690d2.o -x c test.c
parser at end of file - test.c:4:6: LLVM IR generation of declaration 'foo'
- test.c:4:6: Generating code for declaration 'foo' #0 0x00000000022bcf44 PrintStackTraceSignalHandler(void*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x22bcf44) #1 0x00000000022bacce llvm::sys::RunSignalHandlers() (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x22bacce) #2 0x00000000022bd245 SignalHandler(int) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x22bd245) #3 0x00007f3d850da3c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0) #4 0x00000000026ecba9 hasBooleanRepresentation(clang::QualType) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26ecba9) #5 0x00000000026ed2d7 clang::CodeGen::CodeGenFunction::EmitFromMemory(llvm::Value*, clang::QualType) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26ed2d7) #6 0x00000000026ec4b4 clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(clang::CodeGen::Address, bool, clang::QualType, clang::SourceLocation, clang::CodeGen::LValueBaseInfo, clang::CodeGen::TBAAAccessInfo, bool) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26ec4b4) #7 0x00000000026ebcc7 clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(clang::CodeGen::LValue, clang::SourceLocation) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26ebcc7) #8 0x000000000271d9cc clang::StmtVisitorBase<std::add_pointer, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x271d9cc) #9 0x0000000002721d8b (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2721d8b) #10 0x000000000270f982 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x270f982) #11 0x00000000025179a5 clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(clang::QualType) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x25179a5) #12 0x00000000026c4f6c clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(clang::VarDecl const&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26c4f6c) #13 0x00000000026c21ea clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26c21ea) #14 0x00000000026c1f39 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x26c1f39) #15 0x00000000024c4b0c clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x24c4b0c) #16 0x00000000024c41fe clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x24c41fe) #17 0x00000000024ce580 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x24ce580) #18 0x0000000002517c48 clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2517c48) #19 0x00000000025184fc clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x25184fc) #20 0x0000000002531c5c clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2531c5c) #21 0x000000000252bea2 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x252bea2) #22 0x0000000002534b75 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2534b75) #23 0x0000000002f4010f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2f4010f) #24 0x0000000002f3d6c2 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2f3d6c2) #25 0x00000000039300d4 clang::ParseAST(clang::Sema&, bool, bool) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x39300d4) #26 0x00000000029c4727 clang::FrontendAction::Execute() (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x29c4727) #27 0x00000000029607c1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x29607c1) #28 0x0000000002a5d12a clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x2a5d12a) #29 0x00000000009babc7 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x9babc7) #30 0x00000000009b8eb1 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x9b8eb1) #31 0x00000000009b8cb7 main (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x9b8cb7) #32 0x00007f3d84b4f0b3 __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3 #33 0x00000000009b5f4e _start (/path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-11+0x9b5f4e) clang-11: error: unable to execute command: Segmentation fault (core dumped) clang-11: error: clang frontend command failed due to signal (use -v to see invocation) clang version 11.0.0 (https://github.com/llvm/llvm-project.git 0160ad802e899c2922bc9b29564080c22eb0908c) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /path-to-llvm/11.0.0/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin clang-11: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-11: note: diagnostic msg: /tmp/test-eb3f64.c clang-11: note: diagnostic msg: /tmp/test-eb3f64.sh clang-11: note: diagnostic msg:
reproduces on trunk (c3b27c236d6a495acbe2ba95c43faf9a98e81a46) triggering the following assert
Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.
https://godbolt.org/z/bcTrYda7h
enum E e;
void foo(void) {
int d[e];
}
The full backtrace is
clang: /root/llvm-project/clang/include/clang/AST/Type.h:752: const clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const: Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.
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: /opt/compiler-explorer/clang-assertions-trunk/bin/clang -gdwarf-4 -g -o /app/output.s -mllvm --x86-asm-syntax=intel -S --gcc-toolchain=/opt/compiler-explorer/gcc-9.2.0 -fcolor-diagnostics -fno-crash-diagnostics <source>
1. <eof> parser at end of file
2. <source>:3:6: LLVM IR generation of declaration 'foo'
3. <source>:3:6: Generating code for declaration 'foo'
#0 0x0000558ee9238f2f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3c52f2f)
#1 0x0000558ee9236c9c llvm::sys::CleanupOnSignal(unsigned long) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3c50c9c)
#2 0x0000558ee9181398 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007ff28e916420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#4 0x00007ff28e3e300b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
#5 0x00007ff28e3c2859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
#6 0x00007ff28e3c2729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
#7 0x00007ff28e3d3fd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
#8 0x0000558ee9915e74 hasBooleanRepresentation(clang::QualType) CGExpr.cpp:0:0
#9 0x0000558ee9918f02 clang::CodeGen::CodeGenFunction::EmitFromMemory(llvm::Value*, clang::QualType) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4332f02)
#10 0x0000558ee992bc5e clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(clang::CodeGen::Address, bool, clang::QualType, clang::SourceLocation, clang::CodeGen::LValueBaseInfo, clang::CodeGen::TBAAAccessInfo, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4345c5e)
#11 0x0000558ee992ca5a clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(clang::CodeGen::LValue, clang::SourceLocation) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4346a5a)
#12 0x0000558ee9989605 (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#13 0x0000558ee9982919 clang::StmtVisitorBase<std::add_pointer, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) CGExprScalar.cpp:0:0
#14 0x0000558ee9982b6b (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#15 0x0000558ee9985583 (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#16 0x0000558ee9981224 clang::StmtVisitorBase<std::add_pointer, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) CGExprScalar.cpp:0:0
#17 0x0000558ee9988eb4 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x43a2eb4)
#18 0x0000558ee95d2dfa clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(clang::QualType) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3fecdfa)
#19 0x0000558ee98f9190 clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(clang::VarDecl const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4313190)
#20 0x0000558ee98fa023 clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) (.part.0) CGDecl.cpp:0:0
#21 0x0000558ee98fa320 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4314320)
#22 0x0000558ee9555397 clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3f6f397)
#23 0x0000558ee9569a1f clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3f83a1f)
#24 0x0000558ee9562969 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3f7c969)
#25 0x0000558ee95692d4 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3f832d4)
#26 0x0000558ee95c926a clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3fe326a)
#27 0x0000558ee95dce9f clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3ff6e9f)
#28 0x0000558ee9641e09 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x405be09)
#29 0x0000558ee963cdb5 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4056db5)
#30 0x0000558ee963d988 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4057988)
#31 0x0000558ee96467d3 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.0) CodeGenModule.cpp:0:0
#32 0x0000558eea4b5ac6 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) ModuleBuilder.cpp:0:0
#33 0x0000558eea4a7b70 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4ec1b70)
#34 0x0000558eeb9afe14 clang::ParseAST(clang::Sema&, bool, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x63c9e14)
#35 0x0000558eea4b29a8 clang::CodeGenAction::ExecuteAction() (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4ecc9a8)
#36 0x0000558ee9cfcb79 clang::FrontendAction::Execute() (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x4716b79)
#37 0x0000558ee9c824c6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x469c4c6)
#38 0x0000558ee9de12a6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x47fb2a6)
#39 0x0000558ee66db0ed cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x10f50ed)
#40 0x0000558ee66d6dea ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#41 0x0000558ee9ae123d void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#42 0x0000558ee91818a0 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x3b9b8a0)
#43 0x0000558ee9ae185f clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#44 0x0000558ee9aa89ec clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x44c29ec)
#45 0x0000558ee9aa947d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x44c347d)
#46 0x0000558ee9ab155d clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x44cb55d)
#47 0x0000558ee66d934a clang_main(int, char**, llvm::ToolContext const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x10f334a)
#48 0x0000558ee65df5c5 main (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0xff95c5)
#49 0x00007ff28e3c4083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#50 0x0000558ee66d1bce _start (/opt/compiler-explorer/clang-assertions-trunk/bin/clang+0x10ebbce)
clang: error: clang frontend command failed with exit code 134 (use -v to see invocation)
Compiler returned: 134
@llvm/issue-subscribers-clang-codegen