[LLVMbugs] [Bug 10343] New: Segmentation fault with svn r134996 of llvm/clang on c++ code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 12 14:51:02 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10343
Summary: Segmentation fault with svn r134996 of llvm/clang on
c++ code
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dane at dbsgeo.com
CC: llvmbugs at cs.uiuc.edu
My first bug here. Let me know what else I can provide to help track down the
issue.
<pre>
$ clang++ -o src/cairo_renderer.os -c -arch i386 -arch x86_64
-Iosx/sources/include -Iosx/sources/include/freetype2 -DHAVE_JPEG -ansi -Wall
-Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses
-Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE
-DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -DHAVE_CAIRO
-fPIC -Iagg/include -I. -Iinclude -Iosx/sources/include/freetype2
-Iosx/sources/include -I/Library/Frameworks/SQLite3.framework/unix/include
-I/Library/Frameworks/UnixImageIO.framework/unix/include
-I/Library/Frameworks/PROJ.framework/unix/include
-I/Library/Frameworks/GDAL.framework/Versions/1.8/Headers
-I/usr/local/pgsql/include -I/usr/include -I/usr/include/libxml2
-Iosx/sources/include/cairomm-1.0 -Iosx/sources/lib/cairomm-1.0/include
-Iosx/sources/include/cairo -Iosx/sources/include/sigc++-2.0
-Iosx/sources/lib/sigc++-2.0/include -Iosx/sources/include/pixman-1
-I/Library/Frameworks/UnixImageIO.framework/unix/include/libpng14
src/cairo_renderer.cpp
0 clang 0x00000001018f7d22
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
754
1 clang 0x00000001018f8b73
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
4419
2 libSystem.B.dylib 0x00007fff85a3b1ba _sigtramp + 26
3 libSystem.B.dylib 0x000000013042f410 _sigtramp + 2862563952
4 clang 0x0000000100313701 clang::CodeGenerator::~CodeGenerator()
+ 43617
5 clang 0x0000000100315b6f clang::CodeGenerator::~CodeGenerator()
+ 52943
6 clang 0x00000001001bc28b llvm::cast_retty<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>::ret_type llvm::cast<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>(clang::CXXDestructorDecl const* const&) + 8059
7 clang 0x00000001001bfa3d llvm::cast_retty<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>::ret_type llvm::cast<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>(clang::CXXDestructorDecl const* const&) +
22317
8 clang 0x00000001001bfb32 llvm::cast_retty<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>::ret_type llvm::cast<clang::CXXMethodDecl,
clang::CXXDestructorDecl const*>(clang::CXXDestructorDecl const* const&) +
22562
9 clang 0x00000001002fdc42 llvm::DenseMap<clang::Type const*,
llvm::MDNode*, llvm::DenseMapInfo<clang::Type const*>,
llvm::DenseMapInfo<llvm::MDNode*> >::grow(unsigned int) + 12178
10 clang 0x00000001002efa83 llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 20899
11 clang 0x00000001002112fc llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 37324
12 clang 0x00000001002119a5 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 39029
13 clang 0x0000000100212e7c llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 44364
14 clang 0x0000000100250d36
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 73126
15 clang 0x00000001002497e3
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 43091
16 clang 0x000000010024a73d
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 47021
17 clang 0x0000000100213df6 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 48326
18 clang 0x000000010023f9f2
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 2658
19 clang 0x00000001002496cb
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 42811
20 clang 0x000000010024a73d
clang::CodeGen::CGRecordLayout::getVirtualBaseIndex(clang::CXXRecordDecl
const*) const + 47021
21 clang 0x000000010020af50 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 11808
22 clang 0x0000000100218915 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateBitCast(llvm::Value*, llvm::Type const*, llvm::Twine const&) + 67557
23 clang 0x00000001002bc7ac llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 31804
24 clang 0x00000001002bc07e llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 29966
25 clang 0x00000001002bc674 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 31492
26 clang 0x00000001002bf61b llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 43691
27 clang 0x00000001002bf9e9 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 44665
28 clang 0x00000001002bc290 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 30496
29 clang 0x00000001002e88bd
clang::BackendConsumer::InlineAsmDiagHandler(llvm::SMDiagnostic const&, void*,
unsigned int) + 18285
30 clang 0x00000001002f153e llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 27742
31 clang 0x00000001002f3d4b llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 37995
32 clang 0x00000001002f59ee llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 45326
33 clang 0x00000001002f5a33 llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 45395
34 clang 0x00000001002e3ada
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 106
35 clang 0x0000000100316694 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 804
36 clang 0x00000001002e228c llvm::DenseMap<clang::GlobalDecl, long
long, llvm::DenseMapInfo<clang::GlobalDecl>, llvm::DenseMapInfo<long long>
>::grow(unsigned int) + 2204
37 clang 0x00000001000433d1 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 8081
38 clang 0x0000000100024f8b llvm::raw_ostream::operator<<(char
const*) + 1707
39 clang 0x000000010001b8dc
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 9116
40 clang 0x0000000100023dae std::vector<std::string,
std::allocator<std::string>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >, std::string const&) +
13582
41 clang 0x000000010001acc4
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 6020
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.8 -emit-obj -disable-free -main-file-name
cairo_renderer.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 95.2.12 -coverage-file
/var/folders/vC/vCkzLwkoGlO6b78KTUPPWE+++TI/-Tmp-/cc-nodwi2.o -resource-dir
/usr/local/bin/../lib/clang/3.0 -D HAVE_JPEG -D DARWIN -D
BOOST_SPIRIT_THREADSAFE -D MAPNIK_THREADSAFE -D NDEBUG -D HAVE_CAIRO -I
osx/sources/include -I osx/sources/include/freetype2 -I agg/include -I . -I
include -I osx/sources/include/freetype2 -I osx/sources/include -I
/Library/Frameworks/SQLite3.framework/unix/include -I
/Library/Frameworks/UnixImageIO.framework/unix/include -I
/Library/Frameworks/PROJ.framework/unix/include -I
/Library/Frameworks/GDAL.framework/Versions/1.8/Headers -I
/usr/local/pgsql/include -I /usr/include -I /usr/include/libxml2 -I
osx/sources/include/cairomm-1.0 -I osx/sources/lib/cairomm-1.0/include -I
osx/sources/include/cairo -I osx/sources/include/sigc++-2.0 -I
osx/sources/lib/sigc++-2.0/include -I osx/sources/include/pixman-1 -I
/Library/Frameworks/UnixImageIO.framework/unix/include/libpng14 -O3 -Wall
-Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses
-Wno-char-subscripts -Wno-inline -std=c++98 -fdeprecated-macro -ftemplate-depth
200 -ferror-limit 19 -fmessage-length 194 -stack-protector 1 -fblocks
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/vC/vCkzLwkoGlO6b78KTUPPWE+++TI/-Tmp-/cc-nodwi2.o -x c++
src/cairo_renderer.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. /usr/include/c++/4.2.1/bits/stl_algo.h:2416:5: Generating code for
declaration 'std::__unguarded_insertion_sort'
4. /usr/include/c++/4.2.1/bits/stl_algo.h:2418:5: LLVM IR generation of
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)
</pre>
--
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