<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="">This is a crash that is happening as we are trying to translate DWARF back into Clang ASTs. You can enable DWARF logging by doing:<div class=""><br class=""></div><div class="">(lldb) log enable -f /tmp/dwarf.log dwarf info</div><div class=""><br class=""></div><div class="">Or add that line to your ~/.lldbinit file.</div><div class=""><br class=""></div><div class="">Then make it crash and we will have a log of what was wrong and might have an idea of the type that is causing the problem. If you get this log, there should be a line from this code:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; color: rgb(49, 89, 93);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> dwarf-></span><span style="font-variant-ligatures: no-common-ligatures" class="">GetObjectFile</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">()-></span><span style="font-variant-ligatures: no-common-ligatures" class="">GetModule</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">()-></span><span style="font-variant-ligatures: no-common-ligatures" class="">LogMessage</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; color: rgb(209, 47, 27);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> log, </span><span style="font-variant-ligatures: no-common-ligatures" class="">"SymbolFileDWARF::ParseType (die = 0x%8.8x, decl_ctx = %p (die "</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; color: rgb(209, 47, 27);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">"0x%8.8x)) %s name = '%s')"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">,</span></div><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> die.</span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">GetOffset</span><span style="font-variant-ligatures: no-common-ligatures" class="">(), </span><span style="font-variant-ligatures: no-common-ligatures; color: #ba2da2" class="">static_cast</span><span style="font-variant-ligatures: no-common-ligatures" class=""><</span><span style="font-variant-ligatures: no-common-ligatures; color: #ba2da2" class="">void</span><span style="font-variant-ligatures: no-common-ligatures" class=""> *>(context),</span></div><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> context_die.</span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">GetOffset</span><span style="font-variant-ligatures: no-common-ligatures" class="">(), die.</span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">GetTagAsCString</span><span style="font-variant-ligatures: no-common-ligatures" class="">(), die.</span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">GetName</span><span style="font-variant-ligatures: no-common-ligatures" class="">());</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">right before it crashed. It might help to reproduce a minimal example that can be used to fix this issue.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Remember to remove the "log enable" from your ~/.lldbinit file if you did add it, otherwise you will slow down debugging in future sessions.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Greg Clayton</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div><blockquote type="cite" class=""><div class="">On Jan 18, 2018, at 6:08 AM, Johan Øverbye via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi :)<br class=""><br class="">I hope this is an appropriate use of this mailing list, my apologies if not. I couldn't find any form to report LLDB bugs and wasn't sure where to ask.<br class=""><br class="">With a recent update of Xcode I started getting an LLDB crash frequently while attempting to debug. (Not sure exactly which Xcode release sadly.) Sometimes it occurs when the debugger pauses execution (e.g. due to an assertion failure), other times when I attempt to inspect certain variables.<br class=""><br class="">Here's the call stack of the offending thread:<br class=""><br class="">Thread 7 Crashed:: RPC packet thread for client tid 00007997 (31127)<br class="">0 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x0000000108f98157 clang::ClassTemplateSpecializationDecl::Create(clang::ASTContext&, clang::TagTypeKind, clang::DeclContext*, clang::SourceLocation, clang::SourceLocation, clang::ClassTemplateDecl*, llvm::ArrayRef<clang::TemplateArgument>, clang::ClassTemplateSpecializationDecl*) + 71<br class="">1 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a6fc39c lldb_private::ClangASTContext::CreateClassTemplateSpecializationDecl(clang::DeclContext*, clang::ClassTemplateDecl*, int, lldb_private::ClangASTContext::TemplateParameterInfos const&) + 308<br class="">2 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a546de4 DWARFASTParserClang::ParseTypeFromDWARF(lldb_private::SymbolContext const&, DWARFDIE const&, lldb_private::Log*, bool*) + 5890<br class="">3 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a6e2623 SymbolFileDWARF::ParseType(lldb_private::SymbolContext const&, DWARFDIE const&, bool*) + 171<br class="">4 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a6dc33f SymbolFileDWARF::GetTypeForDIE(DWARFDIE const&, bool) + 369<br class="">5 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a6dbc6e SymbolFileDWARF::ResolveType(DWARFDIE const&, bool, bool) + 68<br class="">6 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a6dbbed SymbolFileDWARF::ResolveTypeUID(unsigned long long) + 45<br class="">7 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a759942 lldb_private::Type::ResolveClangType(lldb_private::Type::ResolveStateTag) + 154<br class="">8 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a759604 lldb_private::Type::GetForwardCompilerType() + 26<br class="">9 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a59be5f lldb_private::ValueObjectVariable::GetCompilerTypeImpl() + 37<br class="">10 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a58cf67 lldb_private::ValueObject::MaybeCalculateCompleteType() + 39<br class="">11 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a5912dd lldb_private::ValueObject::GetObjectRuntimeLanguage() + 33<br class="">12 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x000000010a59167b lldb_private::ValueObject::IsRuntimeSupportValue() + 73<br class="">13 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x0000000107c5faec lldb::SBFrame::GetVariables(lldb::SBVariablesOptions const&) + 624<br class="">14 com.apple.LLDB.framework <span class="Apple-tab-span" style="white-space: pre;"> </span>0x0000000107c5fda4 lldb::SBFrame::GetVariables(bool, bool, bool, bool, lldb::DynamicValueType) + 208<br class="">15 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x0000000106220aef rpc_server::_ZN4lldb7SBFrame12GetVariablesEbbbbNS_16DynamicValueTypeE::HandleRPCCall(rpc_common::Connection&, rpc_common::RPCStream&, rpc_common::RPCStream&) + 219<br class="">16 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00000001061e662a rpc_common::Connection::PrivateHandleRPCPacket(rpc_common::RPCPacket&, rpc_common::RPCPacket&, bool&) + 506<br class="">17 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00000001061e730c rpc_common::Connection::HandleRPCPacket(rpc_common::RPCPacket&) + 62<br class="">18 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00000001061ea862 Packets::ProcessPackets() + 254<br class="">19 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00000001061ea68b Packets::ReadThread() + 187<br class="">20 lldb-rpc-server <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00000001061ea5cb Packets::RunReadThread(void*) + 9<br class="">21 libsystem_pthread.dylib <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00007fff7b8906c1 _pthread_body + 340<br class="">22 libsystem_pthread.dylib <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00007fff7b89056d _pthread_start + 377<br class="">23 libsystem_pthread.dylib <span class="Apple-tab-span" style="white-space: pre;"> </span>0x00007fff7b88fc5d thread_start + 13<br class=""><br class="">The full LLDB crash dump can be downloaded here: <a href="https://www.dropbox.com/s/87tpcb31t10679z/lldb-rpc-server_2018-01-18-134410_Johans-MacBook-Pro.crash?dl=0" class="">https://www.dropbox.com/s/87tpcb31t10679z/lldb-rpc-server_2018-01-18-134410_Johans-MacBook-Pro.crash?dl=0</a><br class=""><br class="">The (Apple) LLDB version is lldb-900.0.64. Not sure whether/how this corresponds to "official" LLDB version numbers.<br class=""><br class="">Unfortunately I'm unable to share the code for confidentiality reasons. I'll attempt to isolate the issue but I thought I'd ask here in case it's a known issue or the cause is obvious.<br class=""><br class=""><br class="">Thanks,<br class=""><br class="">Johan Øverbye</div>
<br class="">
<font face="Arial, Helvetica, sans-serif" class=""><span style="font-size:13px" class="">This message, including any attachments, may contain confidential or privileged information and is intended solely for the addressee. If you are not an intended recipient, please notify the sender and delete this message and any back-up copies from your systems. We love trees! Please do not print this email unless absolutely necessary, thank you. String Applied Technologies is a limited company registered in England and Wales. Registered number: 08962109. Registered office: The Bradfield Centre, 184, Cambridge Science Park Milton Road, Cambridge, Cambridgeshire, CB4 0GF, United Kingdom</span></font>_______________________________________________<br class="">lldb-dev mailing list<br class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></blockquote></div><br class=""></div></body></html>