From nobody Wed Mar 23 18:05:23 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EDC631A2C835 for ; Wed, 23 Mar 2022 18:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KNx8z4l0bz3jd4 for ; Wed, 23 Mar 2022 18:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 797FB174 for ; Wed, 23 Mar 2022 18:05:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22NI5NDR085818 for ; Wed, 23 Mar 2022 18:05:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22NI5Nr5085817 for bugs@FreeBSD.org; Wed, 23 Mar 2022 18:05:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262746] lib/libsysdecode/mkioctls sometimes fails spuriously Date: Wed, 23 Mar 2022 18:05:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: np@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648058723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3zp5hiSxaPir0leyh+f7L/nNEARNFjSVQrfMeiYIfEM=; b=Bz/JkpjPRwytx3sqsfn8LK3QOLUQRJnyz7Q+wrTXwxuuXwpN0wQgqDARNH+fIhXjAn4X2E i56YhDKWkfjhrflDwRgx8Z9F9/fatkgWhUrG2Glp0vMbSXas2jhO0PtkNt2nfkpr89HuRr e8HX5ur0+fjRTVG0CLfhE6MbabBoTy/EH9n3m7X/agBUsJv2oUSvEXZjEO5IPCTHPzqfO3 Zojf8/4fRWRG6333vJMTHrW16Cw7dkTiVcmqb6VvqXFbuusqWRy9nechHfk3uYjZSpeBAf hBuJl4Wcm3New4/iFCmnTlhqxjEn5XgLqjcKOX4GP6GcVQeC7/xTgs2sdBPcDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648058723; a=rsa-sha256; cv=none; b=nXAnt3+KkdCSg1g21XIRobde01gvz14lmQpOcrkGNYR4c/vhPg6atc24dWnjqMW0gGltFc l4ABtqa2CTp0chWEpJJmYV4h2CK/J8zkfxGViFOGPDiPzUnbgMFasXRfhj2Bg4WulExNsq 0+koEWAINxe5hj7lJJP2q0C/p2bo5GeD2UMrH2U24iS8IN+zBd8QWB7GoWLkylto2I9Y7C xdMlPX7qOBlPcNA7lz5KMOIW2e8X/wKxNC+7FXUFP0n1vEXL59wC2rgLl3GgtMiMNTKqc2 XFCcgpynZBOCJco3e6P+h92TmPVzJkugSWbVW7UUwgmhO1dQKapAwchVegui7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262746 Bug ID: 262746 Summary: lib/libsysdecode/mkioctls sometimes fails spuriously Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: np@FreeBSD.org CC: arichardson@FreeBSD.org, jhb@FreeBSD.org mkioctls uses a "find | sort | tee | xargs egrep -l | awk" pipeline to gene= rate a list of header files. This pipeline fails spuriously if the shell's pipe= fail option is enabled and one of the egrep launched by xargs returns 1 because there are no _IO* markers in that particular batch of files. set -o pipefail was added in ec45ce6222366e69adf1fad1b33ec8598229c8c0 pipefail support was added to /bin/sh in 484160a9cf236a5892c1ab8344de287d7a1472c1 This also means the comment about /bin/bash in mkioctls is now stale. Here is a DTrace script (and its output) that shows the failure when "sh ./lib/libsysdecode/mkioctls ." is run inside a tree with this problem. cat mkioctl.d #!/usr/sbin/dtrace -s syscall:freebsd:exit:entry /execname =3D=3D "awk" || \ execname =3D=3D "egrep" || \ execname =3D=3D "find" || \ execname =3D=3D "grep" || \ execname =3D=3D "sh" || \ execname =3D=3D "tee" || \ execname =3D=3D "xargs"/ { trace(execname); trace(arg0) } dtrace: script '/tmp/mkioctl.d' matched 1 probe CPU ID FUNCTION:NAME 3 88534 exit:entry sh 0 1 88534 exit:entry grep 0 4 88534 exit:entry find 0 2 88534 exit:entry egrep 1 0 88534 exit:entry egrep 0 2 88534 exit:entry egrep 0 7 88534 exit:entry tee 0 4 88534 exit:entry egrep 0 6 88534 exit:entry xargs 1 2 88534 exit:entry awk 0 0 88534 exit:entry sh 1 3 88534 exit:entry sh 1 --=20 You are receiving this mail because: You are the assignee for the bug.=