<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 --- - parser crash"
   href="http://llvm.org/bugs/show_bug.cgi?id=15176">15176</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>parser crash
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.1
          </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>Frontend
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>i'm playing with llvm/clang and got a core dump while trying to build c++11
source.
let me know if you need more information.

0  libLLVM-3.0.so.1 0x40daafc8
1  libLLVM-3.0.so.1 0x40dab4e4
2                   0x4001d400 __kernel_sigreturn + 0
3  clang            0x08701fc4
clang::Sema::DiagnoseUnexpandedParameterPack(clang::Expr*,
clang::Sema::UnexpandedParameterPackContext) + 36
4  clang            0x0856c1e2
clang::Sema::AddCXXDirectInitializerToDecl(clang::Decl*, clang::SourceLocation,
clang::ASTMultiPtr<clang::Expr*>, clang::SourceLocation, bool) + 1906
5  clang            0x0845ce29
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1337
6  clang            0x08460b74
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1300
7  clang            0x084661b3
clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool,
clang::Parser::ForRangeInit*) + 803
8  clang            0x084663d2
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 178
9  clang            0x084376ad
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 413
10 clang            0x08434954 clang::Parser::ParseCompoundStatementBody(bool)
+ 1652
11 clang            0x084352b4
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 164
12 clang            0x08451cc9
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1049
13 clang            0x084608d6
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 630
14 clang            0x0844cdd8
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 216
15 clang            0x0844d536
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 742
16 clang            0x0844f786
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 3670
17 clang            0x0844fed4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 180
18 clang            0x08422b38 clang::ParseAST(clang::Sema&, bool) + 296
19 clang            0x081ffe47 clang::ASTFrontendAction::ExecuteAction() + 103
20 clang            0x082f4cd2 clang::CodeGenAction::ExecuteAction() + 66
21 clang            0x082007a3 clang::FrontendAction::Execute() + 275
22 clang            0x081e6fd5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 325
23 clang            0x081ceb86
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1126
24 clang            0x081c74fc cc1_main(char const**, char const**, char
const*, void*) + 876
25 clang            0x081c4b95 main + 629
26 libc.so.6        0x415b5e46 __libc_start_main + 230
27 clang            0x081c703d
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name client.cpp
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.22 -momit-leaf-frame-pointer -g
-coverage-file CMakeFiles/rpc-client.dir/src/rpc/client.cpp.o -resource-dir
/usr/bin/../lib/clang/3.0 -D _THREAD_SAFE -D _GNU_SOURCE -I /usr/local/include
-I /usr/X11R6/include -I /home/ury/tmp/xSLAr/stuff.git/. -I
/home/ury/tmp/xSLAr/stuff.git/include -I /usr/include/tut -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/include/c++/4.6
-internal-isystem /usr/include/c++/4.6/i486-linux-gnu -internal-isystem
/usr/include/c++/4.6/backward -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem
/usr/include/i486-linux-gnu -internal-externc-isystem /usr/include -O3
-Woverloaded-virtual -Wall -W -Wno-long-long -Wformat -Wno-variadic-macros
-Wfloat-equal -Wdisabled-optimization -Wno-unused-parameter -pedantic
-std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 138 -pthread
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/rpc-client.dir/src/rpc/client.cpp.o -x c++
/home/ury/tmp/xSLAr/stuff.git/src/rpc/client.cpp 
1.    /home/ury/tmp/xSLAr/stuff.git/src/rpc/client.cpp:29:69: current parser
token ';'
2.    /home/ury/tmp/xSLAr/stuff.git/src/rpc/client.cpp:28:1: parsing function
body 'main'
3.    /home/ury/tmp/xSLAr/stuff.git/src/rpc/client.cpp:28:1: in compound
statement ('{}')
clang: error: unable to execute command: Segmentation fault (core dumped)

$clang --version
Debian clang version 3.0-6 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix

part of code (client.cpp)
28: int main(void)
29: {
30:     Util::SignalHandler spipe(SIGPIPE, [](int, siginfo_t *, void *){;});</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>