Issue 81536
Summary lldb crashes when using tab completion.
Labels lldb
Assignees
Reporter ZequanWu
    lldb version: trunk.

a.cpp
```
class B {
  int x;
};
class A {
  B t;
  int t2;
};

int main(int argc, char* argv[]) {
 A a;
  return 0;
}
```

command:
`clang++ -g a.cpp && lldb a.out -o "b a.cpp:11" -o "r"`

Enter `a.t.` and use tab completion causes lldb to crash:
```
(lldb) p a.t.terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 4) > this->size() (which is 3)
LLDB diagnostics will be written to /tmp/diagnostics-eaf5b2
Please include the directory content when filing a bug report
[1]    2833408 IOT instruction  lldb a.out -o "b a.cpp:11" -o "r"
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to