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

Assertion `e->isUnique() && "LValue for a nonunique OVE hasn't been emitted"' failed #45309

Closed
llvmbot opened this issue May 18, 2020 · 4 comments
Labels
bugzilla Issues migrated from bugzilla c++ clang:codegen IR generation bugs: mangling, exceptions, etc. confirmed Verified by a second party crash-on-valid

Comments

@llvmbot
Copy link
Member

llvmbot commented May 18, 2020

Bugzilla Link 45964
Version 10.0
OS Linux
Attachments crash-89a527.cpp and crash-89a527.sh files
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@tambry,@ricejasonf,@zygoloid

Extended Description

The following code:

struct A {
using B = void (*)();
B c;
};
class D {
static const A e[];
};
class F {
public:
struct G {
unsigned h[2];
};
template I get();
};
template void j();
template <typename = void> struct K;
template <> struct K<> {
template static void m() {
F n;
auto o = n.get<F::G>();
auto [p, q] = o.h;
j();
}
};
const A D::e[]{K<>::m<0>};

makes clang to crash with:

Stack dump:
0. Program arguments: clang++-10 --std=c++17 -c crash.cpp

  1. parser at end of file
  2. Per-file LLVM IR generation
  3. crash.cpp:18:32: Generating code for declaration 'K::m'
    /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f00a985890f]
    /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f00a9856bc0]
    /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm3sys15CleanupOnSignalEm+0xdd)[0x7f00a985805d]
    /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(+0x9b43f0)[0x7f00a97aa3f0]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x14110)[0x7f00b016a110]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x16388d9)[0x7f00aebc98d9]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction14EmitScalarExprEPKNS_4ExprEb+0x4f)[0x7f00aebba8af]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction11EmitAnyExprEPKNS_4ExprENS0_12AggValueSlotEb+0x38)[0x7f00aeb79e98]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction15EmitIgnoredExprEPKNS_4ExprE+0x59)[0x7f00aeb79e49]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtEN4llvm8ArrayRefIPKNS_4AttrEEE+0x194)[0x7f00aecadb14]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction28EmitCompoundStmtWithoutScopeERKNS_12CompoundStmtEbNS0_12AggValueSlotE+0x8c)[0x7f00aecb784c]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction16EmitFunctionBodyEPKNS_4StmtE+0x112)[0x7f00aecf91b2]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen15CodeGenFunction12GenerateCodeENS_10GlobalDeclEPN4llvm8FunctionERKNS0_14CGFunctionInfoE+0x2cf)[0x7f00aecf9a0f]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule28EmitGlobalFunctionDefinitionENS_10GlobalDeclEPN4llvm11GlobalValueE+0x14d)[0x7f00aed1124d]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule20EmitGlobalDefinitionENS_10GlobalDeclEPN4llvm11GlobalValueE+0x1d3)[0x7f00aed0b3e3]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule12EmitDeferredEv+0x91)[0x7f00aed02501]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule12EmitDeferredEv+0xad)[0x7f00aed0251d]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang7CodeGen13CodeGenModule7ReleaseEv+0x17)[0x7f00aed01887]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x17f2434)[0x7f00aed83434]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x17600ad)[0x7f00aecf10ad]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang8ParseASTERNS_4SemaEbb+0x283)[0x7f00adedf163]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang14FrontendAction7ExecuteEv+0x48)[0x7f00af3553a8]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x621)[0x7f00af30ddf1]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x66f)[0x7f00af3b92ff]
    clang++-10(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x98d)[0x412e3d]
    clang++-10[0x411151]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(+0x1acde42)[0x7f00af05ee42]
    /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1(_ZN4llvm20CrashRecoveryContext9RunSafelyENS_12function_refIFvvEEE+0xd7)[0x7f00a97aa1f7]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZNK5clang6driver10CC1Command7ExecuteEN4llvm8ArrayRefINS2_8OptionalINS2_9StringRefEEEEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb+0x13f)[0x7f00af05e37f]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(ZNK5clang6driver11Compilation14ExecuteCommandERKNS0_7CommandERPS3+0x2df)[0x7f00af036a7f]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZNK5clang6driver11Compilation11ExecuteJobsERKNS0_7JobListERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0x7a)[0x7f00af036c2a]
    /usr/lib/x86_64-linux-gnu/libclang-cpp.so.10(_ZN5clang6driver6Driver18ExecuteCompilationERNS0_11CompilationERN4llvm15SmallVectorImplISt4pairIiPKNS0_7CommandEEEE+0xdc)[0x7f00af049e8c]
    clang++-10(main+0x259f)[0x410bcf]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f00a892be0b]
    clang++-10(_start+0x2a)[0x40e36a]
    clang: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 10.0.0-4
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
    clang: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/user/1000/crash-89a527.cpp
clang: note: diagnostic msg: /tmp/user/1000/crash-89a527.sh
clang: note: diagnostic msg:


@tambry
Copy link
Contributor

tambry commented May 24, 2020

Further reduced:
int a[1];
template void b() {
auto [c] = a;
}
void(*d)(){b<0>};

clang-11: /opt/llvm/clang/lib/CodeGen/CGExpr.cpp:4647: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::getOrCreateOpaqueLValueMapping(const clang::OpaqueValueExpr ): Assertion `e->isUnique() && "LValue for a nonunique OVE hasn't been emitted"' failed.
#​9 0x000000000301c050 clang::CodeGen::CodeGenFunction::getOrCreateOpaqueRValueMapping(clang::OpaqueValueExpr const
) /opt/llvm/clang/lib/CodeGen/CGExpr.cpp:4652:0
#​10 0x0000000003002404 clang::CodeGen::CodeGenFunction::EmitOpaqueValueLValue(clang::OpaqueValueExpr const*) /opt/llvm/clang/lib/CodeGen/CGExpr.cpp:0:10
#​11 0x0000000003002404 clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) /opt/llvm/clang/lib/CodeGen/CGExpr.cpp:1387:12
#​12 0x0000000002fffcac clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(clang::CodeGen::CodeGenFunction&, clang::OpaqueValueExpr const*, clang::CodeGen::LValue const&) /opt/llvm/clang/lib/CodeGen/CodeGenFunction.h:1239:7
#​13 0x0000000002fffcac clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(clang::CodeGen::CodeGenFunction&, clang::OpaqueValueExpr const*, clang::Expr const*) /opt/llvm/clang/lib/CodeGen/CodeGenFunction.h:1232:16
#​14 0x0000000003092e3a clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping(clang::CodeGen::CodeGenFunction&, clang::OpaqueValueExpr const*) /opt/llvm/clang/lib/CodeGen/CodeGenFunction.h:1308:14
#​15 0x0000000003092e3a (anonymous namespace)::AggExprEmitter::VisitArrayInitLoopExpr(clang::ArrayInitLoopExpr const*, llvm::Value*) /opt/llvm/clang/lib/CodeGen/CGExprAgg.cpp:1650:39
#​16 0x000000000308e386 (anonymous namespace)::AggExprEmitter::Visit(clang::Expr*) /opt/llvm/clang/lib/CodeGen/CGExprAgg.cpp:108:3
#​17 0x000000000308e386 clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot) /opt/llvm/clang/lib/CodeGen/CGExprAgg.cpp:1869:49
#​18 0x0000000003027fb5 clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) /opt/llvm/clang/lib/CodeGen/CGDecl.cpp:1917:1
#​19 0x0000000003025519 clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) /opt/llvm/clang/lib/CodeGen/CGDecl.cpp:0:12
#​20 0x0000000003020b73 clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) /opt/llvm/clang/lib/CodeGen/CGDecl.cpp:1288:3
#​21 0x0000000003020b73 clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) /opt/llvm/clang/lib/CodeGen/CGDecl.cpp:200:10
#​22 0x00000000030207f5 clang::Decl::getKind() const /opt/llvm/clang/include/clang/AST/DeclBase.h:432:51
#​23 0x00000000030207f5 clang::DecompositionDecl::classof(clang::Decl const*) /opt/llvm/clang/include/clang/AST/DeclCXX.h:3908:62
#​24 0x00000000030207f5 llvm::isa_impl<clang::DecompositionDecl, clang::VarDecl, void>::doit(clang::VarDecl const&) /opt/llvm/llvm/include/llvm/Support/Casting.h:58:12
#​25 0x00000000030207f5 llvm::isa_impl_cl<clang::DecompositionDecl, clang::VarDecl const*>::doit(clang::VarDecl const*) /opt/llvm/llvm/include/llvm/Support/Casting.h:105:12
#​26 0x00000000030207f5 llvm::isa_impl_wrap<clang::DecompositionDecl, clang::VarDecl const*, clang::VarDecl const*>::doit(clang::VarDecl const* const&) /opt/llvm/llvm/include/llvm/Support/Casting.h:131:12
#​27 0x00000000030207f5 llvm::isa_impl_wrap<clang::DecompositionDecl, clang::VarDecl const* const, clang::VarDecl const*>::doit(clang::VarDecl const* const&) /opt/llvm/llvm/include/llvm/Support/Casting.h:121:12
#​28 0x00000000030207f5 bool llvm::isa<clang::DecompositionDecl, clang::VarDecl const*>(clang::VarDecl const* const&) /opt/llvm/llvm/include/llvm/Support/Casting.h:141:10
#​29 0x00000000030207f5 llvm::cast_retty<clang::DecompositionDecl, clang::VarDecl const*>::ret_type llvm::dyn_cast<clang::DecompositionDecl, clang::VarDecl const>(clang::VarDecl const*) /opt/llvm/llvm/include/llvm/Support/Casting.h:339:10
#​30 0x00000000030207f5 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) /opt/llvm/clang/lib/CodeGen/CGDecl.cpp:145:20
#​31 0x00000000030d412b clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) /opt/llvm/clang/lib/CodeGen/CGStmt.cpp:1165:22
#​32 0x00000000030cb836 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) /opt/llvm/clang/lib/CodeGen/CGStmt.cpp:0:33
#​33 0x00000000030cb065 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) /opt/llvm/clang/lib/CodeGen/CGStmt.cpp:52:7
#​34 0x00000000030d4bac clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) /opt/llvm/clang/lib/CodeGen/CGStmt.cpp:417:22
#​35 0x0000000002ff27cf clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) /opt/llvm/clang/lib/CodeGen/CodeGenFunction.cpp:1112:1
#​36 0x0000000002ff308c clang::CodeGen::CodeGenFunction::getLangOpts() const /opt/llvm/clang/lib/CodeGen/CodeGenFunction.h:1753:51
#​37 0x0000000002ff308c clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) /opt/llvm/clang/lib/CodeGen/CodeGenFunction.cpp:1284:7
#​38 0x0000000002f8a333 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) /opt/llvm/clang/lib/CodeGen/CodeGenModule.cpp:4520:3
#​39 0x0000000002f84469 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) /opt/llvm/clang/lib/CodeGen/CodeGenModule.cpp:0:12

@ricejasonf
Copy link
Mannequin

ricejasonf mannequin commented Aug 20, 2021

I submitted a patch for this: https://reviews.llvm.org/D108482

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@llvmbot llvmbot added the confirmed Verified by a second party label Jan 26, 2022
@wheatman
Copy link
Contributor

This was fixed between 13 and 14
https://godbolt.org/z/89TT9brE6

code

int a[1];
template <int> void b() {
  auto [c] = a;
}
void(*d)(){b<0>};

old dump

clang++: /root/llvm-project/clang/lib/CodeGen/CGExpr.cpp:4794: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::getOrCreateOpaqueLValueMapping(const clang::OpaqueValueExpr*): Assertion `e->isUnique() && "LValue for a nonunique OVE hasn't been emitted"' failed.
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: /opt/compiler-explorer/clang-assertions-13.0.0/bin/clang++ -gdwarf-4 -g -o /app/output.s -mllvm --x86-asm-syntax=intel -S --gcc-toolchain=/opt/compiler-explorer/gcc-11.2.0 -fcolor-diagnostics -fno-crash-diagnostics -std=c++17 <source>
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	<source>:2:21: Generating code for declaration 'b'
 #0 0x0000555780c90dc4 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x0000555780c8ebc4 llvm::sys::CleanupOnSignal(unsigned long) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3bb3bc4)
 #2 0x0000555780bd2678 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #3 0x00007f33d8c00420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
 #4 0x00007f33d86cd00b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
 #5 0x00007f33d86ac859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
 #6 0x00007f33d86ac729 (/lib/x86_64-linux-gnu/libc.so.6+0x22729)
 #7 0x00007f33d86bdfd6 (/lib/x86_64-linux-gnu/libc.so.6+0x33fd6)
 #8 0x000055578135c2c2 clang::CodeGen::CodeGenFunction::getOrCreateOpaqueLValueMapping(clang::OpaqueValueExpr const*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x42812c2)
 #9 0x000055578135c390 clang::CodeGen::CodeGenFunction::EmitOpaqueValueLValue(clang::OpaqueValueExpr const*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4281390)
#10 0x000055578135b70c clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x428070c)
#11 0x0000555781311e80 clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(clang::CodeGen::CodeGenFunction&, clang::OpaqueValueExpr const*, clang::Expr const*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4236e80)
#12 0x0000555781372037 (anonymous namespace)::AggExprEmitter::VisitArrayInitLoopExpr(clang::ArrayInitLoopExpr const*, llvm::Value*) CGExprAgg.cpp:0:0
#13 0x0000555781370726 (anonymous namespace)::AggExprEmitter::Visit(clang::Expr*) CGExprAgg.cpp:0:0
#14 0x0000555781371146 clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, clang::CodeGen::AggValueSlot) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4296146)
#15 0x0000555781320851 clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4245851)
#16 0x0000555781326cc3 clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x424bcc3)
#17 0x0000555781328269 clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) (.part.0) CGDecl.cpp:0:0
#18 0x0000555781328600 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x424d600)
#19 0x0000555781025587 clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3f4a587)
#20 0x0000555781038e70 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3f5de70)
#21 0x000055578103221c clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3f5721c)
#22 0x000055578103872c clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3f5d72c)
#23 0x00005557810901f1 clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3fb51f1)
#24 0x00005557810a187c clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3fc687c)
#25 0x00005557810fbcf6 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4020cf6)
#26 0x00005557810f7765 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x401c765)
#27 0x00005557811019f1 clang::CodeGen::CodeGenModule::EmitDeferred() (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x40269f1)
#28 0x0000555781103d7c clang::CodeGen::CodeGenModule::Release() (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4028d7c)
#29 0x0000555781e315ba (anonymous namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) ModuleBuilder.cpp:0:0
#30 0x0000555781e30105 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4d55105)
#31 0x0000555782ef58a9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x5e1a8a9)
#32 0x0000555781e2ef58 clang::CodeGenAction::ExecuteAction() (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x4d53f58)
#33 0x00005557816c9309 clang::FrontendAction::Execute() (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x45ee309)
#34 0x000055578165f0be clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x45840be)
#35 0x00005557817a83a0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x46cd3a0)
#36 0x000055577e496966 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x13bb966)
#37 0x000055577e492c98 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#38 0x00005557814eb169 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#39 0x0000555780bd27fc llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x3af77fc)
#40 0x00005557814eb87d clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (.part.0) Job.cpp:0:0
#41 0x00005557814bdb8b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x43e2b8b)
#42 0x00005557814be6a9 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x43e36a9)
#43 0x00005557814c96d9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x43ee6d9)
#44 0x000055577e3be3c7 main (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x12e33c7)
#45 0x00007f33d86ae083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#46 0x000055577e49280e _start (/opt/compiler-explorer/clang-assertions-13.0.0/bin/clang+++0x13b780e)
clang-13: error: clang frontend command failed with exit code 134 (use -v to see invocation)
Compiler returned: 134

@wheatman wheatman added clang:codegen IR generation bugs: mangling, exceptions, etc. crash-on-valid labels Aug 11, 2023
@llvmbot
Copy link
Member Author

llvmbot commented Aug 11, 2023

@llvm/issue-subscribers-clang-codegen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++ clang:codegen IR generation bugs: mangling, exceptions, etc. confirmed Verified by a second party crash-on-valid
Projects
None yet
Development

No branches or pull requests

3 participants