<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54754>54754</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CommandInterpreter::GetHelp segfault
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
justin-armstrong-gc
</td>
</tr>
</table>
<pre>
After adding custom `CommandObjectMultiword` commands, I'm seeing the "help" command segfault.
I think the culprit is this line:
https://github.com/llvm/llvm-project/blob/main/lldb/source/Interpreter/CommandInterpreter.cpp#L1448
```
for (pos = m_user_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
```
It should be
```
for (pos = m_user_mw_dict.begin(); pos != m_user_mw_dict.end(); ++pos) {
```
Thanks,
Justin
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1Uk2P2yAQ_TX4gmJh8Ed88CHZaLupWvXS-woMttnFYPGxUf99x07SXam97KE2GnjMY-YNjHDyV3cYovKYS6ntiPsUopsxqsmDm2du5Q_xovr4PZmoL85LcOD-6gmIPuAzos2Mg1Lr4TgpjCidlFlguvPAOw4cAuSInBA5XO0Z2Nq-bmf6ZBavI9Zh3QzYaKsQuxGnGJewIvoIY9RxSiKH0ACMebtPu8W7VShAYZyAaebabk65ouCS7xUszhaqXbwCC-hW5IfNvF9APPtWlOX-prcmt7FBDN_gPBS6X1zAiJ3w_JyC8s9S9zEXalzz7hFtETvijUKLD6z5ciUqK99piB5hABkwRs3xn5nPEYfJJSOxUJ-Udk_6H9Vd7c-J29e1M67wK7STtpnsmGxZy7Ooo1Hd37e-vi87fFHxCXrnT8NkyZvu0--vQ0gKJDxWZVOV2dTxYiB9zShv27bqCasaXpR1Cz8jQ0n3meFCmdChCsqkVl3wFgLWqDpluqOEUlKSqiBVzZq8FrRo6qGtBeeUEYVKoqDZTL7qyJ0fM99tkkQaAziNDjG8O3kIerRKbekgPk9xcr572W5qx_0cond23I19tsnotjJ-AyAWH9U">