-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed as not planned
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.WG-debuggingWorking group: Bad Rust debugging experiencesWorking group: Bad Rust debugging experiences
Description
I've loaded a (test) binary into rust-lldb
via:
$ rust-lldb target/debug/deps/<mylib>-<hash>
then I stepped through a few lines of code and tried to list the local variables in the current stack frame:
(lldb) fr v
and encountered this error:
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
it did display all of the local variables though.
I expect the debugger to show all of the local variables without encountering an error.
Meta
rustc --version --verbose
:
rustc 1.70.0 (90c541806 2023-05-31) (built from a source tarball)
binary: rustc
commit-hash: 90c541806f23a127002de5b4038be731ba1458ca
commit-date: 2023-05-31
host: aarch64-apple-darwin
release: 1.70.0
LLVM version: 16.0.1
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.WG-debuggingWorking group: Bad Rust debugging experiencesWorking group: Bad Rust debugging experiences