NetBSD Problem Report #56499
From gson@gson.org Mon Nov 15 11:01:41 2021
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id CE4CF1A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 15 Nov 2021 11:01:41 +0000 (UTC)
Message-Id: <20211115110131.8851C254286@guava.gson.org>
Date: Mon, 15 Nov 2021 13:01:31 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: v7fs_renamerace_cycle test case randomly fails
X-Send-Pr-Version: 3.95
>Number: 56499
>Category: kern
>Synopsis: v7fs_renamerace_cycle test case randomly fails
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 15 11:05:00 +0000 2021
>Originator: Andreas Gustafsson
>Release: NetBSD-current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:
When I run the ATF tests on real amd64 hardware, the
v7fs_renamerace_cycle test case fails with the error message
"Test program received signal 14" in roughly 1 out of every 30 runs.
The log output from a recent failure is here:
https://www.gson.org/netbsd/bugs/build/amd64-baremetal/2021/2021.11.11.07.38.21/test.html#fs_vfs_t_renamerace_v7fs_renamerace_cycle
Signal 14 is a SIGALRM, which presumably comes from this piece of
code in src/tests/fs/vfs/t_renamerace.c:
alarm(1);
pthread_join(pt_rmdir, NULL);
pthread_join(pt_rename1, NULL);
pthread_join(pt_rename2, NULL);
alarm(0);
The problem still occurs if I change the alarm(1) to alarm(10), so
this appears to be a deadlock of some sort rather than just the
timeout being too short.
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.