[LLVMbugs] [Bug 10756] New: Regression: Clang crashes when building webkit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 19:13:49 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10756

           Summary: Regression: Clang crashes when building webkit
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


$clang --version
clang version 3.0 (trunk 138617)
Target: x86_64-apple-darwin10.8.0
Thread model: posix


$ clang -c foo.ii
Assertion failed: ((Record->hasTrivialCopyConstructor() ||
Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without
a trivial copy " "constructor or assignment operator"), function
EmitAggregateCopy, file
/Users/thakis/src/chrome-git/src/third_party/llvm/tools/clang/lib/CodeGen/CGExprAgg.cpp,
line 1070.

0  clang             0x00000001019f8dd2 PrintStackTrace(void*) + 341  clang    
        0x00000001019f9c23 SignalHandler(int) + 7072  libSystem.B.dylib
0x00007fff80f0d1ba _sigtramp + 263  libSystem.B.dylib 0x79747261705f6472
_sigtramp + 40170011704  clang             0x000000010001d2a2 __assert_rtn +
665  clang             0x00000001002374dc
clang::CodeGen::CodeGenFunction::EmitAggregateCopy(llvm::Value*, llvm::Value*,
clang::QualType, bool) + 18526  clang             0x000000010023768c (anonymous
namespace)::AggExprEmitter::EmitFinalDestCopy(clang::Expr const*,
clang::CodeGen::RValue, bool) + 4287  clang             0x000000010023903b
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 20438  clang             0x000000010023d48d
(anonymous
namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*)
+ 2059  clang             0x0000000100239da5
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 547710 clang             0x000000010023db5f
(anonymous namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 151911
clang             0x00000001002390cb clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 218712
clang             0x00000001002399da clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 450613
clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 49514 clang            
0x000000010024105e
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 87815 clang            
0x0000000100239e52 clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 565016 clang          
  0x000000010023d48d (anonymous
namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*)
+ 20517 clang             0x0000000100239da5
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 547718 clang             0x00000001002399da
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 450619 clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 49520 clang            
0x000000010024105e
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 87821 clang            
0x0000000100239e52 clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 565022 clang          
  0x000000010023d48d (anonymous
namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*)
+ 20523 clang             0x0000000100239da5
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 547724 clang             0x00000001002384dc
(anonymous
namespace)::AggExprEmitter::VisitAbstractConditionalOperator(clang::AbstractConditionalOperator
const*) + 87625 clang             0x00000001002396ed
clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*) + 375726 clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 49527 clang            
0x000000010023ac8d
clang::CodeGen::CodeGenFunction::EmitAggExprToLValue(clang::Expr const*) +
38128 clang             0x000000010023565d
clang::CodeGen::CodeGenFunction::EmitConditionalOperatorLValue(clang::AbstractConditionalOperator
const*) + 258929 clang             0x000000010022f6ed
clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 122930 clang 
           0x000000010022f44a
clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 55431 clang  
          0x0000000100244ef3
clang::CodeGen::CodeGenFunction::EmitCXXMemberCallExpr(clang::CXXMemberCallExpr
const*, clang::CodeGen::ReturnValueSlot) + 65932 clang            
0x000000010023003b
clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*,
clang::CodeGen::ReturnValueSlot) + 20333 clang             0x000000010025b3f2
(anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*)
+ 8234 clang             0x000000010026454c
clang::StmtVisitorBase<clang::make_ptr, (anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 338835
clang             0x000000010026583d
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) +
14136 clang             0x00000001002276d0
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 8037 clang             0x000000010022802b
clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 91
38 clang             0x00000001001db90b
clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&,
clang::Expr const*, clang::QualType) + 443
39 clang             0x0000000100236143 void
clang::CodeGen::CodeGenFunction::EmitCallArgs<clang::FunctionProtoType>(clang::CodeGen::CallArgList&,
clang::FunctionProtoType const*, clang::ConstExprIterator,
clang::ConstExprIterator) + 515
40 clang             0x0000000100243cb9
clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*,
llvm::Value*, clang::CodeGen::ReturnValueSlot, llvm::Value*, llvm::Value*,
clang::ConstExprIterator, clang::ConstExprIterator) + 409
41 clang             0x00000001001ecd44
clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl
const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator,
clang::ConstExprIterator) + 452
42 clang             0x0000000100240e1d
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 301
43 clang             0x0000000100239e52 clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 5650
44 clang             0x000000010023d48d (anonymous
namespace)::AggExprEmitter::VisitCXXBindTemporaryExpr(clang::CXXBindTemporaryExpr*)
+ 205
45 clang             0x0000000100239da5 clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 5477
46 clang             0x000000010023db5f (anonymous
namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 1519
47 clang             0x00000001002390cb clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 2187
48 clang             0x000000010023db5f (anonymous
namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*) + 1519
49 clang             0x00000001002390cb clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 2187
50 clang             0x00000001002399da clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 4506
51 clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 495
52 clang             0x000000010024105e
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 878
53 clang             0x0000000100239e52 clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 5650
54 clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 495
55 clang             0x000000010022778e
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 270
56 clang             0x00000001002dac3d
clang::CodeGen::CodeGenFunction::EmitExprWithCleanups(clang::ExprWithCleanups
const*, clang::CodeGen::AggValueSlot) + 125
57 clang             0x000000010023a0ea clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 6314
58 clang             0x000000010023a81f
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 495
59 clang             0x000000010021529e
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 718
60 clang             0x00000001002168ad
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 269
61 clang             0x00000001002cf58b
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 91
62 clang             0x00000001002d9a87
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 151
63 clang             0x00000001002d62c0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
64 clang             0x00000001002d981b
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 283
65 clang             0x00000001002d9be9
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 505
66 clang             0x00000001002d62c0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
67 clang             0x00000001003044ed
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 909
68 clang             0x000000010030b680
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 544
69 clang             0x000000010030fa51
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 513
70 clang             0x000000010030fb5a
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 170
71 clang             0x0000000100310cac
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1068
72 clang             0x0000000100310b5b
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 731
73 clang             0x000000010032525f (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 63
74 clang             0x00000001002ff12b
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155
75 clang             0x0000000100333c82 clang::ParseAST(clang::Sema&, bool) +
338
76 clang             0x00000001002fdb9c clang::CodeGenAction::ExecuteAction() +
60
77 clang             0x00000001000483c1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 433
78 clang             0x0000000100027e87
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1735
79 clang             0x000000010001e5fc cc1_main(char const**, char const**,
char const*, void*) + 652
80 clang             0x0000000100026bce main + 4542
81 clang             0x000000010001d9e4 start + 52
Stack dump:
0.    Program arguments:
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free
-main-file-name foo.ii -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 97.17 -coverage-file
foo.o -resource-dir
/Users/thakis/src/chrome-git/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 213 -stack-protector 1
-fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o foo.o -x c++-cpp-output foo.ii 
1.    <eof> parser at end of file
2.    third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:35:11: LLVM IR
generation of declaration 'WebCore'
3.    third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:101:28: Generating
code for declaration 'WebCore::TreeScope::getImageMap'
4.    third_party/WebKit/Source/WebCore/dom/TreeScope.cpp:102:1: LLVM IR
generation of compound statement ('{}')

-- 
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