From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2B60385841E; Thu, 31 Aug 2023 07:37:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2B60385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693467477; bh=HMM5MuYJKDMbgVXVnw7A3GdQ6n10W6odwg20A7Im32g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cNJ9J8ZHOjJr1WmLLImSKbM+a1A172/q1OJbEjSzs6pgN23PDuLlNSvrEWneJL1hK zqSZ3YFsMrCIaUK5Ql4soprui6MdcZvQTtzvE8mrBv8OsGp3X/87f6ORjWxRAdR7AF wQuSXpPwLkrlqF8lhSlkRd0LZffYlD4InnYxevME= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30810] [gdb/symtab, stabs] gdbtypes.c:5596: internal-error: Unexpected type field location kind: 6 Date: Thu, 31 Aug 2023 07:37:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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=3D30810 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0b8b932dce26= ef8e907b3b3c06b01a99420245fe commit 0b8b932dce26ef8e907b3b3c06b01a99420245fe Author: Tom de Vries Date: Thu Aug 31 09:37:44 2023 +0200 [gdb/symtab] Fix uninitialized memory in buildsym_compunit::finish_block_internal When running test-case gdb.dwarf2/per-bfd-sharing.exp with target board stabs, gdb either segfaults or asserts due to reading uninitialized memory, allocated here in buildsym_compunit::finish_block_internal: ... ftype->set_fields ((struct field *) TYPE_ALLOC (ftype, nparams * sizeof (struct field))); ... Fix this by using TYPE_ZALLOC instead. Tested on x86_64-linux. Approved-By: Tom Tromey PR symtab/30810 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30810 --=20 You are receiving this mail because: You are on the CC list for the bug.=