NetBSD Problem Report #56338

From paul@whooppee.com  Fri Jul 30 12:44:53 2021
Return-Path: <paul@whooppee.com>
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 6088A1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Jul 2021 12:44:53 +0000 (UTC)
Message-Id: <20210730124449.92BBE30F2C4@speedy.whooppee.com>
Date: Fri, 30 Jul 2021 05:44:49 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: Installing qt5-qtdeclaraative leaves a dangling reference to /tmp
X-Send-Pr-Version: 3.95

>Number:         56338
>Category:       pkg
>Synopsis:       Installing qt5-qtdeclaraative leaves a dangling reference to something in /tmp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 30 12:45:00 +0000 2021
>Last-Modified:  Fri Jul 30 12:50:01 +0000 2021
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.87
>Organization:
+--------------------+--------------------------+----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org  |
|                    |                          | pgoyette99@gmail.com |
+--------------------+--------------------------+----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.87 NetBSD 9.99.87 (SPEEDY 2021-07-23 13:58:03 UTC) #0: Sat Jul 24 00:01:27 UTC 2021 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
Installing the qt5-qtdeclarative package leaves some sort of dangling
reference to something in /tmp.  In the case of using a chroot sandbox
(as created by mksandbox), and having a separate tmpfs for $SB/tmp the
dangling reference prevents one from unmounting the tmpfs.

>How-To-Repeat:
1. Create a sandbox using mksandbox, for example $SB

2. Mount a tmpfs file system on $SB/tmp

3. (optional) Use $SB/sandbox to "enter" the chroot, build a whole lot
   of packages (in my case, about 545 of them), and exit the chroot
   via ^D.

4. Verify that all is OK using ``umount $SB/tmp'', then remount the
   tmpfs

5. "Enter" the sandbox again, and build qt5-qtdeclarative package

6. Exit the chroot via ^D, and try to umount the tmpfs.  Observe the
   EBUSY response.

>Fix:
Unknown


>Audit-Trail:
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56338: Installing qt5-qtdeclaraative leaves a dangling
 reference to /tmp
Date: Fri, 30 Jul 2021 05:48:51 -0700 (PDT)

 Please also note that fstat(1) shows no open files on the tmpfs, which
 makes it difficult to debug further.

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