GNU bug report logs - #77621
coreutils-9.6.53-14af8 on OpenBSD 7.6

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Bruno Haible <bruno@HIDDEN>; dated Mon, 7 Apr 2025 22:42:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 77621 <at> debbugs.gnu.org:


Received: (at 77621) by debbugs.gnu.org; 8 Apr 2025 10:22:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 08 06:22:21 2025
Received: from localhost ([127.0.0.1]:59214 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2661-0005Mc-F5
	for submit <at> debbugs.gnu.org; Tue, 08 Apr 2025 06:22:21 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.221]:32935)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1u265y-0005ML-Ue
 for 77621 <at> debbugs.gnu.org; Tue, 08 Apr 2025 06:22:20 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1744107736; cv=none;
 d=strato.com; s=strato-dkim-0002;
 b=mkuxdTt2j1gYcApOyWcYKNyyrT1rB8fUqHNXGMppLCPC0tdXCKtxfUTYRJW8TzJypu
 m9EaPPSzs4Qt/xAvV6DtB8ZO8S6eKMU0tcUVj3iAqZJtrbu8qdaNq20J22xxVnb9BOvp
 7VwRjoYPzd//wNLxT/26VmpJBsBZVVsKDCLNqFKUbfssHmvry19GR11yIDavM1NazplW
 Xy8NpTxlDsrR5Zlebxklf9ckcotFtEULyhXx9hj3ukKG0Dtbn551WgBVyxidqEYf+nB+
 lJ35by6DxleE+uKSPzH3vJnQgeWQrQu+50YsmORRDidsKOTV3u8d4absRt2czRuOiyC/
 6JOA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1744107736;
 s=strato-dkim-0002; d=strato.com;
 h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date:
 From:Subject:Sender;
 bh=1EiK7qa2SdXcSi4+/0CRhGoz4b2iwISXKFZIOyAHmyw=;
 b=syj/cQ8eyPgRetk5TUTjwzj/nbI2YeBelIFcv5elphsTRdohDtTatb0CTf1JjgBdzy
 KgsHNM/Vel2bZbcyaIb6WdhdJsX9dWDkG4EEFu9Ou4P1DquGDrjUHCUQJIk02hwwMaWh
 gN2xmf9vv12uzFSh1UG2elPDvR/G29oPJj/tU9pwW+l3ZutEYSbxrVyZaEfNT0nuaJsk
 CWqS64zaCfAW4HwLawB6gJM6vS1xehLkdAF2Bd5Uvs9H0MIes/yhyKeoQ0c0pyvDpcqn
 vscMA8IKo1c0i+HuwY/PgcoViQxJ1YdmyCbuNOgt2BqigNvAET5qCOENMFARupqk1/dX
 rMgA==
ARC-Authentication-Results: i=1; strato.com;
    arc=none;
    dkim=none
X-RZG-CLASS-ID: mo00
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1744107736;
 s=strato-dkim-0002; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date:
 From:Subject:Sender;
 bh=1EiK7qa2SdXcSi4+/0CRhGoz4b2iwISXKFZIOyAHmyw=;
 b=thjm7uDubcoZIg0o+48bYRFx3LTGegOfYFenibaeUfg1GA9VNoDqlBzCtIKKuPa9rb
 L2qV3VFRphP+gCXCRAd/BIB34CCYXqW10CzVk/hjc4u/aCPvtG7zlPVC8xBFkThNoypt
 eS1WdtZsFOIQSmzP6bu3pNDYyA1LQp/qGwbJvJi8kOsd3LbbZORyAi9D/wPP4ecfY7uN
 Q/JHCERgvcPaMX3vg1LxYaLfk7mkVxqTl5BU8MaDenQt7PMbcOmpbwYBU/84/qgZtSyN
 nuJHqyl6X+J6RmVyXHrf7/JaPqMOl9Lr71+bn29ZAwOSVyeZxsr2VKMCUYX0mvOXrRQi
 aqfA==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1744107736;
 s=strato-dkim-0003; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date:
 From:Subject:Sender;
 bh=1EiK7qa2SdXcSi4+/0CRhGoz4b2iwISXKFZIOyAHmyw=;
 b=ypbrcR1QC1dOclSeC8tizvJTIeDU8zArpISbKPbFVD08/vydaxAYjxy7ENznSQ7pWP
 LhFGwrG8OZirW08WdKCg==
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqmmcFTvhkvcyS6W4Yb9/mO9QBnQI"
Received: from nimes.localnet by smtp.strato.de (RZmta 51.3.0 AUTH)
 with ESMTPSA id N7dcf8138AMFRCL
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits))
 (Client did not present a certificate);
 Tue, 8 Apr 2025 12:22:15 +0200 (CEST)
From: Bruno Haible <bruno@HIDDEN>
To: =?ISO-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>,
 Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#77621: coreutils-9.6.53-14af8 on OpenBSD 7.6
Date: Tue, 08 Apr 2025 12:22:15 +0200
Message-ID: <3740239.bqPgKRP4r2@nimes>
Organization: GNU
In-Reply-To: <452f0c70-d26b-4d15-bef2-062abd4371be@HIDDEN>
References: <b255fdb1-503e-4112-a0eb-2a63fd1806f8@HIDDEN>
 <8c8425c3-7c21-4a39-ab79-544ec00c2c10@HIDDEN>
 <452f0c70-d26b-4d15-bef2-062abd4371be@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="nextPart1812898.A0I09U8b9p"
Content-Transfer-Encoding: 7Bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77621
Cc: 77621 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.

--nextPart1812898.A0I09U8b9p
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

Paul Eggert wrote:
> I don't see the problem on cfarm220.cfarm.net with the current coreutils

That's because you are not on the /dev/wd0a disk on that machine.

What I see by single-stepping through "ls -Z ." in gdb is:
1. f->scontext gets set to "?".
2. Upon the first entry to function file_has_aclinfo_cache,
   all 4 variables
     static int unsupported_return;
     static char *unsupported_scontext;
     static int unsupported_scontext_err;
     static dev_t unsupported_device;
   are 0 or NULL, respectively. (As expected, since it's the first call
   to this function.)
   f->stat.st_dev is 0 (since "." is on the /dev/wd0a disk and this device
   has major and minor number both 0).
   Thus the condition (f->stat_ok && f->stat.st_dev == unsupported_device)
   evaluates to true, and four lines later, in
     ai->scontext = unsupported_scontext;
   an scontext gets set to NULL.

The fix is obviously to ignore these 4 static variables if they have not
been initialized. Done through the attached patch, which fixes the crash.


--nextPart1812898.A0I09U8b9p
Content-Disposition: attachment;
 filename="0001-ls-Fix-crash-of-ls-Z-.-on-OpenBSD-s-dev-wd0a-disk.patch"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-patch; charset="x-UTF_8J";
 name="0001-ls-Fix-crash-of-ls-Z-.-on-OpenBSD-s-dev-wd0a-disk.patch"

From 6cab0a182e3034b4533bcfe73fef74af37cc723d Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@HIDDEN>
Date: Tue, 8 Apr 2025 12:14:29 +0200
Subject: [PATCH] ls: Fix crash of "ls -Z ." on OpenBSD's /dev/wd0a disk

* src/ls.c (file_has_aclinfo_cache): Add new static variable
'unsupported_cached'. Don't assume that device 0 never occurs.
---
 src/ls.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/ls.c b/src/ls.c
index 6690f7747..de5a1ae2b 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -3309,12 +3309,13 @@ file_has_aclinfo_cache (char const *file, struct fileinfo *f,
 {
   /* st_dev and associated info for the most recently processed device
      for which file_has_aclinfo failed indicating lack of support.  */
+  static bool unsupported_cached /* = false */;
   static int unsupported_return;
   static char *unsupported_scontext;
   static int unsupported_scontext_err;
   static dev_t unsupported_device;
 
-  if (f->stat_ok && f->stat.st_dev == unsupported_device)
+  if (f->stat_ok && unsupported_cached && f->stat.st_dev == unsupported_device)
     {
       ai->buf = ai->u.__gl_acl_ch;
       ai->size = 0;
@@ -3330,6 +3331,7 @@ file_has_aclinfo_cache (char const *file, struct fileinfo *f,
   if (f->stat_ok && n <= 0 && !acl_errno_valid (err)
       && (!(flags & ACL_GET_SCONTEXT) || !acl_errno_valid (ai->scontext_err)))
     {
+      unsupported_cached = true;
       unsupported_return = n;
       unsupported_scontext = ai->scontext;
       unsupported_scontext_err = ai->scontext_err;
-- 
2.43.0


--nextPart1812898.A0I09U8b9p--







Information forwarded to bug-coreutils@HIDDEN:
bug#77621; Package coreutils. Full text available.

Message received at 77621 <at> debbugs.gnu.org:


Received: (at 77621) by debbugs.gnu.org; 8 Apr 2025 07:42:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 08 03:42:03 2025
Received: from localhost ([127.0.0.1]:58721 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u23ar-0001EV-Ms
	for submit <at> debbugs.gnu.org; Tue, 08 Apr 2025 03:42:03 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:44338)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
 id 1u23ao-0001Db-IW
 for 77621 <at> debbugs.gnu.org; Tue, 08 Apr 2025 03:41:59 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 5272B3C0149F2;
 Tue,  8 Apr 2025 00:41:52 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id OUdqBRxJ55Ob; Tue,  8 Apr 2025 00:41:52 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 0FF673C0149F5;
 Tue,  8 Apr 2025 00:41:52 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 0FF673C0149F5
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1744098112;
 bh=gGQcmaWUVQfXFujM0KaPs3fBE65vGhYy31TaGjHasts=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=jsQclJGGwNAacZ2ss/R9WmTaNfVeqX2/wrCF9OqxlIfsOYasteEa018pmuMgXi+nt
 eDOHKr8hQDU0x1yPDRf4GffYH0447JUO2OowYGNtsuYO2F8BZycLShf51XDd0saMaI
 5Qao5fAO/Hdvf8Yc/kUzTLisJe+SnvoAE9IzE4ogpPNA63/G9nWgUArtW6LJNDWSM0
 RwOEycyWRpJgM9wl+j4FxmYcFuhp8jmschcEOvDnblLhrE7T7895xEzLAJW5ZCM9F8
 q0Wev97DoEijxbVbSPk7mB/uMa/yHGkGiLrQE+/qv5gzghJ19OmjnUJhfhK2YekZLQ
 MZX+gVbW39ipw==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id lxDb6Uaj7vKr; Tue,  8 Apr 2025 00:41:51 -0700 (PDT)
Received: from [192.168.254.12]
 (47-147-225-25.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.25])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id E82C23C0149F2;
 Tue,  8 Apr 2025 00:41:51 -0700 (PDT)
Message-ID: <452f0c70-d26b-4d15-bef2-062abd4371be@HIDDEN>
Date: Tue, 8 Apr 2025 00:41:51 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#77621: coreutils-9.6.53-14af8 on OpenBSD 7.6
To: =?UTF-8?Q?P=C3=A1draig_Brady?= <P@HIDDEN>
References: <b255fdb1-503e-4112-a0eb-2a63fd1806f8@HIDDEN>
 <1818491.4herOUoSWf@nimes>
 <8c8425c3-7c21-4a39-ab79-544ec00c2c10@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <8c8425c3-7c21-4a39-ab79-544ec00c2c10@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77621
Cc: 77621 <at> debbugs.gnu.org, Bruno Haible <bruno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2025-04-07 16:06, P=C3=A1draig Brady wrote:
> I have access to cfarm220.cfarm.net,
> so I'll look at this tomorrow.

I don't see the problem on cfarm220.cfarm.net with the current coreutils=20
commit (42f6201aa554fde4c78a3c5d0207d85392eb742e), using "./configure &&=20
make -j5 check" . The command "src/ls -Z" does not dump core: it outputs=20
a bunch of file names with "?" before them. "make check" outputs a line:

PASS: tests/ls/selinux-segfault.sh

That is, it does not output a line "FAIL: tests/ls/selinux-segfault", as=20
Bruno reported.

All tests pass, including gnulib tests.

You can temporarily see my build on that machine in the directory=20
~eggert/coreutils-9.6.59-42f62.

Maybe the bug has been fixed since coreutils-9.6.53-14af8?




Information forwarded to bug-coreutils@HIDDEN:
bug#77621; Package coreutils. Full text available.

Message received at 77621 <at> debbugs.gnu.org:


Received: (at 77621) by debbugs.gnu.org; 7 Apr 2025 23:06:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 07 19:06:46 2025
Received: from localhost ([127.0.0.1]:57470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u1vYD-00043f-Nr
	for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 19:06:46 -0400
Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:56515)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <pixelbeat@HIDDEN>)
 id 1u1vYA-000437-Pq
 for 77621 <at> debbugs.gnu.org; Mon, 07 Apr 2025 19:06:43 -0400
Received: by mail-wm1-x329.google.com with SMTP id
 5b1f17b1804b1-43ce70f9afbso53617065e9.0
 for <77621 <at> debbugs.gnu.org>; Mon, 07 Apr 2025 16:06:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744067196; x=1744671996; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=xay5hKr3KCvXiL5Cl+0qw06ioWAAlAPBwar0lul5KSU=;
 b=kBIHC32Bwh2LxACZAcgzi2/+Mv20EBcsqZzf3HPbeHgx2tEr7RgKJyk+E6jnrN6FsC
 pPc06VqufDL1wzahc82o9T8Q8IYitYjhr1YSCNNLmmvyrCugLeau3CPlXPspadLPE92s
 jaKVXdR9xIaroMGqJgUx0BAq4Lu1Na0sIf0udoa9LABFTOqSPQoGjGeAKeEx1QEzU3/q
 Yc3KZHx273A1/6WXfkWa5KJY7OUOH79/u3gOXBeCfoVheH3+5dYrUtGEZxg5+cyk74Fh
 KvEhcundvxwOc7bKIHO8M2duTubgRzOxufuPwCja7w3yYOYAiEZ3hjP6g3TO7A1sOojW
 sdGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744067196; x=1744671996;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=xay5hKr3KCvXiL5Cl+0qw06ioWAAlAPBwar0lul5KSU=;
 b=a1rsz+K2wWl/6BBZZflt9C8qAgK80f1wWTPqOvTMGV3yVOj4y0m8+rCZ+XwNaUqVvh
 2SA0nWT7SUPOJBAE9j44bXYH19crUNv5tihRNRP0ulsq1+UJoRjYdzO7iZi/LDzVGQDB
 0mC5mLWN2Lx03/O2f4cI4knuPdLO0kQ9VImhX0yjzFpy1WMV2q0hfCHdVtY+6lxEV7T+
 C6PmneYhf1A1L2FSNSoEvRHxD++g3ZeeFNDHHYerwPHZDt82voamqjgX5bNylUPMX9l6
 okumlp00zFzKhc2DBxr/eO6ymxVjgPGbXgoQTTppdbRQ5A0MmM+wuRUbNXwdyHVzA8vu
 1ZTQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWenq7M7+qBWBbXZMqmfnkke+7N5rA8M9lrYdSvt962ExCeYjPnYTXHM8B4XU43arA5EsHh/w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyNFIP/U2b8z5u6erAyXEXEMl1/crhsPszUBp1A6yWLAs7jI0tZ
 YsM9ho20hTqLD9nFqggnawhit/E78N/op1h85ANI/GYVgpVZ5iO/
X-Gm-Gg: ASbGncs6+v2AtcCW3rGkAjS8pBYgTFbE8m4L8GX/VawLq1ulJFh6yLOtG7yjw404LGp
 SKlBfrLNKvgHrzzsRpZfiJK4KAIICe1Cpl3aJaGKedbTJVsihM6nxYkz9b53ThNFKMS5JTvbRvP
 ZWpTC1a7krXqzzqY5RFBXy2wXUb8gusi7EWS/GmOIWFk6OF6b9QrXtlPQQrodhiLkFIFng1FGxI
 TAxpwTqsAcUVbWPJDutH4x7X0445OCT1qgyne+qf51mrDqneIgGWAOsTJlmIQx1dIMaXevHOzRR
 IExvderYRKsavChpoMaZ5G9tPNfwyrh+tqoD+hNRiqgcoldcZiKNt6vskwFrnKC3ysMMcTHw+cE
 ndGT9jGu7PpwcG06+OvbGIdjS
X-Google-Smtp-Source: AGHT+IG4nh7L6qKH3Zu0hxqeHe9N/dXu66rXeCvdRP5LQooVLZZf5cVIOJUDSPWo6gqpod20NpXXkw==
X-Received: by 2002:a05:600c:a4d:b0:43c:ebc4:36a5 with SMTP id
 5b1f17b1804b1-43ee3e9d55dmr83211075e9.7.1744067196310; 
 Mon, 07 Apr 2025 16:06:36 -0700 (PDT)
Received: from [192.168.1.31]
 (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146])
 by smtp.googlemail.com with ESMTPSA id
 ffacd0b85a97d-39c30096964sm13365579f8f.15.2025.04.07.16.06.34
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 07 Apr 2025 16:06:35 -0700 (PDT)
Message-ID: <8c8425c3-7c21-4a39-ab79-544ec00c2c10@HIDDEN>
Date: Tue, 8 Apr 2025 00:06:34 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird Beta
Subject: Re: bug#77621: coreutils-9.6.53-14af8 on OpenBSD 7.6
To: Bruno Haible <bruno@HIDDEN>, 77621 <at> debbugs.gnu.org
References: <b255fdb1-503e-4112-a0eb-2a63fd1806f8@HIDDEN>
 <1818491.4herOUoSWf@nimes>
Content-Language: en-US
From: =?UTF-8?Q?P=C3=A1draig_Brady?= <P@HIDDEN>
In-Reply-To: <1818491.4herOUoSWf@nimes>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77621
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 07/04/2025 23:41, Bruno Haible via GNU coreutils Bug Reports wrote:
> On OpenBSD 7.6 there is a test failure:
> 
> FAIL: tests/ls/selinux-segfault
> 
> Find attached the log file.
> 
> To reproduce the issue, just run
> 
> $ src/ls -Z .
> Segmentation fault (core dumped)
> 
> It crashes at strlen(), due to a NULL argument,
> invoked from gobble_file (name = ".", type = arg_directory, inode = 0,
> command_line_arg = true, dirname = NULL) at ls.c:3642,
> invoked from ls.c:1812.
> 
> This reminds me the commit
> https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=915004f403cb25fadb207ddfdbe6a2f43bd44fac
> that was supposed to fix the bug reported in
> https://lists.gnu.org/archive/html/coreutils/2025-01/msg00051.html
> 
> Apparently this bug has reappeared, at least on OpenBSD.

I have access to cfarm220.cfarm.net,
so I'll look at this tomorrow.

thanks for testing!

Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#77621; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Apr 2025 22:41:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 07 18:41:39 2025
Received: from localhost ([127.0.0.1]:57423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u1v9t-0007Zz-UG
	for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 18:41:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43684)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bruno@HIDDEN>) id 1u1v9q-0007ZP-Hj
 for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 18:41:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bruno@HIDDEN>) id 1u1v9i-0004QC-3D
 for bug-coreutils@HIDDEN; Mon, 07 Apr 2025 18:41:27 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.219])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bruno@HIDDEN>) id 1u1v9f-0002qc-3L
 for bug-coreutils@HIDDEN; Mon, 07 Apr 2025 18:41:25 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1744065679; cv=none;
 d=strato.com; s=strato-dkim-0002;
 b=oq9Eo9UexSrLaweW4Fu8hC/6lgjvb1lR9q9qkTj1N3l9+3jYJkIFqfbrmZOTb2dhsK
 7OVlxCDYBW6LgamrV4aiVv7Shd0dTD4U+Siqbd48OpZRxssiNB1O9jannvrF3ICi0vVo
 bonzMaM0heUJj4sNeKZIRbbQVoyZcwuyGriYGvU/cYm+MyJIUmhHPehzO74rv2zVvk28
 1msQmEUD5v3tZqVZLiXGf3AAUh1sIYGQBFJO2NmDhKmXquzS5CJ8S6GOq1QNc1xFFRZX
 LqQJNkr0DMkhzl1D8ODzAMXC+u0xx4mjUztA8VLF3Ovo3ftW2CGo+lDm9GDIztSPPTzF
 o9cg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1744065679;
 s=strato-dkim-0002; d=strato.com;
 h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From:
 Subject:Sender;
 bh=Pisj+8ySxWY5wxRcfz67TW3zEkp5n/lm3qdzaKpxrW4=;
 b=pMa3AOUrYikobBwBK8hk5oObO/fkwQCjn38G98EuiNcRpeLrvgYVeJaY8w8eqmSSoR
 epPk7qs0HlWFd8LHtHe1GKcXNzYa/37B9hEvJ9QBZiPQQ5kQW3JR01bgCpd1bkHIxORQ
 q3nk7TYXh0ViEXh+RNROlDnoxq+Qxh+UZQZPlSTpNlai0BLmUuwfK4haHPbbZijAKWy3
 udHz2TR9irnVCgdwiuwcixPLXm8F3Y3yg4S7VYxT06vqW3uuwPf+MBlvz6b8fbn1+m9D
 jXUS/XgbJXQC6doqPPBUIhnqdJ248ezYd+ZOngnf+nt+Y8xOgPnjSVdtAdV63bcJ7mGt
 MpYA==
ARC-Authentication-Results: i=1; strato.com;
    arc=none;
    dkim=none
X-RZG-CLASS-ID: mo00
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1744065679;
 s=strato-dkim-0002; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From:
 Subject:Sender;
 bh=Pisj+8ySxWY5wxRcfz67TW3zEkp5n/lm3qdzaKpxrW4=;
 b=MtJgt+v3ObYKHGzhtnktsH8s8cWG1O6EOoKO5IEGF5hJCrjNFimU9nkbjl2ooOVjH/
 lwz3VjSmT5xFgi8nXul3BbN8S+Bi6On0CGxPfIgZJLiLMFu3WV9Rd9JHLzBniOQxSl1Z
 dgwvLLIdAIynqPptHUojaU7u4AmHHJZjmPGRsTCFf5UoeukLqMnwiSnIyweZyof+YIkc
 AVrAAC5pu+fsFifOo9rdCqNmmChzuF6crMQ01TKD9z+W7tZNrbDRDxj7U81SCCKC+CQ9
 pKilRB1/NkRCVSkLCtoGPwd1Qwmo5bEbH69DCDY0cxTgj0FVZZDJw7I9mmqn5o+Pw9eY
 WPCQ==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1744065679;
 s=strato-dkim-0003; d=clisp.org;
 h=References:In-Reply-To:Message-ID:Date:Subject:To:From:Cc:Date:From:
 Subject:Sender;
 bh=Pisj+8ySxWY5wxRcfz67TW3zEkp5n/lm3qdzaKpxrW4=;
 b=ze6TkEDc0NBMscElKwOpoI8YAOQEM7k1vpGKc+rs42hTgB2TJm5ehL+KBPkMrhyuzB
 YoOzX8RF8FTyOLPeiGCQ==
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqmmcFTvhkvcyS6W4Yb9/mO9QBnQI"
Received: from nimes.localnet by smtp.strato.de (RZmta 51.3.0 AUTH)
 with ESMTPSA id N7dcf8137MfJOsF
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits))
 (Client did not present a certificate);
 Tue, 8 Apr 2025 00:41:19 +0200 (CEST)
From: Bruno Haible <bruno@HIDDEN>
To: bug-coreutils@HIDDEN, =?ISO-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>
Subject: Re: coreutils-9.6.53-14af8 on OpenBSD 7.6
Date: Tue, 08 Apr 2025 00:41:18 +0200
Message-ID: <1818491.4herOUoSWf@nimes>
Organization: GNU
In-Reply-To: <b255fdb1-503e-4112-a0eb-2a63fd1806f8@HIDDEN>
References: <b255fdb1-503e-4112-a0eb-2a63fd1806f8@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="nextPart2597012.Y4W8hZkJsM"
Content-Transfer-Encoding: 7Bit
Received-SPF: none client-ip=81.169.146.219; envelope-from=bruno@HIDDEN;
 helo=mo4-p00-ob.smtp.rzone.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.

--nextPart2597012.Y4W8hZkJsM
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

On OpenBSD 7.6 there is a test failure:

FAIL: tests/ls/selinux-segfault

Find attached the log file.

To reproduce the issue, just run

$ src/ls -Z .
Segmentation fault (core dumped)

It crashes at strlen(), due to a NULL argument,
invoked from gobble_file (name = ".", type = arg_directory, inode = 0,
command_line_arg = true, dirname = NULL) at ls.c:3642,
invoked from ls.c:1812.

This reminds me the commit
https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=915004f403cb25fadb207ddfdbe6a2f43bd44fac
that was supposed to fix the bug reported in
https://lists.gnu.org/archive/html/coreutils/2025-01/msg00051.html

Apparently this bug has reappeared, at least on OpenBSD.

Bruno


--nextPart2597012.Y4W8hZkJsM
Content-Disposition: attachment; filename="openbsd76-test-suite.log"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-log; charset="x-UTF_8J"; name="openbsd76-test-suite.log"

========================================================
   GNU coreutils 9.6.53-14af8: ./tests/test-suite.log
========================================================

# TOTAL: 658
# PASS:  480
# SKIP:  177
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/ls/selinux-segfault
===============================

++ initial_cwd_=/home/bruno/coreutils-9.6.53-14af8/build
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/bruno/coreutils-9.6.53-14af8/build gt-selinux-segfault.sh.XXXX
+++ case $# in
+++ destdir_=/home/bruno/coreutils-9.6.53-14af8/build
+++ template_=gt-selinux-segfault.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/bruno/coreutils-9.6.53-14af8/build/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
+++ case $d in
+++ :
+++ test -d /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
++++ ls -dgo /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
+++ perms='drwx------. 2 512 Apr  7 21:51 /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC'
+++ case $perms in
+++ :
+++ echo /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
+++ return
++ test_dir_=/home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
++ cd /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /home/bruno/coreutils-9.6.53-14af8/build/src/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /home/bruno/bin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /bin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/bin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
++ for dir in $PATH
++ IFS=' 	
'
++ case "$dir" in
++ test -d /usr/local/sbin/.
++ new_PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
++ IFS=' 	
'
++ PATH=/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/bruno/coreutils-9.6.53-14af8/build/./src
+ case $abs_path_dir_ in
+ PATH=/home/bruno/coreutils-9.6.53-14af8/build/./src:/home/bruno/coreutils-9.6.53-14af8/build/src:/home/bruno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
+ create_exe_shims_ /home/bruno/coreutils-9.6.53-14af8/build/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls
+ require_built_ ls
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env ls --version
ls (GNU coreutils) 9.6.53-14af8
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ f=/proc/sys
+ test -r /proc/sys
+ f=.
+ ls -l .
+ mkdir sedir
+ ln -sf missing sedir/broken
+ returns_ 1 ls -L -R -Z -m sedir
../tests/init.sh: line 612: 79448 Segmentation fault      (core dumped) "$@"
+ fail=1
+ ls -Z .
../tests/ls/selinux-segfault.sh: line 34: 95717 Segmentation fault      (core dumped) ls -Z . > out
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /home/bruno/coreutils-9.6.53-14af8/build
+ chmod -R u+rwx /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
+ rm -rf /home/bruno/coreutils-9.6.53-14af8/build/gt-selinux-segfault.sh.yGIC
+ exit 1
FAIL tests/ls/selinux-segfault.sh (exit status: 1)


--nextPart2597012.Y4W8hZkJsM--







Acknowledgement sent to Bruno Haible <bruno@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#77621; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 8 Apr 2025 10:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.