<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54761>54761</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lldb crash parsing Google Chrome types
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
siggi-alpheus
</td>
</tr>
</table>
<pre>
To repro download https://edgedl.me.gvt1.com/chrome/linux/symbols/google-chrome-debug-info-linux64-100.0.4896.60.zip and unzip. Then run:
$ echo 'script print(lldb.target.module[0].GetTypes(lldb.eTypeClassClass | lldb.eTypeClassStruct))' | lldb debug-info/chrome.debug
It appears this is bailing on this type: https://source.chromium.org/chromium/chromium/src/+/main:third_party/harfbuzz-ng/src/src/hb-ot-cmap-table.hh;l=1141 for some reason.
--- command output ---
(lldb) target create "debug-info/chrome.debug"
Current executable set to '/workspaces/thresher/debug-info/chrome.debug' (x86_64).
(lldb) script print(lldb.target.module[0].GetTypes(lldb.eTypeClassClass | lldb.eTypeClassStruct))
error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0
error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0
error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0
error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: lldb debug-info/chrome.debug
1. HandleCommand(command = "script print(lldb.target.module[0].GetTypes(lldb.eTypeClassClass | lldb.eTypeClassStruct))")
2. SymbolFileDWARF::ParseType() is adding a method closure_glyphs to class CmapSubtableFormat14 in DIE 0x0450ff5c from /workspaces/thresher/debug-info/chrome.debug
#0 0x00007fbd78571ae3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xbd9ae3)
#1 0x00007fbd7856fdf0 llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xbd7df0)
#2 0x00007fbd7857214a (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xbda14a)
#3 0x00007fbd80e161f0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x141f0)
#4 0x00007fbd7dd0779e clang::CXXRecordDecl::addedMember(clang::Decl*) (/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xb8079e)
#5 0x00007fbd7dcff497 clang::DeclContext::addHiddenDecl(clang::Decl*) (/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xb78497)
#6 0x00007fbd7dcff4f9 clang::DeclContext::addDecl(clang::Decl*) (/lib/x86_64-linux-gnu/libclang-cpp.so.12+0xb784f9)
#7 0x00007fbd80820cc5 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa51cc5)
#8 0x00007fbd807e718b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1818b)
#9 0x00007fbd807e2256 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa13256)
#10 0x00007fbd807c36e1 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f46e1)
#11 0x00007fbd807bf42e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f042e)
#12 0x00007fbd807be87b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9ef87b)
#13 0x00007fbd807e9a75 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1aa75)
#14 0x00007fbd807e64e8 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa174e8)
#15 0x00007fbd807e2256 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa13256)
#16 0x00007fbd807c36e1 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f46e1)
#17 0x00007fbd807bf42e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f042e)
#18 0x00007fbd807be87b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9ef87b)
#19 0x00007fbd807e9a75 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1aa75)
#20 0x00007fbd807e3deb (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa14deb)
#21 0x00007fbd807e223e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1323e)
#22 0x00007fbd807c36e1 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f46e1)
#23 0x00007fbd807bf42e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f042e)
#24 0x00007fbd807be87b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9ef87b)
#25 0x00007fbd807b77f4 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9e87f4)
#26 0x00007fbd807ea6e2 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1b6e2)
#27 0x00007fbd807e9bde (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1abde)
#28 0x00007fbd807e3f45 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa14f45)
#29 0x00007fbd807e223e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xa1323e)
#30 0x00007fbd807c36e1 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f46e1)
#31 0x00007fbd807bf42e (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9f042e)
#32 0x00007fbd807be87b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9ef87b)
#33 0x00007fbd807b77f4 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9e87f4)
#34 0x00007fbd807b751a (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9e851a)
#35 0x00007fbd807b756b (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9e856b)
#36 0x00007fbd807b7ac8 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9e8ac8)
#37 0x00007fbd800f1bcf lldb::SBModule::GetTypes(unsigned int) (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x322bcf)
#38 0x00007fbd802e1d79 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x512d79)
#39 0x00007fbd76fa6de8 (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x110de8)
#40 0x00007fbd76f628e0 _PyObject_Call (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0xcc8e0)
#41 0x00007fbd76f0d905 _PyEval_EvalFrameDefault (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x77905)
#42 0x00007fbd7703f8dc (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a98dc)
#43 0x00007fbd76f5b132 _PyFunction_Vectorcall (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0xc5132)
#44 0x00007fbd76f0fa02 _PyEval_EvalFrameDefault (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x79a02)
#45 0x00007fbd7703f8dc (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a98dc)
#46 0x00007fbd7703fc32 _PyEval_EvalCodeWithName (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a9c32)
#47 0x00007fbd7703fc82 PyEval_EvalCodeEx (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a9c82)
#48 0x00007fbd7703b11f PyEval_EvalCode (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a511f)
#49 0x00007fbd77039c51 (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a3c51)
#50 0x00007fbd76fac118 (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x116118)
#51 0x00007fbd76f0eb9b _PyEval_EvalFrameDefault (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x78b9b)
#52 0x00007fbd76f07da3 (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x71da3)
#53 0x00007fbd76f0fa02 _PyEval_EvalFrameDefault (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x79a02)
#54 0x00007fbd7703f8dc (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x1a98dc)
#55 0x00007fbd76f5b132 _PyFunction_Vectorcall (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0xc5132)
#56 0x00007fbd76f0fa02 _PyEval_EvalFrameDefault (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x79a02)
#57 0x00007fbd76f07da3 (/lib/x86_64-linux-gnu/libpython3.9.so.1.0+0x71da3)
#58 0x00007fbd8078f9ae (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x9c09ae)
#59 0x00007fbd808979c5 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0xac89c5)
#60 0x00007fbd804375af (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x6685af)
#61 0x00007fbd8042d3a7 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x65e3a7)
#62 0x00007fbd80430c54 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x661c54)
#63 0x00007fbd80388ee6 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x5b9ee6)
#64 0x00007fbd8036da04 (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x59ea04)
#65 0x00007fbd8043232d (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x66332d)
#66 0x00007fbd8004e809 lldb::SBDebugger::RunCommandInterpreter(bool, bool) (/lib/x86_64-linux-gnu/liblldb-12.so.1+0x27f809)
#67 0x0000000000406eba (/usr/lib/llvm-12/bin/lldb+0x406eba)
#68 0x0000000000408886 (/usr/lib/llvm-12/bin/lldb+0x408886)
#69 0x00007fbd77450565 __libc_start_main ./csu/../csu/libc-start.c:332:16
#70 0x00000000004043be (/usr/lib/llvm-12/bin/lldb+0x4043be)
Segmentation fault (core dumped)
--- command output ---
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWltv27gS_jXOC2FBokRdHvyQ2Em3QHu2aIJ23wyKGtk6K4sCSTVJf_0OqcQNle5pVo23L8cwZFnifHMfajwuZXW_upFEQa8kqeRt10pekb0xvV7E5wt6hW-odlC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