Opened 15 months ago

Closed 15 months ago

Last modified 11 months ago

#17864 closed enhancement (fixed)

Apply patch to GDB to prevent it from crashing during rust tests

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 12.0
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

While I've been working on updating rustc to 1.68.1 (#17860), I've noticed an apparent bug in gdb that causes gdb to crash with an internal error during rust's tests...

---

Breakpoint 22, destructured_fn_argument::multiple_arguments (../../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.

Quit this debugging session? (y or n) [answered Y; input not from terminal]

---

In another test, gdb refuses to even run on the program and crashes immediately with a SIGABRT.

The following tests fail:

failures:
    [debuginfo-gdb] tests/debuginfo/destructured-fn-argument.rs
    [debuginfo-gdb] tests/debuginfo/function-arguments.rs
    [debuginfo-gdb] tests/debuginfo/lexical-scope-in-stack-closure.rs
    [debuginfo-gdb] tests/debuginfo/lexical-scope-in-unique-closure.rs
    [debuginfo-gdb] tests/debuginfo/unsized.rs

There is a patch upstream to fix these crashes in GDB: https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=562403d4f5483e0787219fdb88da72c707c8d7f6

Change History (5)

comment:1 by Douglas R. Reno, 15 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 15 months ago

Patch retrieved, now going to let this run overnight.

comment:3 by Douglas R. Reno, 15 months ago

With this patch applied, the gdb crashes in rustc's test suite is gone, and all of the tests now pass.

comment:4 by Douglas R. Reno, 15 months ago

Resolution: fixed
Status: assignedclosed

comment:5 by Bruce Dubbs, 11 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.