<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118577>118577</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Crash Report - Arch Linux
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ancientjpeg
</td>
</tr>
</table>
<pre>
Reporting a crash I've encountered in LLDB. Seems to only occur when I exit LLDB. I'm running LLDB using `lldb-dap` through neovim on Arch Linux. Here's the stack trace:
```
free(): invalid pointer
PLEASE submit a bug report to and include the crash backtrace.
#0 0x0000770c517c4d90 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/src/debug/llvm/llvm-18.1.8.src/lib/Support/Unix/Signals.inc:723:22
#1 0x0000770c517c1d4d llvm::sys::RunSignalHandlers() /usr/src/debug/llvm/llvm-18.1.8.src/lib/Support/Signals.cpp:105:20
#2 0x0000770c517c1d4d SignalHandler /usr/src/debug/llvm/llvm-18.1.8.src/lib/Support/Unix/Signals.inc:403:31
#3 0x0000770c50a4c1d0 (/usr/lib/libc.so.6+0x3d1d0)
#4 0x0000770c50aa53f4 __pthread_kill_implementation /usr/src/debug/glibc/glibc/nptl/pthread_kill.c:44:76
#5 0x0000770c50a4c120 raise /usr/src/debug/glibc/glibc/signal/../sysdeps/posix/raise.c:27:6
#6 0x0000770c50a334c3 abort /usr/src/debug/glibc/glibc/stdlib/abort.c:81:7
#7 0x0000770c50a34354 _IO_acquire_lock_fct /usr/src/debug/glibc/glibc/libio/libioP.h:979:6
#8 0x0000770c50a34354 _IO_peekc_locked /usr/src/debug/glibc/glibc/libio/peekc.c:37:3
#9 0x0000770c50aaf765 /usr/src/debug/glibc/glibc/malloc/malloc.c:5772:3
#10 0x0000770c50ab1c4c _int_free /usr/src/debug/glibc/glibc/malloc/malloc.c:4507:5
#11 0x0000770c50ab45ce cfree /usr/src/debug/glibc/glibc/malloc/malloc.c:3401:3
#12 0x0000770c5928362a std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:347:18
#13 0x0000770c5928362a std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:317:5
#14 0x0000770c592b6d14 lldb_private::CommandObjectParsed::~CommandObjectParsed() /usr/src/debug/lldb/lldb-18.1.8.src/include/lldb/Interpreter/CommandObject.h:399:3
#15 0x0000770c592b6d14 lldb_private::CommandPluginInterfaceImplementation::~CommandPluginInterfaceImplementation() /usr/src/debug/lldb/lldb-18.1.8.src/source/API/SBCommandInterpreter.cpp:37:7
#16 0x0000770c59283566 __gnu_cxx::__is_single_threaded() /usr/include/c++/14.1.1/ext/atomicity.h:52:14
#17 0x0000770c59283566 __gnu_cxx::__exchange_and_add_dispatch(int*, int) /usr/include/c++/14.1.1/ext/atomicity.h:98:29
#18 0x0000770c59283566 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:187:44
#19 0x0000770c59283566 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use_cold() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:199:28
#20 0x0000770c59aa5872 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_data() const /usr/include/c++/14.1.1/bits/basic_string.h:228:28
#21 0x0000770c59aa5872 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_is_local() const /usr/include/c++/14.1.1/bits/basic_string.h:269:13
#22 0x0000770c59aa5872 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_dispose() /usr/include/c++/14.1.1/bits/basic_string.h:287:18
#23 0x0000770c59aa5872 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() /usr/include/c++/14.1.1/bits/basic_string.h:809:0
#24 0x0000770c59aa5872 lldb_private::ScriptedMetadata::~ScriptedMetadata() /usr/src/debug/lldb/lldb-18.1.8.src/include/lldb/Utility/ScriptedMetadata.h:16:0
#25 0x0000770c59aa5872 void std::__new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>*) /usr/include/c++/14.1.1/bits/new_allocator.h:198:13
#26 0x0000770c59aa5872 void std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>>::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>(std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>*) /usr/include/c++/14.1.1/bits/alloc_traits.h:554:15
#27 0x0000770c59aa5872 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::_M_destroy_node(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>*) /usr/include/c++/14.1.1/bits/stl_tree.h:621:24
#28 0x0000770c59aa5872 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::_M_drop_node(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>*) /usr/include/c++/14.1.1/bits/stl_tree.h:629:17
#29 0x0000770c59aa5872 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::_M_erase(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>*) /usr/include/c++/14.1.1/bits/stl_tree.h:1934:16
#30 0x0000770c59aa5872 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::~_Rb_tree() /usr/include/c++/14.1.1/bits/stl_tree.h:982:17
#31 0x0000770c59aa5872 std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<lldb_private::CommandObject>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::~map() /usr/include/c++/14.1.1/bits/stl_map.h:314:7
#32 0x0000770c59aa5872 lldb_private::CommandObjectMultiword::~CommandObjectMultiword() /usr/src/debug/lldb/lldb-18.1.8.src/source/Commands/CommandObjectMultiword.cpp:28:1
#33 0x0000770c59aa5872 lldb_private::CommandObjectMultiword::~CommandObjectMultiword() /usr/src/debug/lldb/lldb-18.1.8.src/source/Commands/CommandObjectMultiword.cpp:28:1
#34 0x0000770c59283566 __gnu_cxx::__is_single_threaded() /usr/include/c++/14.1.1/ext/atomicity.h:52:14
#35 0x0000770c59283566 __gnu_cxx::__exchange_and_add_dispatch(int*, int) /usr/include/c++/14.1.1/ext/atomicity.h:98:29
#36 0x0000770c59283566 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:187:44
#37 0x0000770c59283566 std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release_last_use_cold() /usr/include/c++/14.1.1/bits/shared_ptr_base.h:199:28
#38 0x0000770c59522790 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_data() const /usr/include/c++/14.1.1/bits/basic_string.h:228:28
#39 0x0000770c59522790 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_is_local() const /usr/include/c++/14.1.1/bits/basic_string.h:269:13
#40 0x0000770c59522790 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_dispose() /usr/include/c++/14.1.1/bits/basic_string.h:287:18
#41 0x0000770c59522790 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() /usr/include/c++/14.1.1/bits/basic_string.h:809:0
#42 0x0000770c59522790 lldb_private::ScriptedMetadata::~ScriptedMetadata() /usr/src/debug/lldb/lldb-18.1.8.src/include/lldb/Utility/ScriptedMetadata.h:16:0
#43 0x0000770c59522790 void std::__new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>*) /usr/include/c++/14.1.1/bits/new_allocator.h:198:13
#44 0x0000770c59522790 void std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>>::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>(std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>*) /usr/include/c++/14.1.1/bits/alloc_traits.h:554:15
#45 0x0000770c59522790 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>>::_M_destroy_node(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>*) /usr/include/c++/14.1.1/bits/stl_tree.h:621:24
#46 0x0000770c59522790 std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::shared_ptr<lldb_private::CommandObject>>>,
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsXFtv46oT_zTkBW2EwdeHPGS7G51KXZ1q-z_PFgaacEps_wH38rKf_QjMbp0023u7aWspUi7gmfkNM78h9ghqjFzWQsxA8hkkXya0s6tGz2jNpKjtv61YTqqGX82-i7bRVtZLSCHT1KzgIcDZuYCiZk1XW6EFh7KGR0dfPk_hiRBrA20Dm1pdwYaxTsOLlajhIRSX0oZZTsIa6q6unVz3G-yM-whSpBSvPnHaghRBu9JNt1zBWjTncg2bGs41W8EjWXeXU_iX0ALgzEC7EtBYys6g1ZQJQOYA-VeKwgvNT7UQAOcAF4DMoazPqZIcto10CACaHx99nZ98haar1tJCCqtuCbWH7tBAWjuQTHVceHW9JyrKzr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