From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CF64385842E; Sun, 16 Apr 2023 13:23:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CF64385842E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681651397; bh=QGz7S/r7J7hGowmCvaoxv5MDEelfL8QmChSLIjoIvZs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bsMgVeHazgQYv0qM+AEivKIO/OvXpP/xVDboX6BN9QA5X4doovl7u85S9Q4F+iSgI 7JAjTSrN6eVQqYSmZ8/7favNgXH/9ugorU1roYDgNdaej/0gxkFhyV/LWU1M3ND6d4 4a5pYr/63i3I9JWO03EWjX842Ve3Lf/Md9fAyLnQ= From: "yangyibiao at nju dot edu.cn" To: gdb-prs@sourceware.org Subject: [Bug gdb/30357] Segmentation fault for the 'start' command Date: Sun, 16 Apr 2023 13:23:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: yangyibiao at nju dot edu.cn X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30357 --- Comment #3 from Yibiao Yang --- (In reply to Tom de Vries from comment #2) > Fixed by: > ... > diff --git a/gdb/dwarf2/line-header.c b/gdb/dwarf2/line-header.c > index 9d74c8fe75b..d59b63588d0 100644 > --- a/gdb/dwarf2/line-header.c > +++ b/gdb/dwarf2/line-header.c > @@ -51,6 +51,9 @@ line_header::add_file_name (const char *name, > file_name_index index > =3D version >=3D 5 ? file_names_size (): file_names_size () + 1; >=20=20 > + if (name =3D=3D nullptr) > + name =3D ""; > + > if (dwarf_line_debug >=3D 2) > gdb_printf (gdb_stdlog, "Adding file %d: %s\n", index, name); > ... Thanks. I will update gdb to the latest version. --=20 You are receiving this mail because: You are on the CC list for the bug.=