<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58333>58333</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb] a crash in lldb for mistyping command `br dis 11.`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
KerangM
</td>
</tr>
</table>
<pre>
Hi all,
I am going to disable the breakpoint, but mistyping the command `br dis 11. (br dis 11.4)`, and then the lldb crashed.
The backtrace shows bellow.
```
(lldb) br dis 11.
...
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /usr1/.../build/bin/lldb /usr1/llvm_workspace/build/bin/ld.lld
1. HandleCommand(command = "br dis 11.")
#0 0x00007ff39497f1c7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr1/llvm_workspace/llvm/lib/Support/Unix/Signals.inc:565:0
#1 0x00007ff39497f27e PrintStackTraceSignalHandler(void*) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/llvm/lib/Support/Unix/Signals.inc:632:0
#2 0x00007ff39497d243 llvm::sys::RunSignalHandlers() /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/llvm/lib/Support/Signals.cpp:97:0
#3 0x00007ff39497ec0b SignalHandler(int) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/llvm/lib/Support/Unix/Signals.inc:407:0
#4 0x00007ff3966cfc70 __restore_rt (/lib64/libpthread.so.0+0x10c70)
#5 0x00007ff393984fd7 raise (/lib64/libc.so.6+0x34fd7)
#6 0x00007ff3939863aa abort (/lib64/libc.so.6+0x363aa)
#7 0x00007ff39397ddc6 __assert_fail_base (/lib64/libc.so.6+0x2ddc6)
#8 0x00007ff39397de72 (/lib64/libc.so.6+0x2de72)
#9 0x00007ff394f8f04f llvm::StringRef::operator[](unsigned long) const /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/llvm/include/llvm/ADT/StringRef.h:257:0
#10 0x00007ff394f90175 lldb_private::BreakpointIDList::FindAndReplaceIDRanges(lldb_private::Args&, lldb_private::Target*, bool, lldb_private::BreakpointName::Permissions::PermissionKinds, lldb_private::CommandReturnObject&, lldb_private::Args&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Breakpoint/BreakpointIDList.cpp:161:0
#11 0x00007ff3958d7a4c lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs(lldb_private::Args&, lldb_private::Target*, bool, lldb_private::CommandReturnObject&, lldb_private::BreakpointIDList*, lldb_private::BreakpointName::Permissions::PermissionKinds) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Commands/CommandObjectBreakpoint.cpp:2429:0
#12 0x00007ff3958d7cdd lldb_private::CommandObjectMultiwordBreakpoint::VerifyBreakpointOrLocationIDs(lldb_private::Args&, lldb_private::Target*, lldb_private::CommandReturnObject&, lldb_private::BreakpointIDList*, lldb_private::BreakpointName::Permissions::PermissionKinds) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Commands/CommandObjectBreakpoint.h:30:0
#13 0x00007ff3958db77e CommandObjectBreakpointDisable::DoExecute(lldb_private::Args&, lldb_private::CommandReturnObject&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Commands/CommandObjectBreakpoint.cpp:1052:0
#14 0x00007ff3951659e5 lldb_private::CommandObjectParsed::Execute(char const*, lldb_private::CommandReturnObject&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Interpreter/CommandObject.cpp:998:0
#15 0x00007ff395138dec lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Interpreter/CommandInterpreter.cpp:1957:0
#16 0x00007ff39513d5ba lldb_private::CommandInterpreter::IOHandlerInputComplete(lldb_private::IOHandler&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Interpreter/CommandInterpreter.cpp:3026:0
#17 0x00007ff395019eed lldb_private::IOHandlerEditline::Run() /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Core/IOHandler.cpp:576:0
#18 0x00007ff394fd7513 lldb_private::Debugger::RunIOHandlers() /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Core/Debugger.cpp:984:0
#19 0x00007ff39513e7bc lldb_private::CommandInterpreter::RunCommandInterpreter(lldb_private::CommandInterpreterRunOptions&) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/Interpreter/CommandInterpreter.cpp:3271:0
#20 0x00007ff394e8e28a lldb::SBDebugger::RunCommandInterpreter(bool, bool) /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/source/API/SBDebugger.cpp:1160:0
#21 0x000000000040a648 Driver::MainLoop() /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/tools/driver/Driver.cpp:630:0
#22 0x000000000040b111 main /usr1/llvm_workspace/Wireless-Software-Platform-LLVM-Toolchain/lldb/tools/driver/Driver.cpp:845:0
#23 0x00007ff393970765 __libc_start_main (/lib64/libc.so.6+0x20765)
#24 0x0000000000407ea9 _start /home/abuild/rpmbuild/BUILD/glibc-2.22/csu/../sysdeps/x86_64/start.S:121:0
Aborted (core dumped)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWN9zmzgQ_mvsF00YEL8f_GDX8dRzyTWTpL1HRiBhc8XASKJJ7q-_lQDbwk5zuSa9PlzGE0BaVt-3u6xWm9b0afaxQKQsJ_jDxF5O7PkakR3a1EW1QbJGtBAkLRmSW4ZSzsjXBmYkCKO0lWh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