[LLVMbugs] [Bug 17084] New: Segmentation fault in clang::Sema::BuildExpressionFromIntegralTemplateArgument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 3 09:59:59 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17084
Bug ID: 17084
Summary: Segmentation fault in
clang::Sema::BuildExpressionFromIntegralTemplateArgume
nt
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: Christian.Stoitner at gmx.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Stack Trace:
0 libLLVM-3.3.so 0x00007fc90b84a0a2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 libLLVM-3.3.so 0x00007fc90b849d29
2 libpthread.so.0 0x00007fc90b0aac20
3 clang 0x0000000000bafc4c
clang::Sema::BuildExpressionFromIntegralTemplateArgument(clang::TemplateArgument
const&, clang::SourceLocation) + 60
4 clang 0x0000000000c1039d
5 clang 0x0000000000c106e9
6 clang 0x0000000000c0794b
7 clang 0x0000000000c1b0ef clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 79
8 clang 0x0000000000ba2077
9 clang 0x0000000000bbd81e
clang::Sema::CheckTemplateArgumentList(clang::TemplateDecl*,
clang::SourceLocation, clang::TemplateArgumentListInfo&, bool,
llvm::SmallVectorImpl<clang::TemplateArgument>&, bool*) + 2910
10 clang 0x0000000000bbe4d3
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 387
11 clang 0x00000000009af4e0
clang::Sema::ActOnCXXNestedNameSpecifier(clang::Scope*, clang::CXXScopeSpec&,
clang::SourceLocation, clang::OpaquePtr<clang::TemplateName>,
clang::SourceLocation, clang::SourceLocation,
llvm::MutableArrayRef<clang::ParsedTemplateArgument>, clang::SourceLocation,
clang::SourceLocation, bool) + 224
12 clang 0x00000000009474a5
clang::Parser::ParseOptionalCXXScopeSpecifier(clang::CXXScopeSpec&,
clang::OpaquePtr<clang::QualType>, bool, bool*, bool, clang::IdentifierInfo**)
+ 4373
13 clang 0x0000000000908a4e
clang::Parser::TryAnnotateCXXScopeToken(bool) + 94
14 clang 0x00000000009189a7
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 6471
15 clang 0x0000000000922343
clang::Parser::ParseParameterDeclarationClause(clang::Declarator&,
clang::ParsedAttributes&, llvm::SmallVector<clang::DeclaratorChunk::ParamInfo,
16u>&, clang::SourceLocation&) + 803
16 clang 0x0000000000923539
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 1545
17 clang 0x00000000009242c9
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 1497
18 clang 0x000000000091c867
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 199
19 clang 0x000000000091cfa2
clang::Parser::ParseDeclarator(clang::Declarator&) + 18
20 clang 0x000000000092e58a
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 682
21 clang 0x0000000000930c54
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 2116
22 clang 0x0000000000932738
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 2936
23 clang 0x0000000000917d34
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 3284
24 clang 0x0000000000974878
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 840
25 clang 0x0000000000975b8a
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 682
26 clang 0x000000000097602d
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 141
27 clang 0x0000000000921fe6
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 598
28 clang 0x000000000090e502
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1890
29 clang 0x000000000092bf3a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 378
30 clang 0x000000000092c606 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1590
31 clang 0x0000000000922010
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 640
32 clang 0x000000000090e502
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1890
33 clang 0x000000000090e6ef
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 191
34 clang 0x0000000000906636 clang::ParseAST(clang::Sema&, bool, bool)
+ 262
35 clang 0x0000000000649ec9 clang::FrontendAction::Execute() + 185
36 clang 0x000000000062aa65
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 277
37 clang 0x000000000061437a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1514
38 clang 0x000000000060f588 cc1_main(char const**, char const**, char
const*, void*) + 1112
39 clang 0x000000000060d831 main + 8065
40 libc.so.6 0x00007fc90a7f4b4d __libc_start_main + 237
41 clang 0x000000000060e651
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
test.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.1 -g -coverage-file
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/.obj/test/src/test.cpp.o
-resource-dir /usr/bin/../lib/clang/3.3 -isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/mkspecs/linux-g++-64
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtCore
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/GeneratedFiles/test
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtGui/5.1.0/QtGui
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtGui
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtOpenGL/5.1.0/QtOpenGL
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include
-isystem
/home/christian/Projects/external/qt/qt-everywhere-opensource-src-5.1.0/buildResult/include/QtOpenGL
-isystem /media/share/Projects/coding/OpenGLTest/newWorkspace/libs/eigen/3.2.0
-isystem
/media/share/Projects/coding/OpenGLTest/newWorkspace/libs/oglplus/0.35.0/include
-D QT_CORE_LIB -D QT_GUI_LIB -D QT_OPENGL_LIB -internal-isystem
/usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.3/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -Wextra -Wextra -Weffc++ -pedantic
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/media/share/Projects/coding/OpenGLTest/newWorkspace -ferror-limit 19
-fmessage-length 0 -fvisibility default -ftrapv -mstackrealign
-fobjc-runtime=gcc -fobjc-default-synthesize-properties -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option
-vectorize-loops -o
/media/share/Projects/coding/OpenGLTest/newWorkspace/qt-5-1-0-debug/.obj/test/src/test.cpp.o
-x c++ /media/share/Projects/coding/OpenGLTest/newWorkspace/src/test.cpp
1.
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:40:40:
current parser token 'Scalar'
2.
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:14:1:
parsing namespace 'oglplus'
3.
/media/share/Projects/coding/OpenGLTest/newWorkspace/src/base/eigenUniformCrash.hpp:28:1:
parsing struct/union/class body 'UniformSpecOps'
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.3 (tags/RELEASE_33/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
--
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/20130903/b0616f94/attachment.html>
More information about the llvm-bugs
mailing list