[llvm-bugs] [Bug 27576] New: Clang compiler segmentation fault

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 29 12:56:23 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27576

            Bug ID: 27576
           Summary: Clang compiler segmentation fault
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: patrick at foreflight.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Per the crash instructions, I'm submitting this info here.

0  libLLVM-3.5.so  0x00007efed760f4b2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.5.so  0x00007efed760f29c
2  libpthread.so.0 0x00007efed637a100
3  clang           0x0000000000c52bfb
4  clang           0x0000000000c533a5
clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*,
clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>,
clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&) + 1125
5  clang           0x0000000000bb9ab8
clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*,
clang::DeclAccessPair, clang::TemplateArgumentListInfo*,
llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 392
6  clang           0x0000000000b5a879
7  clang           0x0000000000b5ace6
8  clang           0x0000000000b62aa9
clang::InitializationSequence::InitializeFrom(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool) + 2665
9  clang           0x0000000000b63293
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool) + 403
10 clang           0x0000000000b34a28
11 clang           0x0000000000b36522
clang::Sema::BuildTypeTrait(clang::TypeTrait, clang::SourceLocation,
llvm::ArrayRef<clang::TypeSourceInfo*>, clang::SourceLocation) + 178
12 clang           0x0000000000c6ea68
13 clang           0x0000000000c6fc05
14 clang           0x0000000000c7a189
15 clang           0x0000000000c7c57e
16 clang           0x0000000000c6c62c
17 clang           0x0000000000c6d09a
18 clang           0x0000000000c6d1bb
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 91
19 clang           0x0000000000c6d627
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 1079
20 clang           0x0000000000c712ac
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 700
21 clang           0x0000000000c7263d
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 2029
22 clang           0x0000000000cb4721
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1793
23 clang           0x0000000000cb4a65
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 21
24 clang           0x00000000009a3d6b
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 219
25 clang           0x0000000000b060c5
clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&,
clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo**) + 85
26 clang           0x0000000000c82fe6
27 clang           0x0000000000c8305d
28 clang           0x0000000000c6fa5a
29 clang           0x0000000000c7a189
30 clang           0x0000000000c7c57e
31 clang           0x0000000000c6c62c
32 clang           0x0000000000c6d09a
33 clang           0x0000000000c6d1bb
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 91
34 clang           0x0000000000c6d627
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 1079
35 clang           0x0000000000c712ac
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 700
36 clang           0x0000000000c7263d
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 2029
37 clang           0x0000000000cb4721
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1793
38 clang           0x0000000000cb4a65
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 21
39 clang           0x00000000009a3d6b
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 219
40 clang           0x0000000000b060c5
clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&,
clang::DeclarationNameInfo const&, bool, clang::TypeSourceInfo**) + 85
41 clang           0x0000000000c82fe6
42 clang           0x0000000000c8305d
43 clang           0x0000000000c6fa5a
44 clang           0x0000000000c78215
45 clang           0x0000000000c6fd2a
46 clang           0x0000000000c86690 clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 80
47 clang           0x0000000000c8a6a8
48 clang           0x0000000000c8c36c
clang::Sema::InstantiateExceptionSpec(clang::SourceLocation,
clang::FunctionDecl*) + 556
49 clang           0x0000000000ab85a8
clang::Sema::ResolveExceptionSpec(clang::SourceLocation,
clang::FunctionProtoType const*) + 120
50 clang           0x0000000000af0f14
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*) + 1204
51 clang           0x0000000000b5591c
52 clang           0x0000000000b5e223
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::QualType*) + 3011
53 clang           0x0000000000b29954
clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) + 1076
54 clang           0x0000000000c745b3
55 clang           0x0000000000c6fdd5
56 clang           0x0000000000c7611f
57 clang           0x0000000000c7ee55
58 clang           0x0000000000c7fabb
59 clang           0x0000000000c7fc1b
60 clang           0x0000000000c7f075
61 clang           0x0000000000c828c0 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 80
62 clang           0x0000000000c988b2
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2226
63 clang           0x0000000000af1203
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*) + 1955
64 clang           0x0000000000b03b4c
65 clang           0x0000000000b03c3d
clang::Sema::MarkDeclRefReferenced(clang::DeclRefExpr*) + 125
66 clang           0x0000000000ba982a
clang::Sema::FixOverloadedFunctionReference(clang::Expr*,
clang::DeclAccessPair, clang::FunctionDecl*) + 1242
67 clang           0x0000000000bc888b
68 clang           0x0000000000bc8e1d
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 621
69 clang           0x0000000000b0b982 clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool) + 1714
70 clang           0x0000000000c764b8
71 clang           0x0000000000c6fdb5
72 clang           0x0000000000c70e42
73 clang           0x0000000000c70651
74 clang           0x0000000000c738d8
75 clang           0x0000000000c6fd1a
76 clang           0x0000000000c70e42
77 clang           0x0000000000c70fbe
clang::Sema::SubstInitializer(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&, bool) + 78
78 clang           0x0000000000c954bc
clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl*,
clang::CXXConstructorDecl const*, clang::MultiLevelTemplateArgumentList const&)
+ 284
79 clang           0x0000000000c98a0f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2575
80 clang           0x0000000000c97c42
clang::Sema::PerformPendingInstantiations(bool) + 146
81 clang           0x0000000000c9878f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1935
82 clang           0x0000000000c97c42
clang::Sema::PerformPendingInstantiations(bool) + 146
83 clang           0x0000000000c9878f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1935
84 clang           0x0000000000c97c42
clang::Sema::PerformPendingInstantiations(bool) + 146
85 clang           0x0000000000990c68 clang::Sema::ActOnEndOfTranslationUnit()
+ 536
86 clang           0x00000000008fb633
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 499
87 clang           0x00000000008f4d4b clang::ParseAST(clang::Sema&, bool, bool)
+ 539
88 clang           0x000000000075e5f2 clang::CodeGenAction::ExecuteAction() +
50
89 clang           0x00000000005d0ed6 clang::FrontendAction::Execute() + 118
90 clang           0x00000000005ac5c0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 256
91 clang           0x00000000005961d4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1988
92 clang           0x000000000058ffc0 cc1_main(char const**, char const**, char
const*, void*) + 1280
93 clang           0x000000000058dc7e main + 8526
94 libc.so.6       0x00007efed4f52b15 __libc_start_main + 245
95 clang           0x000000000058e541
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-amazon-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
PerformanceEngineImpl.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.52.0.1
-dwarf-column-info -coverage-file
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/CMakeFiles/PerformanceEngine.dir/PerformanceEngineImpl.cpp.o
-resource-dir /usr/bin/../lib/clang/3.5.1 -isystem /usr/local/include/c++/v1 -D
PerformanceEngine_EXPORTS -I
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/PerformanceEngine
-I
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/generated/jni
-I
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/cpplibrary/cpp
-I /home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/. -I
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/../ThirdParty/djinni/support-lib/jni
-I /usr/lib/jvm/java/include -I /usr/lib/jvm/java/include/linux -I
/usr/include/c++/v1 -internal-isystem /usr/bin/../include/c++/v1
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.5.1/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -std=c++14 -fdeprecated-macro
-fdebug-compilation-dir
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine -ferror-limit
19 -fmessage-length 122 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/PerformanceEngine.dir/PerformanceEngineImpl.cpp.o -x c++
/home/ec2-user/scratch/appservices/AppServices/PerformanceEngine/PerformanceEngineImpl.cpp 
1.    <eof> parser at end of file
2.    /usr/include/c++/v1/memory:4785:1: instantiating function definition
'make_shared'
3.    /usr/include/c++/v1/memory:4083:9: instantiating function definition
'make_shared'
4.    /usr/include/c++/v1/memory:3810:9: instantiating function definition
'__shared_ptr_emplace'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.1 (tags/RELEASE_351/final)
Target: x86_64-amazon-linux-gnu
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: 
********************

-- 
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/20160429/d885ca86/attachment.html>


More information about the llvm-bugs mailing list