<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I see this crash while LLDB is exiting in OS X:<div class="">–</div><div class=""><div class="">#0<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010b03da7f in bool llvm::DenseMapBase<llvm::SmallDenseMap<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, 4u, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >, void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >::LookupBucketFor<void*>(void* const&, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > const*&) const at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:495</div><div class="">#1<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010b03d918 in bool llvm::DenseMapBase<llvm::SmallDenseMap<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, 4u, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >, void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >::LookupBucketFor<void*>(void* const&, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> >*&) at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:525</div><div class="">#2<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010b031893 in llvm::DenseMapBase<llvm::SmallDenseMap<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, 4u, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >, void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long>, llvm::DenseMapInfo<void*>, llvm::detail::DenseMapPair<void*, std::__1::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>, unsigned long long> > >::erase(void* const&) at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:200</div><div class="">#3<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010b022e7a in llvm::ReplaceableMetadataImpl::dropRef(void*) at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/lib/IR/Metadata.cpp:135</div><div class="">#4<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010b0409e2 in llvm::MetadataTracking::untrack(void*, llvm::Metadata&) at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/lib/IR/MetadataTracking.cpp:42</div><div class="">#5<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010afcf00c in llvm::MetadataTracking::untrack(llvm::Metadata*&) at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/IR/MetadataTracking.h:69</div><div class="">#6<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010afced0a in llvm::TrackingMDRef::untrack() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/IR/TrackingMDRef.h:90</div><div class="">#7<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010afd0385 in llvm::TrackingMDRef::~TrackingMDRef() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/IR/TrackingMDRef.h:56</div><div class="">#8<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010afd0365 in llvm::TrackingMDRef::~TrackingMDRef() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/IR/TrackingMDRef.h:56</div><div class="">#9<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001092ba55e in llvm::DenseMapBase<llvm::DenseMap<char const*, llvm::TrackingMDRef, llvm::DenseMapInfo<char const*>, llvm::detail::DenseMapPair<char const*, llvm::TrackingMDRef> >, char const*, llvm::TrackingMDRef, llvm::DenseMapInfo<char const*>, llvm::detail::DenseMapPair<char const*, llvm::TrackingMDRef> >::destroyAll() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:264</div><div class="">#10<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001092ba48f in llvm::DenseMap<char const*, llvm::TrackingMDRef, llvm::DenseMapInfo<char const*>, llvm::detail::DenseMapPair<char const*, llvm::TrackingMDRef> >::~DenseMap() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:578</div><div class="">#11<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001092ae2a5 in llvm::DenseMap<char const*, llvm::TrackingMDRef, llvm::DenseMapInfo<char const*>, llvm::detail::DenseMapPair<char const*, llvm::TrackingMDRef> >::~DenseMap() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/include/llvm/ADT/DenseMap.h:577</div><div class="">#12<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010929323b in clang::CodeGen::CGDebugInfo::~CGDebugInfo() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:53</div><div class="">#13<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109293315 in clang::CodeGen::CGDebugInfo::~CGDebugInfo() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:50</div><div class="">#14<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109421bca in clang::CodeGen::CodeGenModule::~CodeGenModule() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:164</div><div class="">#15<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109422355 in clang::CodeGen::CodeGenModule::~CodeGenModule() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:157</div><div class="">#16<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109537e36 in std::__1::default_delete<clang::CodeGen::CodeGenModule>::operator()(clang::CodeGen::CodeGenModule*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2426</div><div class="">#17<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109537e0f in std::__1::unique_ptr<clang::CodeGen::CodeGenModule, std::__1::default_delete<clang::CodeGen::CodeGenModule> >::reset(clang::CodeGen::CodeGenModule*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2625</div><div class="">#18<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109537d8f in std::__1::unique_ptr<clang::CodeGen::CodeGenModule, std::__1::default_delete<clang::CodeGen::CodeGenModule> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#19<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109537d8f in std::__1::unique_ptr<clang::CodeGen::CodeGenModule, std::__1::default_delete<clang::CodeGen::CodeGenModule> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#20<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109537d8f in (anonymous namespace)::CodeGeneratorImpl::~CodeGeneratorImpl() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/ModuleBuilder.cpp:63</div><div class="">#21<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109536835 in (anonymous namespace)::CodeGeneratorImpl::~CodeGeneratorImpl() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/ModuleBuilder.cpp:63</div><div class="">#22<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000109536859 in (anonymous namespace)::CodeGeneratorImpl::~CodeGeneratorImpl() at /Volumes/Lachesis/Software/lldb-svn/lldb/llvm/tools/clang/lib/CodeGen/ModuleBuilder.cpp:63</div><div class="">#23<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4cf05 in std::__1::default_delete<clang::CodeGenerator>::operator()(clang::CodeGenerator*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2426</div><div class="">#24<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4ceda in std::__1::unique_ptr<clang::CodeGenerator, std::__1::default_delete<clang::CodeGenerator> >::reset(clang::CodeGenerator*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2625</div><div class="">#25<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4ce53 in std::__1::unique_ptr<clang::CodeGenerator, std::__1::default_delete<clang::CodeGenerator> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#26<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4ce53 in std::__1::unique_ptr<clang::CodeGenerator, std::__1::default_delete<clang::CodeGenerator> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#27<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4ce53 in lldb_private::ClangExpressionParser::~ClangExpressionParser() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Expression/ClangExpressionParser.cpp:338</div><div class="">#28<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd4d545 in lldb_private::ClangExpressionParser::~ClangExpressionParser() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Expression/ClangExpressionParser.cpp:337</div><div class="">#29<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2ce7f in std::__1::default_delete<lldb_private::ClangExpressionParser>::operator()(lldb_private::ClangExpressionParser*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2426</div><div class="">#30<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2ce58 in std::__1::unique_ptr<lldb_private::ClangExpressionParser, std::__1::default_delete<lldb_private::ClangExpressionParser> >::reset(lldb_private::ClangExpressionParser*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2625</div><div class="">#31<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2cdd8 in std::__1::unique_ptr<lldb_private::ClangExpressionParser, std::__1::default_delete<lldb_private::ClangExpressionParser> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#32<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2cdd8 in std::__1::unique_ptr<lldb_private::ASTStructExtractor, std::__1::default_delete<lldb_private::ASTStructExtractor> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#33<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2cdd8 in lldb_private::ClangFunction::~ClangFunction() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Expression/ClangFunction.cpp:118</div><div class="">#34<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2ced5 in lldb_private::ClangFunction::~ClangFunction() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Expression/ClangFunction.cpp:110</div><div class="">#35<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bd2cef9 in lldb_private::ClangFunction::~ClangFunction() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Expression/ClangFunction.cpp:110</div><div class="">#36<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f1ff in std::__1::default_delete<lldb_private::ClangFunction>::operator()(lldb_private::ClangFunction*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2426</div><div class="">#37<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f1d4 in std::__1::unique_ptr<lldb_private::ClangFunction, std::__1::default_delete<lldb_private::ClangFunction> >::reset(lldb_private::ClangFunction*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2625</div><div class="">#38<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f154 in std::__1::unique_ptr<lldb_private::ClangFunction, std::__1::default_delete<lldb_private::ClangFunction> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#39<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f154 in std::__1::unique_ptr<lldb_private::AppleObjCRuntimeV2::TaggedPointerVendor, std::__1::default_delete<lldb_private::AppleObjCRuntimeV2::TaggedPointerVendor> >::~unique_ptr() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2593</div><div class="">#40<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f154 in lldb_private::AppleObjCRuntimeV2::~AppleObjCRuntimeV2() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp:365</div><div class="">#41<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f405 in lldb_private::AppleObjCRuntimeV2::~AppleObjCRuntimeV2() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp:364</div><div class="">#42<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c38f429 in lldb_private::AppleObjCRuntimeV2::~AppleObjCRuntimeV2() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp:364</div><div class="">#43<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cc07c in std::__1::default_delete<lldb_private::LanguageRuntime>::operator()(lldb_private::LanguageRuntime*) const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:2426</div><div class="">#44<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cc051 in std::__1::__shared_ptr_pointer<lldb_private::LanguageRuntime*, std::__1::default_delete<lldb_private::LanguageRuntime>, std::__1::allocator<lldb_private::LanguageRuntime> >::__on_zero_shared() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:3669</div><div class="">#45<span class="Apple-tab-span" style="white-space:pre"> </span>0x00007fff92b9d8a6 in std::__1::__shared_weak_count::__release_shared() ()</div><div class="">#46<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cb90f in std::__1::shared_ptr<lldb_private::LanguageRuntime>::~shared_ptr() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:4448</div><div class="">#47<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1c3925 in std::__1::shared_ptr<lldb_private::LanguageRuntime>::~shared_ptr() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:4446</div><div class="">#48<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1ce09c in std::__1::pair<lldb::LanguageType const, std::__1::shared_ptr<lldb_private::LanguageRuntime> >::~pair() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/utility:248</div><div class="">#49<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1ce075 in std::__1::pair<lldb::LanguageType const, std::__1::shared_ptr<lldb_private::LanguageRuntime> >::~pair() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/utility:248</div><div class="">#50<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cdff9 in std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >::~__value_type() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/map:617</div><div class="">#51<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cdff1 in std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >::~__value_type() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/map:617</div><div class="">#52<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cdff1 in void std::__1::allocator_traits<std::__1::allocator<std::__1::__tree_node<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, void*> > >::__destroy<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> > >(std::__1::integral_constant<bool, false>, std::__1::allocator<std::__1::__tree_node<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, void*> >&, std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:1585</div><div class="">#53<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cdfdd in void std::__1::allocator_traits<std::__1::allocator<std::__1::__tree_node<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, void*> > >::destroy<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> > >(std::__1::allocator<std::__1::__tree_node<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, void*> >&, std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >*) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/memory:1483</div><div class="">#54<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cdfcd in std::__1::__tree<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, std::__1::__map_value_compare<lldb::LanguageType, std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, std::__1::less<lldb::LanguageType>, true>, std::__1::allocator<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> > > >::destroy(std::__1::__tree_node<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, void*>*) at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/__tree:1445</div><div class="">#55<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c1cde69 in std::__1::__tree<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, std::__1::__map_value_compare<lldb::LanguageType, std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> >, std::__1::less<lldb::LanguageType>, true>, std::__1::allocator<std::__1::__value_type<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime> > > >::clear() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/__tree:1477</div><div class="">#56<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c19ea1c in std::__1::map<lldb::LanguageType, std::__1::shared_ptr<lldb_private::LanguageRuntime>, std::__1::less<lldb::LanguageType>, std::__1::allocator<std::__1::pair<lldb::LanguageType const, std::__1::shared_ptr<lldb_private::LanguageRuntime> > > >::clear() [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/../include/c++/v1/map:1073</div><div class="">#57<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010c19ea17 in lldb_private::Process::Finalize() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Target/Process.cpp:846</div><div class="">#58<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bb7ab0b in lldb_private::Debugger::Clear() at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Core/Debugger.cpp:722</div><div class="">#59<span class="Apple-tab-span" style="white-space:pre"> </span>0x000000010bb7a0e6 in lldb_private::Debugger::Destroy(std::__1::shared_ptr<lldb_private::Debugger>&) at /Volumes/Lachesis/Software/lldb-svn/lldb/source/Core/Debugger.cpp:571</div><div class="">#60<span class="Apple-tab-span" style="white-space:pre"> </span>0x0000000108a5a341 in lldb::SBDebugger::Destroy(lldb::SBDebugger&) at /Volumes/Lachesis/Software/lldb-svn/lldb/source/API/SBDebugger.cpp:213</div><div class="">#61<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001089e1084 in Driver::MainLoop() at /Volumes/Lachesis/Software/lldb-svn/lldb/tools/driver/Driver.cpp:1157</div><div class="">#62<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001089e16ab in main at /Volumes/Lachesis/Software/lldb-svn/lldb/tools/driver/Driver.cpp:1251</div><div class="">#63<span class="Apple-tab-span" style="white-space:pre"> </span>0x00000001089d9da4 in start ()</div><div class="">–</div><div class="">Sean</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Dec 9, 2014, at 3:04 PM, Zachary Turner <<a href="mailto:zturner@google.com" class="">zturner@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I filed the bug anyway, can't hurt to try reproducing on other platforms.<br class=""><br class=""><div class="gmail_quote">On Tue Dec 09 2014 at 2:56:24 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" class="">dexonsmith@apple.com</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ah. No :/.<br class="">
<br class="">
<br class="">
> On 2014 Dec 9, at 14:55, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
><br class="">
> Do you have access to a Windows machien to test on? I suspect it's going to require Windows to reproduce.<br class="">
><br class="">
> On Tue Dec 09 2014 at 2:54:44 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank" class="">dexonsmith@apple.com</a>> wrote:<br class="">
> Weird, it passed an LTO bootstrap for me.<br class="">
><br class="">
> Is it possible to file a PR with a testcase? I'll look at it right<br class="">
> away.<br class="">
><br class="">
> > On 2014 Dec 9, at 14:50, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> ><br class="">
> > Just an additional heads up that there may be some runtime issues with the patch as well.<br class="">
> ><br class="">
> > Running this command:<br class="">
> > d:\src\llvm\build\ninja\bin\<u class=""></u>clang++.exe -std=c++11 -g -O0 -m32 -Id:/src/llvm/tools/lldb/test/<u class=""></u>make/../../include -fno-exceptions -include d:/src/llvm/tools/lldb/test/<u class=""></u>make/uncaught_exception.h -D_HAS_EXCEPTIONS=0 -O0 -c -o main.o main.cpp<br class="">
> ><br class="">
> > Results in this:<br class="">
> ><br class="">
> > Stack dump:<br class="">
> > 0. Program arguments: d:\src\llvm\build\ninja\bin\<u class=""></u>clang++.exe -cc1 -triple i686-pc-windows-msvc -emit-obj -mrelax-all -disable-free -main-file-name main.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -g<br class="">
> > -dwarf-column-info -coverage-file d:\src\llvm\tools\lldb\test\<u class=""></u>functionalities\data-<u class=""></u>formatter\data-formatter-stl\<u class=""></u>libcxx\vbool\main.o -resource-dir d:\src\llvm\build\ninja\bin\..<u class=""></u>\lib\clang\3.6.0 -include d:/src/llvm/tools/lldb/test/<u class=""></u>make/uncaught_exception.h -D _HAS_EXCEPTIONS=0 -I d:/src/llvm/tools/ll<br class="">
> > db/test/make/../../include -internal-isystem d:\src\llvm\build\ninja\bin\..<u class=""></u>\lib\clang\3.6.0\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include -internal-isystem C:\Program Files (x86)\Windows Kits\8.1\include\shared -internal-isystem C:\Program Files (x86)\Windo<br class="">
> > ws Kits\8.1\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\8.1\include\winrt -O0 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir d:\src\llvm\tools\lldb\test\<u class=""></u>functionalities\data-<u class=""></u>formatter\data-formatter-stl\<u class=""></u>libcxx\vbool -ferror-limit 19 -fmessage-length 300 -mstackrealign -fm<br class="">
> > s-extensions -fms-compatibility -fms-compatibility-version=17.<u class=""></u>00 -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o main.o -x c++ main.cpp<br class="">
> > 1. <eof> parser at end of file<br class="">
> > 2. Per-file LLVM IR generation<br class="">
> > 0x578AAA3B (0x07C903C4 0x07C903E4 0x07C903E4 0x05D8E590), ??3@YAXPAX@Z() + 0xAB bytes(s)<br class="">
> > 0x01242744 (0x07C903E4 0x07C903E4 0x05D8E5AC 0x01242B8A), llvm::MDNode::operator delete() + 0x34 bytes(s), d:\src\llvm\lib\ir\metadata.<u class=""></u>cpp, line 388 + 0x14 byte(s)<br class="">
> > 0x0124D367 (0x00000001 0x00000000 0xCCCCCCCC 0x07C903E4), llvm::MDNodeFwdDecl::`scalar deleting destructor'() + 0x27 bytes(s)<br class="">
> > 0x01242B8A (0x07C903E4 0x05D8E788 0x05D8E7FC 0xCCCCCCCC), llvm::MDNode::deleteTemporary(<u class=""></u>) + 0x8A bytes(s), d:\src\llvm\lib\ir\metadata.<u class=""></u>cpp, line 591 + 0x25 byte(s)<br class="">
> > 0x01148933 (0x06150E78 0x07C903E4 0x05D8E7E4 0x05D8E7FC), llvm::DIDescriptor::<u class=""></u>replaceAllUsesWith() + 0x123 bytes(s), d:\src\llvm\lib\ir\debuginfo.<u class=""></u>cpp, line 342 + 0x9 byte(s)<br class="">
> > 0x01C824B7 (0x05D8E848 0x05D8E7FC 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGen::CGDebugInfo::<u class=""></u>finalize() + 0x2A7 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>codegen\cgdebuginfo.cpp, line 3390<br class="">
> > 0x01C112BB (0x0618BE90 0x05D8E848 0x01BEFB40 0x0617DDE0), clang::CodeGen::CodeGenModule:<u class=""></u>:Release() + 0x3CB bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>codegen\codegenmodule.cpp, line 415<br class="">
> > 0x01C0E576 (0x0617DDE0 0x05D8E8D0 0x05D8E854 0xCCCCCCCC), `anonymous namespace'::CodeGeneratorImpl:<u class=""></u>:HandleTranslationUnit() + 0x86 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>codegen\modulebuilder.cpp, line 198<br class="">
> > 0x01BEFB40 (0x0617DDE0 0x05D8EAD0 0x05D8E8E0 0x061B8890), clang::BackendConsumer::<u class=""></u>HandleTranslationUnit() + 0x60 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>codegen\codegenaction.cpp, line 131 + 0x21 byte(s)<br class="">
> > 0x025B1717 (0x061A2460 0x00000000 0x00000000 0x05D8EAD8), clang::ParseAST() + 0x237 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>parse\parseast.cpp, line 154 + 0x18 byte(s)<br class="">
> > 0x018BF641 (0x05D8EB54 0x05D8EAD8 0xCCCCCCCC 0xCCCCCCCC), clang::ASTFrontendAction::<u class=""></u>ExecuteAction() + 0x101 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>frontend\frontendaction.cpp, line 527 + 0x30 byte(s)<br class="">
> > 0x01BEC33F (0x05D8EB00 0xCCCCCCCC 0xCCCCCCCC 0xCCCCCCCC), clang::CodeGenAction::<u class=""></u>ExecuteAction() + 0x3CF bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>codegen\codegenaction.cpp, line 729<br class="">
> > 0x018BF22E (0x05D8EBF8 0x00000000 0xCCCCCCCC 0xCCCCCCCC), clang::FrontendAction::<u class=""></u>Execute() + 0x7E bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>frontend\frontendaction.cpp, line 428 + 0xF byte(s)<br class="">
> > 0x0187A821 (0x06158390 0x05D8F100 0x00000000 0xCCCCCCCC), clang::CompilerInstance::<u class=""></u>ExecuteAction() + 0x2A1 bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>frontend\compilerinstance.cpp, line 812<br class="">
> > 0x019CDDBE (0x06152A98 0x05D8FEC8 0xCCCCCCCC 0xCCCCCCCC), clang::<u class=""></u>ExecuteCompilerInvocation() + 0x30E bytes(s), d:\src\llvm\tools\clang\lib\<u class=""></u>frontendtool\<u class=""></u>executecompilerinvocation.cpp, line 222 + 0x11 byte(s)<br class="">
> > 0x0041461F (0x05D8FAB0 0x0000003D 0x06155AD0 0x0035139D), cc1_main() + 0x2FF bytes(s), d:\src\llvm\tools\clang\tools\<u class=""></u>driver\cc1_main.cpp, line 110 + 0xE byte(s)<br class="">
> > 0x003FFC18 (0x05D8FAA8 0x0000003F 0x06155AFC 0x00000000), ExecuteCC1Tool() + 0x78 bytes(s), d:\src\llvm\tools\clang\tools\<u class=""></u>driver\driver.cpp, line 369 + 0x2B byte(s)<br class="">
> > 0x003FFFB5 (0x0000003F 0x061519E8 0x06145120 0x5DB515C0), main() + 0x2F5 bytes(s), d:\src\llvm\tools\clang\tools\<u class=""></u>driver\driver.cpp, line 415 + 0x33 byte(s)<br class="">
> > 0x034BDA89 (0x05D8FF2C 0x75CC919F 0x7EDD4000 0x05D8FF70), __tmainCRTStartup() + 0x199 bytes(s), f:\dd\vctools\crt\crtw32\<u class=""></u>dllstuff\crtexe.c, line 626 + 0x19 byte(s)<br class="">
> > 0x034BDBCD (0x7EDD4000 0x05D8FF70 0x77A40BBB 0x7EDD4000), mainCRTStartup() + 0xD bytes(s), f:\dd\vctools\crt\crtw32\<u class=""></u>dllstuff\crtexe.c, line 466<br class="">
> > 0x75CC919F (0x7EDD4000 0x2F016EAA 0x00000000 0x00000000), BaseThreadInitThunk() + 0xE bytes(s)<br class="">
> > 0x77A40BBB (0xFFFFFFFF 0x77A2C9D1 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x84 bytes(s)<br class="">
> > 0x77A40B91 (0x034BDBC0 0x7EDD4000 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x5A bytes(s)<br class="">
> > ^C<br class="">
> > d:\src\llvm\tools\lldb\test\<u class=""></u>functionalities\data-<u class=""></u>formatter\data-formatter-stl\<u class=""></u>libcxx\vbool><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> ><br class="">
> > On Tue Dec 09 2014 at 2:41:09 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank" class="">dexonsmith@apple.com</a>> wrote:<br class="">
> > Awesome, thanks for the help!<br class="">
> ><br class="">
> > > On 2014 Dec 9, at 14:28, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> > ><br class="">
> > > This fixes the issue. I will check in your patch. Thanks!<br class="">
> > ><br class="">
> > > On Tue Dec 09 2014 at 2:20:02 PM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> > > Testing now. I notice a few of the changes aren't actually required in order to fix compiler errors. For example, this line:<br class="">
> > ><br class="">
> > > - ConstantInt *constant_int = dyn_cast<ConstantInt>(alloc_<u class=""></u>md->getOperand(0));<br class="">
> > > + ConstantInt *constant_int = mdconst::dyn_extract<<u class=""></u>ConstantInt>(alloc_md-><u class=""></u>getOperand(0));<br class="">
> > ><br class="">
> > > wasn't actually failing. Not sure if that's important, but I'm using your fixed version anyway.<br class="">
> > ><br class="">
> > > On Tue Dec 09 2014 at 2:11:08 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank" class="">dexonsmith@apple.com</a>> wrote:<br class="">
> > > Attaching a patch that should fix it. Can you try compiling?<br class="">
> > ><br class="">
> > ><br class="">
> > ><br class="">
> > ><br class="">
> > > > On 2014 Dec 9, at 14:03, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> > > ><br class="">
> > > > Here's the 3 errors.<br class="">
> > > ><br class="">
> > > > ..\..\tools\lldb\source\<u class=""></u>Expression\IRForTarget.cpp(<u class=""></u>413) : error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'const llvm::MDOperand' (or there is no acceptable conversion)<br class="">
> > > > d:\src\llvm\include\llvm/ADT/<u class=""></u>APSInt.h(291): could be 'bool llvm::operator !=(int64_t,const llvm::APSInt &)'<br class="">
> > > > d:\src\llvm\include\llvm/ADT/<u class=""></u>APInt.h(1724): or 'bool llvm::operator !=(uint64_t,const llvm::APInt &)'<br class="">
> > > > d:\src\llvm\include\llvm/ADT/<u class=""></u>StringRef.h(527): or 'bool llvm::operator !=(llvm::StringRef,llvm::<u class=""></u>StringRef)'<br class="">
> > > > while trying to match the argument list '(const llvm::MDOperand, const llvm::GlobalValue *)'<br class="">
> > > ><br class="">
> > > ><br class="">
> > > ><br class="">
> > > > ..\..\tools\lldb\source\<u class=""></u>Expression\IRForTarget.cpp(<u class=""></u>647) : error C2664: 'llvm::MDNode *llvm::MDNode::get(llvm::<u class=""></u>LLVMContext &,llvm::ArrayRef<llvm::<u class=""></u>Metadata *>)' : cannot convert argument 2 from 'llvm::ArrayRef<llvm::Value *>' to 'llvm::ArrayRef<llvm::Metadata *>'<br class="">
> > > > No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called<br class="">
> > > ><br class="">
> > > ><br class="">
> > > > ..\..\tools\lldb\source\<u class=""></u>Expression\IRForTarget.cpp(<u class=""></u>1254) : error C2664: 'llvm::MDNode *llvm::MDNode::get(llvm::<u class=""></u>LLVMContext &,llvm::ArrayRef<llvm::<u class=""></u>Metadata *>)' : cannot convert argument 2 from 'llvm::ArrayRef<llvm::Value *>' to 'llvm::ArrayRef<llvm::Metadata *>'<br class="">
> > > > No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called<br class="">
> > > ><br class="">
> > > ><br class="">
> > > > On Tue Dec 09 2014 at 1:56:03 PM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> > > > I'm not sure what the status of building LLDB with CMake is, but the normal way apple people build LLDB is to structure the directory like this:<br class="">
> > > ><br class="">
> > > > lldb<br class="">
> > > > --llvm<br class="">
> > > > ----tools<br class="">
> > > > ------clang<br class="">
> > > ><br class="">
> > > > Then open the xcode workspace and build the lldb-tool target.<br class="">
> > > ><br class="">
> > > > I'll sync to ToT again though so that I can get you a dump of the compiler errors I'm seeing.<br class="">
> > > ><br class="">
> > > > On Tue Dec 09 2014 at 1:52:40 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank" class="">dexonsmith@apple.com</a>> wrote:<br class="">
> > > > I'm trying to build lldb now, but it's hung trying to build LLVM and<br class="">
> > > > clang... but I already built these? I don't really understand.<br class="">
> > > ><br class="">
> > > > Is there any way to make lldb point to my LLVM checkout? I just want to<br class="">
> > > > see the compiler errors so I can fix them :(.<br class="">
> > > ><br class="">
> > > > Alternatively, if some can email me a compile log with all the errors<br class="">
> > > > (can you do a `make -k` or something?) I can send you a patch... this is<br class="">
> > > > mechanical to update, but I need the compiler to tell me what's wrong.<br class="">
> > > ><br class="">
> > > > I expect the fixes to all be along these lines:<br class="">
> > > ><br class="">
> > > > - Value *Ops[] => Metadata *Ops[]<br class="">
> > > ><br class="">
> > > > - cast<ConstantInt>(N-><u class=""></u>getOperand(0)) =><br class="">
> > > > mdconst::extract<ConstantInt>(<u class=""></u>N->getOperand(0))<br class="">
> > > ><br class="">
> > > > - Value *Op = ConstantInt::get(...) =><br class="">
> > > > Metadata *Op = ConstantAsMetadata::get(<u class=""></u>ConstantInt::get(...))<br class="">
> > > ><br class="">
> > > > Sorry for the breakage :(.<br class="">
> > > ><br class="">
> > > > > On 2014 Dec 9, at 13:41, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>> wrote:<br class="">
> > > > ><br class="">
> > > > > If you sync llvm past git revision db7b69e3a634c5fdff0eceeee2a41e<u class=""></u>e49c3270a2 (svn r223802), your LLDB build will be broken.<br class="">
> > > > ><br class="">
> > > > > I was able to fix one of the errors, but this isn't really my area of expertise, so I stopped when I realized I didn't know what I was doing.<br class="">
> > > > ><br class="">
> > > > > Just a warning not to sync LLVM until this is fixed. I've CC'ed Sean and Duncan as they are probably the best people to fix this, but if anyone else knows how to fix it, feel free.<br class="">
> > > ><br class="">
> > ><br class="">
> ><br class="">
><br class="">
<br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>