From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51F1C3858299; Wed, 7 Sep 2022 14:23:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51F1C3858299 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662560585; bh=bdDqGi8+Se8ibBglK+8VgJi6SNgdmq/vKaFVtmDPVww=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UJCkyzELMXOQwln5Wtv5GTRli1UXr35j4bO+0EWOW8puV97APiro1STCq5wRU0O1g CLWRDPSC1VEtW4CIhVE5nSJSOIq/affvKRpKrXcnJs6Fi55IjtHJhF0+QZMj2MNw/T 2n/uSvZ8UFm+TLdswExeKdlawPdM6AnedAyFbfQA= From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug rust/29550] Segmentation fault in infrun.c Date: Wed, 07 Sep 2022 14:23:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon.marchi at polymtl dot ca X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D29550 Simon Marchi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simon.marchi at polymtl do= t ca --- Comment #1 from Simon Marchi --- If you can provide a reproducer, I'd be interested to dig into it. The code is: for (inferior *inf : all_non_exited_inferiors ()) { process_stratum_target *proc_target =3D inf->process_target (); if (proc_target->commit_resumed_state) <-- segfaults here This means we have an inferior marked as not exited (inf->pid !=3D 0), while having no process target. This is an invalid state. --=20 You are receiving this mail because: You are on the CC list for the bug.=