[LLVMbugs] [Bug 12582] New: Core dump when compiling libcxx using Clang/LLVM trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 17 18:37:02 PDT 2012


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

             Bug #: 12582
           Summary: Core dump when compiling libcxx using Clang/LLVM trunk
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: qiwei.uk at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


+ for FILE in '../src/*.cpp'
+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/algorithm.cpp
../src/algorithm.cpp:74:12: warning: implicit conversion loses integer
precision: 'result_type' (aka 'unsigned long') to '__rs_default::result_type'
(aka 'unsigned int') [-Wshorten-64-to-32]
    return __rs_g();
    ~~~~~~ ^~~~~~~~
1 warning generated.                                                            
+ for FILE in '../src/*.cpp'
+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/bind.cpp
+ for FILE in '../src/*.cpp'
+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/chrono.cpp
+ for FILE in '../src/*.cpp'
+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/condition_variable.cpp
0  clang           0x0000000001ab477f
1  clang           0x0000000001ab4c69
2  libpthread.so.0 0x000000318440f500
3  clang           0x0000000000e749b2
4  clang           0x0000000000e75e71
5  clang           0x0000000000e780bb
clang::runUninitializedVariablesAnalysis(clang::DeclContext const&, clang::CFG
const&, clang::AnalysisDeclContext&, clang::UninitVariablesHandler&,
clang::UninitVariablesAnalysisStats&) + 1515
6  clang           0x0000000000c7e101
clang::sema::AnalysisBasedWarnings::IssueWarnings(clang::sema::AnalysisBasedWarnings::Policy,
clang::sema::FunctionScopeInfo*, clang::Decl const*, clang::BlockExpr const*) +
913
7  clang           0x00000000009df340
clang::Sema::PopFunctionScopeInfo(clang::sema::AnalysisBasedWarnings::Policy
const*, clang::Decl const*, clang::BlockExpr const*) + 320
8  clang           0x0000000000a6d175
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) + 501
9  clang           0x00000000009bd9e1
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 193
10 clang           0x0000000000968c88
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&,
llvm::SmallVector<clang::Parser::LateParsedAttribute*, 2u>*) + 1096
11 clang           0x0000000000972e12
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1026
12 clang           0x0000000000963218
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 152
13 clang           0x00000000009637fe
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 798
14 clang           0x0000000000967b94
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2036
15 clang           0x0000000000981ada
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&) + 378
16 clang           0x00000000009853e3 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1539
17 clang           0x0000000000978c8e
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 446
18 clang           0x0000000000967c25
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2181
19 clang           0x0000000000981ada
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&) + 378
20 clang           0x00000000009853e3 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1539
21 clang           0x0000000000978c8e
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 446
22 clang           0x000000000096777b
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 987
23 clang           0x0000000000967d5f
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 191
24 clang           0x0000000000960b5d clang::ParseAST(clang::Sema&, bool, bool)
+ 285
25 clang           0x000000000082e594 clang::CodeGenAction::ExecuteAction() +
68
26 clang           0x00000000006e9161
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 337
27 clang           0x00000000006d033a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1098
28 clang           0x00000000006c998d cc1_main(char const**, char const**, char
const*, void*) + 8733
29 clang           0x00000000006bcef2 main + 7634
30 libc.so.6       0x0000003183c2169d __libc_start_main + 237
31 clang           0x00000000006c6bc9
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
condition_variable.cpp -pic-level 2 -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.53.0.1
-momit-leaf-frame-pointer -g -coverage-file condition_variable.o -nostdinc++
-resource-dir /usr/local/bin/../lib/clang/3.1 -I ../include -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /usr/local/bin/../lib/clang/3.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -Os
-Wall -Wextra -Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes
-Wstrict-aliasing=2 -Wstrict-overflow=4 -std=c++0x -fdeprecated-macro
-fdebug-compilation-dir /home/will/tools/libcxx/lib -ferror-limit 19
-fmessage-length 211 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o condition_variable.o -x c++
../src/condition_variable.cpp 
1.      ../src/condition_variable.cpp:45:1: current parser token 'void'
2.      ../src/condition_variable.cpp:15:1
<Spelling=../include/__config:264:37>: parsing namespace 'std'
3.      ../src/condition_variable.cpp:15:1
<Spelling=../include/__config:264:59>: parsing namespace '__1'
4.      ../src/condition_variable.cpp:36:1: parsing function body 'wait'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (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) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/condition_variable-L7XoEQ.ii
clang: note: diagnostic msg: /tmp/condition_variable-L7XoEQ.sh





clang version 3.1 (trunk 154973)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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