<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - segfault while compiling"
   href="http://llvm.org/bugs/show_bug.cgi?id=16509">16509</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault while compiling
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>halayli@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>