﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17864	Apply patch to GDB to prevent it from crashing during rust tests	Douglas R. Reno	Douglas R. Reno	"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]"	enhancement	closed	normal	12.0	BOOK	git	medium	fixed		
