NetBSD Problem Report #57510

From www@netbsd.org  Thu Jul  6 20:31:13 2023
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 181A21A923D
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  6 Jul 2023 20:31:13 +0000 (UTC)
Message-Id: <20230706203111.A6F351A923E@mollari.NetBSD.org>
Date: Thu,  6 Jul 2023 20:31:11 +0000 (UTC)
From: jspath55@gmail.com
Reply-To: jspath55@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Automated test case sockaddr_un_local_peereid fails intermittently on some architectures
X-Send-Pr-Version: www-1.0

>Number:         57510
>Category:       misc
>Synopsis:       Automated test case sockaddr_un_local_peereid fails intermittently on some architectures
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 06 20:35:01 +0000 2023
>Originator:     Jim Spath
>Release:        
>Organization:
>Environment:
>Description:
This test case fails intermittently on some architectures I tested but not all.
Several tests were chosen from the full test suite after observing inconsistent pass/fail results over many runs.
Tests were run periodically from cron, timed to avoid overlapping runs while completing as many attempts as feasible based on the system speed.

The set being reported in July 2023 includes failure rates in the one-percent ranges, to be followed by other tests that fail more frequently.

The results for systems used:

amd64 1506 0
Pi3 271 0
Pi4 790 1
Pi0W 590 7
Pi02W 887 1
i386 (Intel Atom) 708 2


Example failure message:

tps-count: 1
tp-start: 1687227556.434611, net/net/t_unix, 1
tc-start: 1687227556.434684, sockaddr_un_local_peereid
tc-so:peercred(client) euid=0 egid=0 pid=12155
tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.l1idz9/tcr': Permission denied
tc-se:*** Check failed: /usr/src/tests/net/net/t_unix.c:316: getpeername
tc-end: 1687227556.457657, sockaddr_un_local_peereid, failed, /usr/src/tests/net/net/t_unix.c:445: test(true, true, false, 100): Socket is not connected
tp-end: 1687227556.459422, net/net/t_unix
info: time.end, Tue Jun 20 02:19:16 UTC 2023


Example pass message:

tps-count: 1
tp-start: 1687249157.314719, net/net/t_unix, 1
tc-start: 1687249157.314792, sockaddr_un_local_peereid
tc-so:peer: client socket length: 2
tc-so:peer: client family 1
tc-so:peer: client len 2
tc-so:peer: socket name: 
tc-so:peercred(server) euid=666 egid=999 pid=11841
tc-so:peercred(client) euid=0 egid=0 pid=8084
tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.tctDbV/tcr': Permission denied
tc-so:sock: client socket length: 102
tc-so:sock: client family 1
tc-so:sock: client len 102
tc-so:sock: socket name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
tc-end: 1687249157.336195, sockaddr_un_local_peereid, passed
tp-end: 1687249157.336821, net/net/t_unix
info: time.end, Tue Jun 20 08:19:17 UTC 2023



>How-To-Repeat:
$ atf-run net/net/t_unix:sockaddr_un_local_peereid

>Fix:
unknown

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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.