-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rust-gdb mishandles very long vectors #29467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Comments
Good catch. That should definitely be handled better. |
As a note, when trying the gdb pretty-printers on windows, whenever I execute |
michaelwoerister
pushed a commit
to michaelwoerister/rust
that referenced
this issue
Dec 15, 2015
michaelwoerister
pushed a commit
to michaelwoerister/rust
that referenced
this issue
Dec 15, 2015
untitaker
added a commit
to untitaker/rust
that referenced
this issue
Jan 10, 2016
untitaker
added a commit
to untitaker/rust
that referenced
this issue
Jan 10, 2016
Fixed by #34639 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears to try to print/handle all elements of a vector, which means it eats a ton of CPU and memory for a very long one. This includes vectors that have been moved from, which have their length field filled in with
0x1d1d...
... which is a very large length (it can also occur when trying to debug memory corruption/mistakes: corrupting the length field may make it harder to use the debugger).(note the
^C
to cancel thep v
.)The text was updated successfully, but these errors were encountered: