NetBSD Problem Report #52168
From www@NetBSD.org Sun Apr 16 12:57:26 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E69DE7A1FE
for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Apr 2017 12:57:26 +0000 (UTC)
Message-Id: <20170416125726.1CEBA7A2AD@mollari.NetBSD.org>
Date: Sun, 16 Apr 2017 12:57:26 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: attach2:t_ptrace_wait* is unusable
X-Send-Pr-Version: www-1.0
>Number: 52168
>Category: kern
>Synopsis: attach2:t_ptrace_wait* is unusable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kamil
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 16 13:00:00 +0000 2017
>Closed-Date: Wed Dec 12 23:17:59 +0000 2018
>Last-Modified: Wed Dec 12 23:17:59 +0000 2018
>Originator: Kamil Rytarowski
>Release: NetBSD 7.99.68 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.68 NetBSD 7.99.68 (GENERIC) #1: Fri Apr 14 05:48:41 CEST 2017 root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
attach2 is unstable on all ports and with combination of all wait(2)-like functions.
>How-To-Repeat:
Run test in: tests/lib/libc/sys
atf-run t_ptrace_wait*|atf-report
>Fix:
N/A
>Release-Note:
>Audit-Trail:
From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52168 CVS commit: src/tests/lib/libc/sys
Date: Sun, 16 Apr 2017 13:09:40 +0000
Module Name: src
Committed By: kamil
Date: Sun Apr 16 13:09:40 UTC 2017
Modified Files:
src/tests/lib/libc/sys: t_ptrace_wait.c
Log Message:
ATF test attach2/t_ptrace_wait* is unstable
Mark it broken with:
PR kern/52168 attach2:t_ptrace_wait* is unsable
In order to get reliable failure, abort this test at the end (if we get
there).
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/t_ptrace_wait.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: kern-bug-people->kamil
Responsible-Changed-By: kamil@NetBSD.org
Responsible-Changed-When: Fri, 06 Oct 2017 23:14:12 +0200
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Thu, 13 Dec 2018 00:17:59 +0100
State-Changed-Why:
revision 1.25
date: 2018-03-07 17:40:06 +0100; author: kamil; state: Exp; lines: +2 -8; commitid: mKAGeMnwGb1TSxtA;
ATF: Reenable attach2 in t_ptrace_wait*
The primary race specific to this test has been fixed in previous commit
(wrong WNOHANG).
This test is still racy and breaks like once every 30,000 execution.
This is down like from once from every 100th execution in the past.
The remaning race is not specific to attach2 and I can reproduce it with
at least attach1. It still looks like being specific to NetBSD and it's
not reproducible on Linux and FreeBSD. Perhaps a bug with pipe(2)/write(2)/
read(2) or close to these features.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.