NetBSD Problem Report #58568

From www@netbsd.org  Sat Aug 10 13:18:19 2024
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C89EF1A9242
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Aug 2024 13:18:18 +0000 (UTC)
Message-Id: <20240810131627.E49501A9244@mollari.NetBSD.org>
Date: Sat, 10 Aug 2024 13:16:27 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: t_tcpdump leaves garbage in /tmp
X-Send-Pr-Version: www-1.0

>Number:         58568
>Category:       misc
>Synopsis:       t_tcpdump leaves garbage in /tmp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 10 13:20:02 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, ...
>Organization:
The /tmp/NetBSD.3EZCqp Foundacheck
>Environment:
>Description:
Running /usr/tests/usr.sbin/tcpdump/t_tcpdump leaves a temporary directory in /tmp/check.XXXXXX, where XXXXXX is randomly generated each time, having two regular files called `stderr' and `stdout'.

This is probably because the test starts an atf-check(1) process running tcpdump in the background, and then kills that process.  I have no idea what this is supposed to achieve (surely if you kill the atf-check(1) process, it doesn't actually check anything?), but I suspect that killing the atf-check(1) process makes it skip the tempfile cleanup.
>How-To-Repeat:
cd /usr/tests/usr.sbin/tcpdump && atf-run t_tcpdump | atf-report
>Fix:
Yes, please!

Maybe just skip the intermediate atf-check and run tcpdump directly?

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.