<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110349>110349</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lldb debug crash
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
flashmouse
</td>
</tr>
</table>
<pre>
I recently use lldb-17(lldb16,lldb18 same result) debug duckdb and would crash when try to print variables.
cpu: amd 5600g
os: debian
kernel version: 6.1.0-25-amd64
detail print by lldb terminal:
```
p *this->plan
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: lldb-17 /home/flashmouse/code/duckdb/build/debug/duckdb
1. HandleCommand(command = "p *this->plan")
#0 0x00007f8f0d6d623a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-17.so.1+0xcd623a)
#1 0x00007f8f0d6d4474 llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-17.so.1+0xcd4474)
#2 0x00007f8f0d6d68cb (/lib/x86_64-linux-gnu/libLLVM-17.so.1+0xcd68cb)
#3 0x00007f8f0c4545d0 (/lib/x86_64-linux-gnu/libc.so.6+0x3f5d0)
#4 0x00007f8f149a0418 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x7a0418)
#5 0x00007f8f1499fd20 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x79fd20)
#6 0x00007f8f1497d47a (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x77d47a)
#7 0x00007f8f146ae812 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4ae812)
#8 0x00007f8f1468715a (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x48715a)
#9 0x00007f8f14686a06 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x486a06)
#10 0x00007f8f14676a4d (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x476a4d)
#11 0x00007f8f14670cda (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x470cda)
#12 0x00007f8f14696244 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x496244)
#13 0x00007f8f146b04f4 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b04f4)
#14 0x00007f8f146af3c7 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4af3c7)
#15 0x00007f8f146b153c (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b153c)
#16 0x00007f8f146b1a8e (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b1a8e)
#17 0x00007f8f146b062d (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b062d)
#18 0x00007f8f146af3c7 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4af3c7)
#19 0x00007f8f146b153c (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b153c)
#20 0x00007f8f146b1a8e (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b1a8e)
#21 0x00007f8f146b062d (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b062d)
#22 0x00007f8f146af3c7 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4af3c7)
#23 0x00007f8f146b153c (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b153c)
#24 0x00007f8f146b1a8e (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b1a8e)
#25 0x00007f8f146b062d (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4b062d)
#26 0x00007f8f146af3c7 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4af3c7)
#27 0x00007f8f14678deb (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x478deb)
#28 0x00007f8f14c2c9c6 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0xa2c9c6)
#29 0x00007f8f1470bc5b (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x50bc5b)
#30 0x00007f8f146ffce6 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x4ffce6)
#31 0x00007f8f14703b63 (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x503b63)
#32 0x00007f8f1463ec3a (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x43ec3a)
#33 0x00007f8f1461e2bc (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x41e2bc)
#34 0x00007f8f1470595c (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x50595c)
#35 0x00007f8f1441eb3e lldb::SBDebugger::RunCommandInterpreter(bool, bool) (/usr/lib/llvm-17/bin/../lib/liblldb-17.so.1+0x21eb3e)
#36 0x000056112402099d (/usr/lib/llvm-17/bin/lldb+0x899d)
#37 0x0000561124021412 (/usr/lib/llvm-17/bin/lldb+0x9412)
#38 0x00007f8f0c43edba __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#39 0x00007f8f0c43ee75 call_init ./csu/../csu/libc-start.c:128:20
#40 0x00007f8f0c43ee75 __libc_start_main ./csu/../csu/libc-start.c:347:5
#41 0x000056112401d7f1 (/usr/lib/llvm-17/bin/lldb+0x57f1)
LLDB diagnostics will be written to /tmp/diagnostics-81de18
Please include the directory content when filing a bug report
Segmentation fault
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8mF1v4ywWxz8NuUGJ8AG_XeQi83SifaSuNNpZ7W2FASfsYBwB7su3X4HTtPjpxew8nlZVQo39_50XepJzuPf6ZJXao_ILKu82fArn0e17w_15GCevNt0oX_Z_YqeEssG84MkrbIzstkWNoImrokLwR1o02PNBYaf8ZAKCFkvVTScsJ_FDdphbiZ_GyUgsHPdn_HRWFgf3gsOIL07bgB-507wzyu8QuUPkIC4TogfMB4nLipDTfHX08aJU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