[LLVMbugs] [Bug 11520] New: clang crash while building mimosa

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 9 04:48:31 PST 2011


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

             Bug #: 11520
           Summary: clang crash while building mimosa
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bique.alexandre at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Hi,

I tried clang 3.0 to compile mimosa (https://github.com/abique/mimosa) at
revision ac298032a910fc94f5f8b39495cd4dd1f7554205.

I got the following error:

make
[  1%] Built target mimosa-options
[  4%] Built target mimosa-runtime
[  6%] Built target mimosa
[ 10%] Built target mimosa-log
[ 15%] Built target mimosa-uri
[ 31%] Built target mimosa-stream
[ 33%] Building CXX object mimosa/net/CMakeFiles/mimosa-net.dir/server.cc.o
0  libLLVM-3.0.so  0x00007f9836c7383f
1  libLLVM-3.0.so  0x00007f9836c73e01
2  libpthread.so.0 0x00007f9835dee850
3  clang           0x0000000000d3dcce
clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 14
4  clang           0x000000000096e7ef
clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo*,
clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>, clang::SourceLocation)
+ 239
5  clang           0x000000000096ed24
clang::Sema::ActOnCXXTypeConstructExpr(clang::OpaquePtr<clang::QualType>,
clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>, clang::SourceLocation)
+ 84
6  clang           0x0000000000834a3a
clang::Parser::ParseCXXTypeConstructExpression(clang::DeclSpec const&) + 666
7  clang           0x000000000082d381 clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 7361
8  clang           0x000000000082dfde clang::Parser::ParseCastExpression(bool,
bool, bool) + 30
9  clang           0x000000000082e8cf
clang::Parser::ParseAssignmentExpression() + 31
10 clang           0x000000000082f699 clang::Parser::ParseExpression() + 9
11 clang           0x00000000007f1ca2
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 50
12 clang           0x00000000007ee4c8
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2616
13 clang           0x00000000007f22e6
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
14 clang           0x00000000007ee4dd
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2637
15 clang           0x00000000007eb0c1
clang::Parser::ParseCompoundStatementBody(bool) + 417
16 clang           0x00000000007ebea6
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool, unsigned
int) + 38
17 clang           0x00000000007ebee1
clang::Parser::ParseCompoundStatement(clang::ParsedAttributes&, bool) + 17
18 clang           0x00000000007ee4f7
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2663
19 clang           0x00000000007f22e6
clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 758
20 clang           0x00000000007ee4dd
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 2637
21 clang           0x00000000007eb0c1
clang::Parser::ParseCompoundStatementBody(bool) + 417
22 clang           0x00000000007ebdaa
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 138
23 clang           0x000000000080589c
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1116
24 clang           0x0000000000813212
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 610
25 clang           0x0000000000801485
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 149
26 clang           0x0000000000801af6
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 678
27 clang           0x00000000008036bd
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2685
28 clang           0x0000000000821c8f
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::Parser::BalancedDelimiterTracker&) + 367
29 clang           0x00000000008229de clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1854
30 clang           0x0000000000818311
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 641
31 clang           0x000000000080304d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1037
32 clang           0x0000000000821c8f
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::Parser::BalancedDelimiterTracker&) + 367
33 clang           0x00000000008229de clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1854
34 clang           0x0000000000818311
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 641
35 clang           0x000000000080304d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1037
36 clang           0x0000000000803c27
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 167
37 clang           0x00000000007db1fd clang::ParseAST(clang::Sema&, bool) + 269
38 clang           0x00000000006c3e13 clang::CodeGenAction::ExecuteAction() +
51
39 clang           0x00000000005c9c3f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 319
40 clang           0x00000000005b251a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1114
41 clang           0x00000000005aa1a4 cc1_main(char const**, char const**, char
const*, void*) + 820
42 clang           0x00000000005a8b1c main + 620
43 libc.so.6       0x00007f983555e14d __libc_start_main + 237
44 clang           0x00000000005a9d19
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
server.cc -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22.0.20111201 -momit-leaf-frame-pointer -coverage-file
CMakeFiles/mimosa-net.dir/server.cc.o -resource-dir /usr/bin/../lib/clang/3.0
-D _GNU_SOURCE -D _LARGEFILE64_SOURCE -I /home/abique/develop/mimosa/.
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2
-internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include -Wall
-Wextra -std=c++0x -fdeprecated-macro -ferror-limit 19 -fmessage-length 239
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/mimosa-net.dir/server.cc.o -x c++
/home/abique/develop/mimosa/mimosa/net/server.cc 
1.    /home/abique/develop/mimosa/mimosa/net/server.cc:115:15: current parser
token '.'
2.    /home/abique/develop/mimosa/mimosa/net/server.cc:12:1: parsing namespace
'mimosa'
3.    /home/abique/develop/mimosa/mimosa/net/server.cc:14:3: parsing namespace
'net'
4.    /home/abique/develop/mimosa/mimosa/net/server.cc:107:5: parsing function
body 'serveOne'
5.    /home/abique/develop/mimosa/mimosa/net/server.cc:107:5: in compound
statement ('{}')
6.    /home/abique/develop/mimosa/mimosa/net/server.cc:110:7: in compound
statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/server-R9faDr.ii
make[2]: *** [mimosa/net/CMakeFiles/mimosa-net.dir/server.cc.o] Error 254
make[1]: *** [mimosa/net/CMakeFiles/mimosa-net.dir/all] Error 2
make: *** [all] Error 2


Thanks for you attention.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list