Bug 2183595
| Summary: | GDB 13.1 internal-error getting a backtrace from Rust | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Josh Stone <jistone> |
| Component: | gdb | Assignee: | Keith Seitz <keiths> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | ahajkova, fweimer, guinevere, jan, keiths, kevinb, mcermak, pmuldoon, sergiodj |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gdb-13.1-3.fc38 gdb-13.1-3.fc37 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-04-15 02:05:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
FEDORA-2023-9acb60a40e has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9acb60a40e FEDORA-2023-85e813d1ac has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-85e813d1ac FEDORA-2023-85e813d1ac has been pushed to the Fedora 38 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-85e813d1ac See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-9acb60a40e has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-9acb60a40e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9acb60a40e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-85e813d1ac has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-9acb60a40e has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: GDB sometimes hits an internal-error while debugging Rust programs. Version-Release number of selected component (if applicable): gdb-13.1-1.fc37.x86_64 cargo-1.68.2-1.fc37.x86_64 rust-1.68.2-1.fc37.x86_64 How reproducible: fully Steps to Reproduce: 1. cargo new hello; cd hello 2. edit src/main.rs to the following: fn main() { std::thread::scope(|s| { s.spawn(|| { println!("Hello, world!"); std::process::abort(); }); }); } 3. cargo build 4. gdb -ex run -ex bt target/debug/hello Actual results: (gdb) bt ../../gdb/frame.c:2457: internal-error: inside_main_func: Assertion `block != nullptr' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Expected results: No internal-error :) Additional info: It works if I downgrade to gdb-12.1-4.fc37.x86_64 There is already an upstream fix queued for 13.2: https://sourceware.org/bugzilla/show_bug.cgi?id=30158