From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6E7C73858422; Tue, 23 Jan 2024 15:59:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E7C73858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706025557; bh=Re+KGG2HVUbfV85Y8paXn8rzdLsOXpMMCunpfJTWqDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pefbRLXFQfYrnsX2roavBPyyvPVBNS3efTldm6ziBdvzyhbYEa6L7KqrHD/PbjSIl KYhS8Km1YXleI/9pVbl9EbkwSiKsWeDpeeuQvzG/g97/wXia1HhBhzS/gRgzLxHt2T k2AE4ywaa/GbSkwQUU0xyh/ZDPXT82hPA61Glm8M= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31256] Crash with basic 'list .' Date: Tue, 23 Jan 2024 15:59: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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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=3D31256 --- Comment #7 from Sourceware Commits --- The master branch has been updated by Guinevere Larsen : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0068bd6fb357= 9dd8df7561e038cb3fe27f122b0e commit 0068bd6fb3579dd8df7561e038cb3fe27f122b0e Author: Guinevere Larsen Date: Mon Jan 22 10:13:52 2024 +0100 gdb: fix "list ." related crash When a user attempts to use the "list ." command with an inferior that doesn't have debug symbols, GDB would crash. This was reported as PR gdb/31256. The crash would happen when attempting to get the current symtab_and_li= ne for the stop location, because the symtab would return a null pointer and we'd attempt to dereference it to print the line. This commit fixes that by checking for an empty symtab and erroring out of the function if it happens. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31256 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=