llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.11k stars 12.01k forks source link

Crash with signal 11 when using PCH #8489

Closed llvmbot closed 14 years ago

llvmbot commented 14 years ago
Bugzilla Link 8117
Resolution FIXED
Resolved on Sep 09, 2010 06:32
Version trunk
OS MacOS X
Attachments self-contained code reproducing the bug
Reporter LLVM Bugzilla Contributor
CC @akyrtzi,@DougGregor

Extended Description

~/Developer/Tests/clang-pch-2> clang --version clang version 2.9 (trunk 113403) Target: x86_64-apple-darwin10 Thread model: posix

~/Developer/Tests/clang-pch-2> clang++ -o boost_adaptbx/precompiled.h.gch -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -x c++-header -fPIC -fno-strict-aliasing -w -DNDEBUG -O3 -I. -I$BOOSTROOT -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 boost_adaptbx/precompiled.h

~/Developer/Tests/clang-pch-2> clang++ -o meta_ext.o -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -I/Users/luc/Developer/cctbx/boost -I. -fPIC -fno-strict-aliasing -w -DNDEBUG -O3 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -include boost_adaptbx/precompiled.h boost_adaptbx/meta_ext.cpp

0 clang 0x00000001013794f2 std::vector<llvm::sys::Path, std::allocator >::_M_insert_aux(gnu_cxx::normal_iterator<llvm::sys::Path*, std::vector<llvm::sys::Path, std::allocator > >, llvm::sys::Path const&) + 11538 1 clang 0x000000010137a313 std::vector<llvm::sys::Path, std::allocator >::_M_insert_aux(gnu_cxx::normal_iterator<llvm::sys::Path, std::vector<llvm::sys::Path, std::allocator > >, llvm::sys::Path const&) + 15155 2 libSystem.B.dylib 0x00007fff80e9935a _sigtramp + 26 3 libSystem.B.dylib 0x0000000000005b96 _sigtramp + 2132199510 4 clang 0x000000010050cfc2 llvm::SmallVectorImpl::operator=(llvm::SmallVectorImpl const&) + 45906 5 clang 0x00000001004a5d42 llvm::DenseMap<clang::ObjCPropertyDecl, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl>, llvm::DenseMapInfo >::grow(unsigned int) + 109714 6 clang 0x00000001004a63b4 llvm::DenseMap<clang::ObjCPropertyDecl, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl>, llvm::DenseMapInfo >::grow(unsigned int) + 111364 7 clang 0x00000001004a69ce llvm::DenseMap<clang::ObjCPropertyDecl, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl>, llvm::DenseMapInfo >::grow(unsigned int) + 112926 8 clang 0x00000001004a70c2 llvm::DenseMap<clang::ObjCPropertyDecl, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl>, llvm::DenseMapInfo >::grow(unsigned int) + 114706 9 clang 0x000000010042caf1 llvm::DenseMap<clang::Selector, char, llvm::DenseMapInfo, llvm::DenseMapInfo >::grow(unsigned int) + 224465 10 clang 0x0000000100533f09 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 151609 11 clang 0x00000001005196f2 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 43042 12 clang 0x000000010051836b clang::QualType::isMoreQualifiedThan(clang::QualType) const + 38043 13 clang 0x000000010051966b clang::QualType::isMoreQualifiedThan(clang::QualType) const + 42907 14 clang 0x0000000100533b95 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 150725 15 clang 0x00000001005196f2 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 43042 16 clang 0x000000010051c8bd clang::QualType::isMoreQualifiedThan(clang::QualType) const + 55789 17 clang 0x00000001005198f6 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 43558 18 clang 0x000000010051a9ba clang::QualType::isMoreQualifiedThan(clang::QualType) const + 47850 19 clang 0x0000000100519801 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 43313 20 clang 0x000000010051ba40 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 52080 21 clang 0x0000000100519a64 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 43924 22 clang 0x0000000100533fdf clang::QualType::isMoreQualifiedThan(clang::QualType) const + 151823 23 clang 0x000000010053aab4 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 4532 24 clang 0x000000010053c93c llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 12348 25 clang 0x00000001005409c6 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 28870 26 clang 0x00000001005437b9 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 40633 27 clang 0x00000001005115d5 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 9989 28 clang 0x00000001005314b5 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 140773 29 clang 0x0000000100531b79 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 142505 30 clang 0x0000000100531467 clang::QualType::isMoreQualifiedThan(clang::QualType) const + 140695 31 clang 0x0000000100533b2f clang::QualType::isMoreQualifiedThan(clang::QualType) const + 150623 32 clang 0x0000000100544992 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 45202 33 clang 0x0000000100544294 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 43412 34 clang 0x0000000100544e39 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 46393 35 clang 0x0000000100544294 llvm::cast_retty<clang::ElaboratedType, clang::QualType>::ret_type llvm::cast<clang::ElaboratedType, clang::QualType>(clang::QualType const&) + 43412 36 clang 0x000000010032576f llvm::DenseMap<clang::Stmt, unsigned int, llvm::DenseMapInfo<clang::Stmt>, llvm::DenseMapInfo >::grow(unsigned int) + 9199 37 clang 0x0000000100312279 llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 44057 38 clang 0x00000001002c081f llvm::GetElementPtrInst llvm::GetElementPtrInst::CreateInBounds<llvm::Value>(llvm::Value, llvm::Value, llvm::Value, llvm::Twine const&, llvm::Instruction) + 559 39 clang 0x000000010027d73c llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter >::CreateIsNull(llvm::Value, llvm::Twine const&) + 5260 40 clang 0x0000000100053f49 llvm::DenseMap<clang::IdentifierInfo const, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const>, llvm::DenseMapInfo >::grow(unsigned int) + 6969 41 clang 0x00000001000288a4 std::_Rb_tree<std::string, std::string, std::_Identity, std::less, std::allocator >::_M_erase(std::_Rb_tree_node) + 3780 42 clang 0x0000000100020453 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&) + 12771 43 clang 0x0000000100026fc4 std::vector<std::string, std::allocator >::operator=(std::vector<std::string, std::allocator > const&) + 11604 44 clang 0x000000010001eed8 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&) + 7272 Stack dump:

  1. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name meta_ext.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.2 -resource-dir /usr/local/lib/clang/2.9 -include-pch boost_adaptbx/precompiled.h.gch -D BOOST_ALL_NO_LIB -D BOOST_DISABLE_THREADS -D BOOST_PYTHON_MAX_BASES=2 -D NDEBUG -I /Users/luc/Developer/cctbx/boost -I . -I /System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -O3 -w -ferror-limit 19 -fmessage-length 104 -stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o meta_ext.o -x c++ boost_adaptbx/meta_ext.cpp
  2. parser at end of file
  3. /Users/luc/Developer/cctbx/boost/boost/python/object/py_function.hpp:46:46: instantiating function definition 'signature'
  4. /Users/luc/Developer/cctbx/boost/boost/python/detail/caller.hpp:230:34: instantiating function definition 'signature' clang: error: clang frontend command failed due to signal 11 (use -v to see invocation)
akyrtzi commented 14 years ago

Fixed at r113481.

akyrtzi commented 14 years ago

Thanks for the report, keep 'em coming. The symbols in your stack trace are wrong, this is a crash in Sema; investigating..