NetBSD Problem Report #55331

From gson@gson.org  Sun May 31 20:22:20 2020
Return-Path: <gson@gson.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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5750C1A9218
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 31 May 2020 20:22:20 +0000 (UTC)
Message-Id: <20200531202214.2AAC8253F1A@guava.gson.org>
Date: Sun, 31 May 2020 23:22:14 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: libarchive test now fails randomly on real hardware
X-Send-Pr-Version: 3.95

>Number:         55331
>Category:       lib
>Synopsis:       libarchive test now fails randomly on real hardware
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ad
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 31 20:25:00 +0000 2020
>Closed-Date:    Sat Mar 27 07:04:39 +0000 2021
>Last-Modified:  Sat Mar 27 07:04:39 +0000 2021
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

The lib/libarchive/t_libarchive/libarchive test case recently started
failing randomly on real amd64 hardware, in about half the runs.  Logs
from the first failure recorded on my testbed are at:

  http://www.gson.org/netbsd/bugs/build/amd64-baremetal/commits-2020.05.html#2020.05.26.05.25.21

The failures happen in the "test_write_disk_sparse" part of the test.

>How-To-Repeat:

Run the ATF tests on real hardware, repeatedly.

>Fix:

>Release-Note:

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org, ad@NetBSD.org
Cc: gson@gson.org (Andreas Gustafsson)
Subject: Re: lib/55331: libarchive test now fails randomly on real hardware
Date: Tue, 30 Jun 2020 12:34:28 +0300

 Bisection shows the problem started with this commit:

   2020.05.24.20.08.26 ad src/sys/fs/tmpfs/tmpfs_vnops.c 1.142

   tmpfs_write(): use UBC_FAULTBUSY when extending files, if possible, to avoid
   zeroing of newly allocated pages & fault processing.

 The ATF tests use /tmp which is now a tmpfs by default.  I'm guessing
 the new method of extending files has some issue with sparse files.
 -- 
 Andreas Gustafsson, gson@gson.org

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: lib/55331: libarchive test now fails randomly on real hardware
Date: Tue, 30 Jun 2020 11:39:25 +0200

 On Tue, Jun 30, 2020 at 09:35:01AM +0000, Andreas Gustafsson wrote:
 >  The ATF tests use /tmp which is now a tmpfs by default.  I'm guessing
 >  the new method of extending files has some issue with sparse files.

 I thought tmpfs does not do sparse files at all?

 Martin

Responsible-Changed-From-To: lib-bug-people->ad
Responsible-Changed-By: gson@NetBSD.org
Responsible-Changed-When: Tue, 30 Jun 2020 09:42:47 +0000
Responsible-Changed-Why:
Over to committer.


From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: chs@NetBSD.org, Greg Troxel <gdt@lexort.com>
Subject: Re: lib/55331: libarchive test now fails randomly on real hardware
Date: Sat, 27 Mar 2021 08:44:38 +0200

 The libarchive test is no longer failing on my bare metal testbed
 (with /tmp on tmpfs) since this commit:

   2020.12.13.19.22.02 chs src/sys/fs/tmpfs/tmpfs_vnops.c 1.145

 The failure reported with /tmp on zfs in
 https://mail-index.netbsd.org/tech-kern/2021/03/23/msg027163.html
 appears to be unrelated and should get its own PR.
 -- 
 Andreas Gustafsson, gson@gson.org

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Sat, 27 Mar 2021 07:04:39 +0000
State-Changed-Why:
Fixed by chs, thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.