NetBSD Problem Report #48892

From  Wed Jun 11 08:22:59 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 5B09BA64F0
	for <>; Wed, 11 Jun 2014 08:22:59 +0000 (UTC)
Subject: some tests will not clean up rump server processes
X-Send-Pr-Version: 3.95

>Number:         48892
>Category:       bin
>Synopsis:       some tests will not clean up rump server processes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 11 08:25:00 +0000 2014
>Last-Modified:  Thu Aug 20 07:35:01 +0000 2020
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.43
The NetBSD Foundation, Inc.
System: NetBSD 6.99.43 NetBSD 6.99.43 (UNPLUGED) #5: Tue Jun 10 20:13:06 CEST 2014 evbarm
Architecture: earm
Machine: evbarm
Some tests, like for example /usr/tests/fs/nfs/t_rquotad, will create 
background server processes via rump_server or similar. There seems to be
no proper atf cleanup path used in this tests (or it does not work).

Now consider this fragment fo r_quotad:

        #now try a quota(8) call
        export RUMPHIJACK='blanket=/mnt,socket=all,path=/rump,vfs=getvfsstat'
        for q in ${expect} ; do
                local id=$(id -${q})
                atf_check -s exit:0 \
-o "match:/mnt        0       10    40960               1      20   51200      $
-o "match:Disk quotas for .*: $" \
                    quota -${q} -v

and note the cleanup code after it:

        unset LD_PRELOAD

Unfortunately this means that if the check fails (the -o match: disagrees with
the output) the test will abort and rump_quota_shutdown will not be invoked.

Worse: imagine you are using a (limited) tmpfs on /tmp. The left over 
rump_server (or rump_* mounts) will keep the filesystem image open, even
after atf automatically removed the working directory. So your tmpfs runs
full and more tests fail...

Currently a diskless system with / on nfs and /tmp on tmpfs is enough to
trigger bogus output from quota(1), so this will trigger the issue. Once
that is fixed: just modify the match expression to mismatch and run the
test, then pgrep for rump_server.

use atf explicit cleanup handling to shut down the rump servers.

From: "Andreas Gustafsson" <>
Subject: PR/48892 CVS commit: src/tests/fs/nfs
Date: Thu, 20 Aug 2020 07:32:40 +0000

 Module Name:	src
 Committed By:	gson
 Date:		Thu Aug 20 07:32:40 UTC 2020

 Modified Files:

 Log Message:
 Add cleanup of possible leftover rump processes, replacing the
 non-working cleanup code just removed from  Fixes
 PR bin/48892 with respect to the t_rquotad test.

 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 src/tests/fs/nfs/

 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:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.