[LLVMbugs] [Bug 7834] New: clang crashes when compiling c++ code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 6 00:30:15 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7834
Summary: clang crashes when compiling c++ code
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: burger.gregor at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
this is the output of the compiler. compiled clang with optimized. cmake was
used to generate the makefile for my project.
clang: CGExprAgg.cpp:796: void
clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*,
clang::QualType, bool): Assertion `(Record->hasTrivialCopyConstructor() ||
Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without
a trivial copy " "constructor or assignment operator"' failed.
0 clang 0x000000000161bfcf
1 clang 0x000000000161ddb6
2 libpthread.so.0 0x00002b4ab2c4f8f0
3 libc.so.6 0x00002b4ab3844a75 gsignal + 53
4 libc.so.6 0x00002b4ab38485c0 abort + 384
5 libc.so.6 0x00002b4ab383d941 __assert_fail + 241
6 clang 0x000000000082dc0e
clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*,
clang::QualType, bool) + 2574
7 clang 0x00000000008b8833
clang::CodeGen::CodeGenFunction::EmitNullInitialization(llvm::Value*,
clang::QualType) + 339
8 clang 0x0000000000834c1b
9 clang 0x0000000000835617
clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) +
2423
10 clang 0x0000000000848edd
11 clang 0x000000000084a90e
12 clang 0x0000000000847480
13 clang 0x000000000084ce99
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121
14 clang 0x000000000081ec07
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool) + 247
15 clang 0x000000000089a2b4
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 148
16 clang 0x000000000089c57f
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 223
17 clang 0x000000000089c83c
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 268
18 clang 0x000000000089a23c
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 28
19 clang 0x00000000008d6987
clang::CodeGen::CodeGenFunction::EmitConstructorBody(llvm::SmallVector<std::pair<clang::VarDecl
const*, clang::QualType>, 16u>&) + 167
20 clang 0x00000000008b9c3f
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1263
21 clang 0x00000000007f48b3
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 147
22 clang 0x00000000007cf9fe
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 654
23 clang 0x00000000007cfcea
clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 618
24 clang 0x00000000007d00cd
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 365
25 clang 0x00000000007c5891
26 clang 0x00000000007c3fe4
27 clang 0x00000000008dde3e clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 238
28 clang 0x00000000007c4b44 clang::CodeGenAction::ExecuteAction() +
68
29 clang 0x00000000006d93fd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 349
30 clang 0x00000000006b321c cc1_main(char const**, char const**, char
const*, void*) + 3004
31 clang 0x00000000006ba27a main + 4314
32 libc.so.6 0x00002b4ab382fc4d __libc_start_main + 253
33 clang 0x00000000006b10a9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-S -disable-free -main-file-name defaultsimulation.cpp -pic-level 2
-mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -g
-resource-dir /usr/lib/clang/2.8 -D nodes_EXPORTS -D QT_NO_KEYWORDS -D QT_DLL
-D QT_SVG_LIB -D QT_GUI_LIB -D QT_XML_LIB -D QT_CORE_LIB -D PYTHON_DISABLED -D
OPENMP_DISABLED -D DEBUG -D QT_DEBUG -I /usr/include/qt4 -I
/usr/include/qt4/QtSvg -I /usr/include/qt4/QtGui -I /usr/include/qt4/QtXml -I
/usr/include/qt4/QtCore -I /home/gregor/Work/cd3-1/src/cd3core -I
/home/gregor/Work/cd3-1/src/cd3core/qs -Wall -ferror-limit 19 -fmessage-length
237 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-lJHEzQ.s -x c++ /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp
1. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:19:1: current
parser token 'DefaultSimulation'
2. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:20: LLVM IR
generation of declaration 'DefaultSimulation::DefaultSimulation'
3. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:20: Generating
code for declaration 'DefaultSimulation::DefaultSimulation'
4. /home/gregor/Work/cd3-1/src/nodes/defaultsimulation.cpp:15:56: LLVM IR
generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
make[2]: *** [src/nodes/CMakeFiles/nodes.dir/defaultsimulation.cpp.o] Error 250
make[1]: *** [src/nodes/CMakeFiles/nodes.dir/all] Error 2
make: *** [all] Error 2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list