LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 8117 - Crash with signal 11 when using PCH
Summary: Crash with signal 11 when using PCH
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: C++ (show other bugs)
Version: trunk
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 16:43 PDT by Luc Bourhis
Modified: 2010-09-09 06:32 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
self-contained code reproducing the bug (15.49 KB, application/octet-stream)
2010-09-08 16:43 PDT, Luc Bourhis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luc Bourhis 2010-09-08 16:43:09 PDT
Created attachment 5473 [details]
self-contained code reproducing the bug

- the top directory of the Boost library shall be found at $BOOSTROOT
- replace the -I<python-header> by what is appropriate if one does not work on MacOS X
- expand the attachment, then cd clang-pch-2, then

~/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<llvm::sys::Path> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*, std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >, llvm::sys::Path const&) + 11538
1  clang             0x000000010137a313 std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*, std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >, llvm::sys::Path const&) + 15155
2  libSystem.B.dylib 0x00007fff80e9935a _sigtramp + 26
3  libSystem.B.dylib 0x0000000000005b96 _sigtramp + 2132199510
4  clang             0x000000010050cfc2 llvm::SmallVectorImpl<clang::TemplateArgumentLoc>::operator=(llvm::SmallVectorImpl<clang::TemplateArgumentLoc> const&) + 45906
5  clang             0x00000001004a5d42 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 109714
6  clang             0x00000001004a63b4 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 111364
7  clang             0x00000001004a69ce llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 112926
8  clang             0x00000001004a70c2 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 114706
9  clang             0x000000010042caf1 llvm::DenseMap<clang::Selector, char, llvm::DenseMapInfo<clang::Selector>, llvm::DenseMapInfo<char> >::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<unsigned int> >::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<true> >::CreateIsNull(llvm::Value*, llvm::Twine const&) + 5260
40 clang             0x0000000100053f49 llvm::DenseMap<clang::IdentifierInfo const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>, llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 6969
41 clang             0x00000001000288a4 std::_Rb_tree<std::string, std::string, std::_Identity<std::string>, std::less<std::string>, std::allocator<std::string> >::_M_erase(std::_Rb_tree_node<std::string>*) + 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<std::string> >::operator=(std::vector<std::string, std::allocator<std::string> > 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:
0.	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 
1.	<eof> parser at end of file
2.	/Users/luc/Developer/cctbx/boost/boost/python/object/py_function.hpp:46:46: instantiating function definition 'signature'
3.	/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)
Comment 1 Argyrios Kyrtzidis 2010-09-09 04:38:25 PDT
Thanks for the report, keep 'em coming.
The symbols in your stack trace are wrong, this is a crash in Sema; investigating..
Comment 2 Argyrios Kyrtzidis 2010-09-09 06:32:50 PDT
Fixed at r113481.