From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 975E5385840E; Sun, 29 Oct 2023 09:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 975E5385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698571610; bh=JaFOt5/yGfG6S6Unaho3OKdHRzQJbP+tmQrQNm6YRAU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=i9eJ/iOQ3It/uYzUzMzAnEuD0S5pqhPaw9whmgmy7X9RrXks5oG/hi0Z3x6tMBnM2 Yn4Xnm1k0AU6vgx6e1OBunmmAfWYPWol+vKR2oK8AvCQAmXrJBKl8lTC3YeFs8pW3E HYcqWWrFocYFSmZRgHrSpIX5RFtzoCSbCxC3FH2c= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/30531] [gdb] FAIL: gdb.threads/clone-thread_db.exp: continue to clone_fn (the program exited) Date: Sun, 29 Oct 2023 09:26:49 +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: 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=3D30531 --- Comment #1 from Tom de Vries --- Reproduced again (with SLE-11 x86_64 -m64 PIE this time). I've got no idea what's causing this. We could add a non-null wstatus argument to the waitpid call and assert more than just res !=3D -1: ... res =3D waitpid (clone_pid, NULL, __WCLONE); assert (res !=3D -1); ... Also res, if not -1, should be the pid of the clone, so we could check for that. Also -1 in combination with EINTR is a valid result, and should be handled appropriately. --=20 You are receiving this mail because: You are on the CC list for the bug.=