From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3831D3858C30; Fri, 14 Apr 2023 10:09:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3831D3858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681466943; bh=LEc7fTSWpa2yqZVlb3s1/0T+brSWKJFVYp/ecBHDqhI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ojLdsMANVAV5jDX2su5KmUX20D43r4Ggg+4rGXk+RnT4LqiIGCB/xzs6LF468JKPk Pkc5K8xDkdw0YQksLctzwRV0TnPV+vsf2QHZgAygIJadkJQLgbX8lgqujDmbVTE8z2 1X8buriZ0Zk6b5VFFZcXfuXAMhnmMu/rUQq+0FZk= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/30353] [gdb/cli] segfault on -eiex "set editing off" Date: Fri, 14 Apr 2023 10:09:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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=3D30353 --- Comment #1 from Tom de Vries --- Segfault happens because we dereference nullptr interp: ... Thread 1 "gdb" received signal SIGSEGV, Segmentation fault. 0x0000000000893970 in interp_supports_command_editing (interp=3D0x0) at /data/vries/gdb/src/gdb/interps.c:330 330 return interp->supports_command_editing (); ... Called from here: ... (gdb) up #1 0x0000000000787112 in change_line_handler (editing=3D0) at /data/vries/gdb/src/gdb/event-top.c:292 292 if (!interp_supports_command_editing (top_level_interpreter ()) .... Called from here: ... (gdb) up #2 0x0000000000c5554c in set_editing (args=3D0x0, from_tty=3D1, c=3D0x2ab0= 7a0) at /data/vries/gdb/src/gdb/top.c:2141 2141 change_line_handler (set_editing_cmd_var); ... --=20 You are receiving this mail because: You are on the CC list for the bug.=