[LLVMbugs] [Bug 13480] New: Clang 3.2.0 Segmentation Fault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 30 05:45:23 PDT 2012


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

             Bug #: 13480
           Summary: Clang 3.2.0 Segmentation Fault
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: achille at justin.tv
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Command Line:
"/usr/local/bin/clang" -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj
-disable-free -main-file-name iterator.cpp -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 128.2 -D
NDEBUG -stdlib=libc++ -O3 -W -Wall -Wextra -std=c++11 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 204 -stack-protector 1 -mstackrealign
-fblocks -fobjc-runtime=macosx-10.7.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -x c++ iterator-ybkHOl.cpp

Stack Trace:
0  clang             0x000000010d671a22
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 14034
1  clang             0x000000010d671e99
llvm::SmallVectorImpl<char>::swap(llvm::SmallVectorImpl<char>&) + 15177
2  libsystem_c.dylib 0x00007fff8ac8bcfa _sigtramp + 26
3  libsystem_c.dylib 0x00007fff6bc7c180 _sigtramp + 18446744073189393568
4  clang             0x000000010c419600
std::__1::__tree<std::__1::pair<clang::NamespaceDecl*, clang::NamespaceDecl*>,
std::__1::__map_value_compare<clang::NamespaceDecl*, clang::NamespaceDecl*,
std::__1::less<clang::NamespaceDecl*>, true>,
std::__1::allocator<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*> >
>::destroy(std::__1::__tree_node<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*>, void*>*) + 59296
5  clang             0x000000010c4322da
std::__1::__tree<std::__1::pair<clang::NamespaceDecl*, clang::NamespaceDecl*>,
std::__1::__map_value_compare<clang::NamespaceDecl*, clang::NamespaceDecl*,
std::__1::less<clang::NamespaceDecl*>, true>,
std::__1::allocator<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*> >
>::destroy(std::__1::__tree_node<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*>, void*>*) + 160890
6  clang             0x000000010c61f63e
llvm::SmallVectorTemplateBase<llvm::SmallVector<clang::DeducedTemplateArgument,
4u>, false>::grow(unsigned long) + 142046
7  clang             0x000000010c629d15 clang::TagType const*
clang::Type::castAs<clang::TagType>() const + 949
8  clang             0x000000010c6050fd
llvm::SmallVectorTemplateBase<llvm::SmallVector<clang::DeducedTemplateArgument,
4u>, false>::grow(unsigned long) + 34205
9  clang             0x000000010c64a87b
std::__1::deque<std::__1::pair<clang::ValueDecl*, clang::SourceLocation>,
std::__1::allocator<std::__1::pair<clang::ValueDecl*, clang::SourceLocation> >
>::__add_back_capacity() + 124075
10 clang             0x000000010c642685
std::__1::deque<std::__1::pair<clang::ValueDecl*, clang::SourceLocation>,
std::__1::allocator<std::__1::pair<clang::ValueDecl*, clang::SourceLocation> >
>::__add_back_capacity() + 90805
11 clang             0x000000010c431cad
std::__1::__tree<std::__1::pair<clang::NamespaceDecl*, clang::NamespaceDecl*>,
std::__1::__map_value_compare<clang::NamespaceDecl*, clang::NamespaceDecl*,
std::__1::less<clang::NamespaceDecl*>, true>,
std::__1::allocator<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*> >
>::destroy(std::__1::__tree_node<std::__1::pair<clang::NamespaceDecl*,
clang::NamespaceDecl*>, void*>*) + 159309
12 clang             0x000000010c61f63e
llvm::SmallVectorTemplateBase<llvm::SmallVector<clang::DeducedTemplateArgument,
4u>, false>::grow(unsigned long) + 142046
13 clang             0x000000010c629d15 clang::TagType const*
clang::Type::castAs<clang::TagType>() const + 949
14 clang             0x000000010c6050fd
llvm::SmallVectorTemplateBase<llvm::SmallVector<clang::DeducedTemplateArgument,
4u>, false>::grow(unsigned long) + 34205
15 clang             0x000000010c606833
llvm::SmallVectorTemplateBase<llvm::SmallVector<clang::DeducedTemplateArgument,
4u>, false>::grow(unsigned long) + 40147
16 clang             0x000000010c5b3758
std::__1::__split_buffer<std::__1::pair<llvm::APSInt, clang::CaseStmt*>,
std::__1::allocator<std::__1::pair<llvm::APSInt, clang::CaseStmt*>
>&>::push_front(std::__1::pair<llvm::APSInt, clang::CaseStmt*> const&) + 85112
17 clang             0x000000010c32e601
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 185057
18 clang             0x000000010c319621
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 99073
19 clang             0x000000010c3694a0
std::__1::__split_buffer<clang::Parser::ParsingClass**,
std::__1::allocator<clang::Parser::ParsingClass**>&>::push_front(clang::Parser::ParsingClass**
const&) + 205472
20 clang             0x000000010c368a3e
std::__1::__split_buffer<clang::Parser::ParsingClass**,
std::__1::allocator<clang::Parser::ParsingClass**>&>::push_front(clang::Parser::ParsingClass**
const&) + 202814
21 clang             0x000000010c374c7d
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 28589
22 clang             0x000000010c3295fb
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 164571
23 clang             0x000000010c3290a6
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 163206
24 clang             0x000000010c3175ec
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 90828
25 clang             0x000000010c37479e
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 27342
26 clang             0x000000010c374147
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 25719
27 clang             0x000000010c30e4e6
std::__1::__split_buffer<std::__1::pair<llvm::WeakVH, llvm::Constant*>,
std::__1::allocator<std::__1::pair<llvm::WeakVH, llvm::Constant*>
>&>::push_front(std::__1::pair<llvm::WeakVH, llvm::Constant*> const&) + 53702
28 clang             0x000000010c2d6587
std::__1::__split_buffer<clang::CXXRecordDecl const*,
std::__1::allocator<clang::CXXRecordDecl
const*>&>::push_front(clang::CXXRecordDecl const* const&) + 7111
29 clang             0x000000010c0cc592
std::__1::__split_buffer<clang::FileEntry const*,
std::__1::allocator<clang::FileEntry const*>&>::push_front(clang::FileEntry
const* const&) + 12274
30 clang             0x000000010c0aa448
std::__1::__split_buffer<clang::CompilerInstance*,
std::__1::allocator<clang::CompilerInstance*>&>::push_front(clang::CompilerInstance*
const&) + 16120
31 clang             0x000000010c08f024 void
std::__1::__tree_balance_after_insert<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*,
std::__1::__tree_node_base<void*>*) + 4292
32 clang             0x000000010c086363
33 clang             0x000000010c08afe9
std::__1::__split_buffer<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > >&>::push_front(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 1193
34 clang             0x000000010c084b34
35 clang             0x0000000000000038
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-macosx10.7.0 -emit-obj -disable-free -main-file-name iterator.cpp
-pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 128.2 -coverage-file
CMakeFiles/json++.dir/src/json/iterator.cpp.o -resource-dir
/usr/local/bin/../lib/clang/3.2 -D NDEBUG -I
/Users/achille/Desktop/Shared/libjsonxx/src -fmodule-cache-path
/var/folders/40/qxk80ck17678tdrj4clxjr0r0000gn/T/clang-module-cache
-stdlib=libc++ -O3 -W -Wall -Wextra -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /Users/achille/Desktop/Shared/libjsonxx -ferror-limit
19 -fmessage-length 204 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.7.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/json++.dir/src/json/iterator.cpp.o -x c++
/Users/achille/Desktop/Shared/libjsonxx/src/json/iterator.cpp 
1.    /Users/achille/Desktop/Shared/libjsonxx/src/json/object.h:438:35: current
parser token ';'
2.    /Users/achille/Desktop/Shared/libjsonxx/src/json/object.h:35:1: parsing
namespace 'json'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 159915)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/40/qxk80ck17678tdrj4clxjr0r0000gn/T/iterator-ybkHOl.cpp
clang: note: diagnostic msg:
/var/folders/40/qxk80ck17678tdrj4clxjr0r0000gn/T/iterator-ybkHOl.sh
clang: note: diagnostic msg: 

********************

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