[LLVMbugs] [Bug 18708] New: Crash when trying to build Qt 5.1.0 with clang from svn Trunk ( compiling with -faddress=sanitize

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 3 08:53:17 PST 2014


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

            Bug ID: 18708
           Summary: Crash when trying to build Qt 5.1.0 with clang from
                    svn Trunk ( compiling with -faddress=sanitize
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: maddimax at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Stack trace and output: 

Assertion failed: (D->isCompleteDefinition() && "Cannot layout type before
complete!"), function getASTRecordLayout, file
/Users/mtillman/tmp/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp, line
2820.
0  clang             0x00000001035b9f88 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang             0x00000001035ba4e4 SignalHandler(int) + 644
2  libsystem_c.dylib 0x00007fff90a6090a _sigtramp + 26
3  libsystem_c.dylib 0x0001000105a239b0 _sigtramp + 1962684608
4  clang             0x00000001035ba246 abort + 22
5  clang             0x00000001035ba221 __assert_rtn + 81
6  clang             0x00000001026b985d
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const + 5965
7  clang             0x0000000102559698
clang::ASTContext::getTypeInfoImpl(clang::Type const*) const + 1672
8  clang             0x0000000102558fb2
clang::ASTContext::getTypeInfo(clang::Type const*) const + 178
9  clang             0x0000000101c66705
clang::CodeGen::CGDebugInfo::CreateLimitedType(clang::RecordType const*) + 373
10 clang             0x0000000101c62fac
clang::CodeGen::CGDebugInfo::getOrCreateLimitedType(clang::RecordType const*,
llvm::DIFile) + 92
11 clang             0x0000000101c62762
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) +
82
12 clang             0x0000000101c662e3
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
1011
13 clang             0x0000000101c5bf55
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
101
14 clang             0x0000000101c5ef88
clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*,
llvm::DIFile) + 88
15 clang             0x0000000101c6604a
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
346
16 clang             0x0000000101c5bf55
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
101
17 clang             0x0000000101c60685
clang::CodeGen::CGDebugInfo::CreateCXXMemberFunction(clang::CXXMethodDecl
const*, llvm::DIFile, llvm::DIType) + 85
18 clang             0x0000000101c6102d
clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl
const*, llvm::DIFile, llvm::SmallVectorImpl<llvm::Value*>&, llvm::DIType) + 605
19 clang             0x0000000101c62a90
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) +
896
20 clang             0x0000000101c662e3
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
1011
21 clang             0x0000000101c5bf55
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
101
22 clang             0x0000000101c61493
clang::CodeGen::CGDebugInfo::CollectTemplateParams(clang::TemplateParameterList
const*, llvm::ArrayRef<clang::TemplateArgument>, llvm::DIFile) + 179
23 clang             0x0000000101c66b06
clang::CodeGen::CGDebugInfo::CreateLimitedType(clang::RecordType const*) + 1398
24 clang             0x0000000101c62fac
clang::CodeGen::CGDebugInfo::getOrCreateLimitedType(clang::RecordType const*,
llvm::DIFile) + 92
25 clang             0x0000000101c62762
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) +
82
26 clang             0x0000000101c62542
clang::CodeGen::CGDebugInfo::completeClassData(clang::RecordDecl const*) + 226
27 clang             0x0000000101c62417
clang::CodeGen::CGDebugInfo::completeRequiredType(clang::RecordDecl const*) +
119
28 clang             0x0000000101d578bd (anonymous
namespace)::CodeGeneratorImpl::HandleTagDeclDefinition(clang::TagDecl*) + 45
29 clang             0x0000000101d16935
clang::BackendConsumer::HandleTagDeclDefinition(clang::TagDecl*) + 101
30 clang             0x0000000102116ac5
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 2693
31 clang             0x0000000102117d4a
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1962
32 clang             0x000000010216b5fa
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 986
33 clang             0x000000010216b156
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 22
34 clang             0x0000000101efbb3f
clang::Sema::CheckBaseSpecifier(clang::CXXRecordDecl*, clang::SourceRange,
bool, clang::AccessSpecifier, clang::TypeSourceInfo*, clang::SourceLocation) +
1423
35 clang             0x0000000102115f15
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 1157
36 clang             0x000000010211637f
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 831
37 clang             0x0000000102117d4a
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1962
38 clang             0x000000010216b5fa
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 986
39 clang             0x000000010216b156
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 22
40 clang             0x0000000101f7c748
clang::Sema::CheckCallReturnType(clang::QualType, clang::SourceLocation,
clang::CallExpr*, clang::FunctionDecl*) + 264
41 clang             0x0000000101f7adf7
clang::Sema::BuildResolvedCallExpr(clang::Expr*, clang::NamedDecl*,
clang::SourceLocation, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation,
clang::Expr*, bool) + 1719
42 clang             0x0000000101f6b793
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 2003
43 clang             0x0000000101da0dc2
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 2802
44 clang             0x0000000101da3a72
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 8786
45 clang             0x0000000101da350b
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 7403
46 clang             0x0000000101d9ef43
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 131
47 clang             0x0000000101d7e386
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 3158
48 clang             0x0000000101d7c76a
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1818
49 clang             0x0000000101d78b20
clang::Parser::ParseSimpleDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&, bool, clang::Parser::ForRangeInit*)
+ 768
50 clang             0x0000000101d7878a
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 954
51 clang             0x0000000101dceb2a
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2458
52 clang             0x0000000101dce0fa
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 154
53 clang             0x0000000101dd5615
clang::Parser::ParseCompoundStatementBody(bool) + 1509
54 clang             0x0000000101dce8fd
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1901
55 clang             0x0000000101dce0fa
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 154
56 clang             0x0000000101dd1246
clang::Parser::ParseIfStatement(clang::SourceLocation*) + 1094
57 clang             0x0000000101dced68
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3032
58 clang             0x0000000101dce0fa
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 154
59 clang             0x0000000101dd5615
clang::Parser::ParseCompoundStatementBody(bool) + 1509
60 clang             0x0000000101dce8fd
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 1901
61 clang             0x0000000101dce0fa
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 154
62 clang             0x0000000101dd1090
clang::Parser::ParseIfStatement(clang::SourceLocation*) + 656
63 clang             0x0000000101dced68
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3032
64 clang             0x0000000101dce0fa
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 154
65 clang             0x0000000101dd5615
clang::Parser::ParseCompoundStatementBody(bool) + 1509
66 clang             0x0000000101dd8add
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 189
67 clang             0x0000000101de9263
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1923
68 clang             0x0000000101d7c598
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1352
69 clang             0x0000000101de89e4
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 836
70 clang             0x0000000101de83ab
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 363
71 clang             0x0000000101de791e
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3038
72 clang             0x0000000101de6c9b
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 539
73 clang             0x0000000101d6b166 clang::ParseAST(clang::Sema&, bool,
bool) + 438
74 clang             0x0000000101d157b1 clang::CodeGenAction::ExecuteAction() +
881
75 clang             0x0000000101ab2f77 clang::FrontendAction::Execute() + 119
76 clang             0x0000000101a8da6d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
77 clang             0x0000000101a5443e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3662
78 clang             0x0000000101a4c130 cc1_main(char const**, char const**,
char const*, void*) + 816
79 clang             0x0000000101a5113d main + 3325
80 libdyld.dylib     0x00007fff8c3fc7e1 start + 0
81 libdyld.dylib     0x0000000000000085 start + 1941977252
Stack dump:
0.    Program arguments:
/Users/mtillman/tmp/llvm/build/Release+Asserts/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.0 -emit-obj -mrelax-all -disable-free -main-file-name
qv8qobjectwrapper.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 224.1
-gdwarf-2 -coverage-file
/Qt/Qt-5.1.0-x64-Asan/qtdeclarative/src/qml/.obj/debug-shared/qv8qobjectwrapper.o
-resource-dir
/Users/mtillman/tmp/llvm/build/Release+Asserts/bin/../lib/clang/3.5 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D QT_EDITION=QT_EDITION_DESKTOP -D QT_NO_LIBUDEV -D QT_NO_EVDEV -D QT_NO_XCB
-D QT_NO_XKBCOMMON -D QT_NO_URL_CAST_FROM_STRING -D
QT_NO_INTEGER_EVENT_COORDINATES -D QT_BUILD_QML_LIB -D QT_BUILDING_QT -D
QT_NO_CAST_TO_ASCII -D QT_ASCII_CAST_WARNINGS -D QT_MOC_COMPAT -D
QT_USE_QSTRINGBUILDER -D QT_DEPRECATED_WARNINGS -D
QT_DISABLE_DEPRECATED_BEFORE=0x050000 -D QT_NO_EXCEPTIONS -D
_LARGEFILE64_SOURCE -D _LARGEFILE_SOURCE -D QT_NETWORK_LIB -D QT_CORE_LIB -D
QT_V8_LIB -D V8_SHARED -D USING_V8_SHARED -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/mkspecs/macx-clang -I . -I ../../include -I
../../include/QtQml -I ../../include/QtQml/5.1.0 -I
../../include/QtQml/5.1.0/QtQml -I animations -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/include -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/include/QtNetwork -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/include/QtCore -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/include/QtCore/5.1.0 -I
/Qt/Qt-5.1.0-x64-Asan/qtbase/include/QtCore/5.1.0/QtCore -I
/Qt/Qt-5.1.0-x64-Asan/qtjsbackend/include -I
/Qt/Qt-5.1.0-x64-Asan/qtjsbackend/include/QtV8 -I
/Qt/Qt-5.1.0-x64-Asan/qtjsbackend/include/QtV8/5.1.0 -I
/Qt/Qt-5.1.0-x64-Asan/qtjsbackend/include/QtV8/5.1.0/QtV8 -I .moc/debug-shared
-Wall -W -fdeprecated-macro -fdebug-compilation-dir
/Qt/Qt-5.1.0-x64-Asan/qtdeclarative/src/qml -ferror-limit 19 -fmessage-length
202 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 1
-mstackrealign -fblocks -fobjc-runtime=macosx-10.6.0
-fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -o .obj/debug-shared/qv8qobjectwrapper.o -x c++
qml/v8/qv8qobjectwrapper.cpp
1.    qml/v8/qv8qobjectwrapper.cpp:618:118: current parser token ')'
2.    qml/v8/qv8qobjectwrapper.cpp:597:1: parsing function body 'StoreProperty'
3.    qml/v8/qv8qobjectwrapper.cpp:597:1: in compound statement ('{}')
4.    qml/v8/qv8qobjectwrapper.cpp:599:30: in compound statement ('{}')
5.    qml/v8/qv8qobjectwrapper.cpp:611:16: in compound statement ('{}')
6.   
/Qt/Qt-5.1.0-x64-Asan/qtjsbackend/include/QtV8/5.1.0/QtV8/private/../../../../../src/3rdparty/v8/include/v8.h:174:26:
LLVM IR generation of declaration 'v8::Handle'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (trunk)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ 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:
/var/folders/1z/dh7ttg6d3zzf3j_r2vkbzwxr0000gn/T/qv8qobjectwrapper-fbfa1c.cpp
clang: note: diagnostic msg:
/var/folders/1z/dh7ttg6d3zzf3j_r2vkbzwxr0000gn/T/qv8qobjectwrapper-fbfa1c.sh
clang: note: diagnostic msg:

********************
make[4]: *** [.obj/debug-shared/qv8qobjectwrapper.o] Error 254
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-qml-make_first-ordered] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtdeclarative] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140203/7619389e/attachment.html>


More information about the llvm-bugs mailing list