| Summary: | Internal error when debugging Rust programs | ||
|---|---|---|---|
| Product: | gdb | Reporter: | Nils Asmussen <nils> |
| Component: | backtrace | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | m100, tromey |
| Priority: | P2 | ||
| Version: | 12.1 | ||
| Target Milestone: | --- | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | 2022-08-05 00:00:00 | |
| Project(s) to access: | ssh public key: | ||
|
Description
Nils Asmussen
2022-06-29 14:10:40 UTC
I couldn't make it fail here. I tried 1.61 and 1.62. It would be easy to patch around this assert, but I think we'd rather not do that without understanding the problem first. There was indeed one thing missing as I just noticed when trying it on another system. Sorry for that. I have the following line in my ~/.gdbinit: set demangle-style gnu-v3 Without this line, the problem disappears. I was able to reproduce it by changing that setting. I tend to think the "demangle-style" should not be settable. IMO it is a relic of the pre-v3 days, when maybe setting it by hand made sense .... but that doesn't really make sense any more, and the setting doesn't really do anything useful. Meanwhile, remove that from your .gdbinit and everything should be fine. I can reproduce this without setting demangle-style (rustc 1.67.0 (fc594f156 2023-01-24)), same conditions as with Nils. I bisected gdb and it seems this was introduced in 7f4307436f. (In reply to Michael Schmidt from comment #4) > I can reproduce this without setting demangle-style (rustc 1.67.0 (fc594f156 > 2023-01-24)), same conditions as with Nils. I bisected gdb and it seems this > was introduced in 7f4307436f. Maybe this is a dup of bug#30158 then. Can you try a gdb from git, either from the 13 branch or from master? (In reply to Tom Tromey from comment #5) > (In reply to Michael Schmidt from comment #4) > > I can reproduce this without setting demangle-style (rustc 1.67.0 (fc594f156 > > 2023-01-24)), same conditions as with Nils. I bisected gdb and it seems this > > was introduced in 7f4307436f. > > Maybe this is a dup of bug#30158 then. > Can you try a gdb from git, either from the 13 branch or from master? Indeed, I tested bf3f6c02d7 (master) and 8067be0fc6 (gdb-13-branch) and both work fine. |