NetBSD Problem Report #56357
From gson@gson.org Wed Aug 11 07:50:28 2021
Return-Path: <gson@gson.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 02DD61A921F
for <gnats-bugs@gnats.NetBSD.org>; Wed, 11 Aug 2021 07:50:27 +0000 (UTC)
Message-Id: <20210811075018.234BD253F4F@guava.gson.org>
Date: Wed, 11 Aug 2021 10:50:18 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: net/if_vlan/t_vlan:vlan_promisc test case randomly fails
X-Send-Pr-Version: 3.95
>Number: 56357
>Category: kern
>Synopsis: net/if_vlan/t_vlan:vlan_promisc test case randomly fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 11 07:55:00 +0000 2021
>Last-Modified: Thu Aug 19 03:30:02 +0000 2021
>Originator: Andreas Gustafsson
>Release: NetBSD-current
>Organization:
>Environment:
System: NetBSD
Architecture: i386
Machine: i386
>Description:
The vlan_promisc test case of the net/if_vlan/t_vlan test randomly
fails on some testbeds, including a physical Dell Latitude D400 laptop
running NetBSD/i386:
https://www.gson.org/netbsd/bugs/build/i386-laptop/2021/2021.08.10.10.43.42/test.html#net_if_vlan_t_vlan_vlan_promisc
and the qemu-based TNF sparc testbed:
http://releng.netbsd.org/b5reports/sparc/2021/2021.08.04.13.50.47/test.html#net_if_vlan_t_vlan_vlan_promisc
In each case, the error message is
Fail: regexp PROMISC not in stdout
>How-To-Repeat:
On an affected system, run
cd /usr/tests/net/if_vlan
while atf-run t_vlan:vlan_promisc; do true; done
>Fix:
>Audit-Trail:
From: "Shoichi YAMAGUCHI" <yamaguchi@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/56357 CVS commit: src/tests/net/if_vlan
Date: Thu, 19 Aug 2021 03:27:06 +0000
Module Name: src
Committed By: yamaguchi
Date: Thu Aug 19 03:27:05 UTC 2021
Modified Files:
src/tests/net/if_vlan: Makefile bpfopen.c t_vlan.sh
Log Message:
Make the test program run in background after doing BIOCPROMISC
t_vlan has rarely failed by checking IFF_PROMISC before the
test program do BIOCPROMISC. To solve this, BIOCPROMISC is
done in the foreground.
fixes PR/56357
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/net/if_vlan/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/net/if_vlan/bpfopen.c
cvs rdiff -u -r1.23 -r1.24 src/tests/net/if_vlan/t_vlan.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.