[LLVMbugs] [Bug 16509] New: segfault while compiling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 1 11:00:29 PDT 2013


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

            Bug ID: 16509
           Summary: segfault while compiling
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: halayli at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I get this intermittent segfault while compiling. Running make clean && make
few times resolves the issue. The code compiled is generated by protobuf.

0  libLLVM-3.2.so.1 0x00002b419ff3600f
1  libLLVM-3.2.so.1 0x00002b419ff365d1
2  libpthread.so.0  0x00002b41a091acb0
3  clang            0x000000000107231d
4  clang            0x0000000001076822
clang::SourceManager::getLineNumber(clang::FileID, unsigned int, bool*) const +
482
5  clang            0x000000000107a461
clang::SourceManager::getPresumedLoc(clang::SourceLocation) const + 449
6  clang            0x00000000010423cf
clang::Preprocessor::ExpandBuiltinMacro(clang::Token&) + 863
7  clang            0x000000000104403b
clang::Preprocessor::HandleMacroExpandedIdentifier(clang::Token&,
clang::MacroInfo*) + 123
8  clang            0x000000000105552b
clang::Preprocessor::HandleIdentifier(clang::Token&) + 699
9  clang            0x000000000102948d
clang::Preprocessor::CachingLex(clang::Token&) + 397
10 clang            0x00000000008876f0
clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&,
llvm::SmallVectorImpl<clang::SourceLocation>&, void
(clang::Sema::*)(clang::Scope*, clang::Expr*, llvm::ArrayRef<clang::Expr*>),
clang::Expr*) + 240
11 clang            0x000000000088f792
clang::Parser::ParseCXXTypeConstructExpression(clang::DeclSpec const&) + 674
12 clang            0x0000000000884a6d clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 8077
13 clang            0x000000000088635d clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 29
14 clang            0x000000000088381f clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 3391
15 clang            0x000000000088635d clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 29
16 clang            0x000000000088759f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
17 clang            0x00000000008864f0
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 288
18 clang            0x00000000008875af
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 47
19 clang            0x00000000008864f0
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 288
20 clang            0x00000000008875af
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 47
21 clang            0x0000000000888619
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
22 clang            0x00000000008bc562 clang::Parser::ParseExprStatement() + 50
23 clang            0x00000000008b7d23
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3059
24 clang            0x00000000008b7fcd
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 141
25 clang            0x00000000008b4627
clang::Parser::ParseCompoundStatementBody(bool) + 647
26 clang            0x00000000008bd3b2
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 130
27 clang            0x000000000085cd5e
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
1534
28 clang            0x0000000000867231
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 945
29 clang            0x0000000000859479
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 249
30 clang            0x0000000000859b49
31 clang            0x0000000000859baf
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 31
32 clang            0x000000000085b09c
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 284
33 clang            0x000000000085bb48
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 184
34 clang            0x000000000085246d clang::ParseAST(clang::Sema&, bool,
bool) + 509
35 clang            0x00000000005e3501 clang::FrontendAction::Execute() + 97
36 clang            0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
37 clang            0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
38 clang            0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
39 clang            0x00000000005a69c0 main + 672
40 libc.so.6        0x00002b41a106076d __libc_start_main + 237
41 clang            0x00000000005a79d9

-- 
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/20130701/a8b5ef8c/attachment.html>


More information about the llvm-bugs mailing list