NetBSD Problem Report #56221

From www@netbsd.org  Sun May 30 20:43:13 2021
Return-Path: <www@netbsd.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 28E3F1A9287
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 30 May 2021 20:43:13 +0000 (UTC)
Message-Id: <20210530204311.AA2C61A928B@mollari.NetBSD.org>
Date: Sun, 30 May 2021 20:43:11 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
X-Send-Pr-Version: www-1.0

>Number:         56221
>Category:       bin
>Synopsis:       fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 30 20:45:02 +0000 2021
>Last-Modified:  Sat Jun 05 06:45:01 +0000 2021
>Originator:     Jason Thorpe
>Release:        NetBSD 9.99.82
>Organization:
RISCy Business
>Environment:
NetBSD alpha-vm 9.99.82 NetBSD 9.99.82 (GENERIC-$Revision: 1.411 $) #72: Sun May 30 08:51:41 PDT 2021  thorpej@the-ripe-vessel:/space/src/sys/arch/alpha/compile/GENERIC.QEMU alpha
>Description:
Running fs/tmpfs/t_vnd on NetBSD/alpha under Qemu results in:

fs/tmpfs/t_vnd (763/889): 1 test cases
    basic: terminate called after throwing an instance of 'tools::system_error'
  what():  tools::fs::cleanup(/tmp/atf-run.EkWRyC/mntpt): unmount(2) failed: Device busy
[2.007647s] Failed: Invalid checksum for file 1
atf-report: ERROR: 143259: Unexpected token `<<EOF>>'; expected end of test
atf-report: program
[1]   Abort trap (core dumped) atf-run |
      Done(1)                 atf-report
alpha-vm# 

I don't know if this happens on real hardware.

>How-To-Repeat:
See above.
>Fix:
N/A

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: thorpej@me.com
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/56221: fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
Date: Mon, 31 May 2021 23:03:39 +0300

 I would consider this two bugs.

 Bug 1 is jot(1) generating incorrect output on alpha, which is
 causing the test to fail:

   i386# jot 2
   1
   2

   alpha# jot 2
   1
   1

 Bug 2 is a failure of the test's cleanup action to clean up all
 mounts when the test fails.  That part is not alpha specific.
 -- 
 Andreas Gustafsson, gson@gson.org

From: Jason Thorpe <thorpej@me.com>
To: Andreas Gustafsson <gson@gson.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/56221: fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
Date: Mon, 31 May 2021 18:16:40 -0700

 > On May 31, 2021, at 1:03 PM, Andreas Gustafsson <gson@gson.org> wrote:
 > 
 > Bug 1 is jot(1) generating incorrect output on alpha, which is
 > causing the test to fail:
 > 
 >  i386# jot 2
 >  1
 >  2
 > 
 >  alpha# jot 2
 >  1
 >  1

 FWIW, -O0 causes jot to generate the correct output.

 -- thorpej

From: Rin Okuyama <rokuyama.rk@gmail.com>
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
 thorpej@me.com
Cc: 
Subject: Re: bin/56221: fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
Date: Tue, 1 Jun 2021 10:33:32 +0900

 On 2021/06/01 10:20, Jason Thorpe wrote:
 >   > On May 31, 2021, at 1:03 PM, Andreas Gustafsson <gson@gson.org> wrote:
 >   >
 >   > Bug 1 is jot(1) generating incorrect output on alpha, which is
 >   > causing the test to fail:
 >   >
 >   >  i386# jot 2
 >   >  1
 >   >  2
 >   >
 >   >  alpha# jot 2
 >   >  1
 >   >  1
 >   
 >   FWIW, -O0 causes jot to generate the correct output.

 Seems like QEMU bug. On a real hardware (DS10):

 ----
 ds10# jot 2
 1
 2
 ds10# cd /usr/tests/fs/tmpfs && atf-run t_vnd | atf-report
 Tests root: /usr/tests/fs/tmpfs

 t_vnd (1/1): 1 test cases
      basic: [6.074606s] Passed.
 [6.077989s]

 Summary for 1 test programs:
      1 passed test cases.
      0 failed test cases.
      0 expected failed test cases.
      0 skipped test cases.
 ----

 Kernel and userland was built from -current around 28 May.

 Thanks,
 rin

From: Jason Thorpe <thorpej@me.com>
To: Rin Okuyama <rokuyama.rk@gmail.com>
Cc: gnats-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: bin/56221: fs/tmpfs/t_vnd crashes ATF on Alpha under Qemu
Date: Mon, 31 May 2021 19:30:46 -0700

 > On May 31, 2021, at 6:33 PM, Rin Okuyama <rokuyama.rk@gmail.com> =
 wrote:
 >=20
 > Seems like QEMU bug. On a real hardware (DS10):

 Thanks.  I will work on isolating it and ping rth once I have a reduced =
 test case.

 -- thorpej

From: "Andreas Gustafsson" <gson@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56221 CVS commit: src/tests/fs/tmpfs
Date: Sat, 5 Jun 2021 06:40:59 +0000

 Module Name:	src
 Committed By:	gson
 Date:		Sat Jun  5 06:40:59 UTC 2021

 Modified Files:
 	src/tests/fs/tmpfs: t_vnd.sh

 Log Message:
 Use the correct pathname when cleaning up the inner mount on test
 failure.  Fixes the ATF crash reported in PR bin/56221, but not
 the issue causing the test to fail in the first place.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 src/tests/fs/tmpfs/t_vnd.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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.