From unknown Mon Jun 23 11:24:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26349 <26349@debbugs.gnu.org> To: bug#26349 <26349@debbugs.gnu.org> Subject: Status: Option -ignore_readdir_race does not work with program `find` Reply-To: bug#26349 <26349@debbugs.gnu.org> Date: Mon, 23 Jun 2025 18:24:54 +0000 retitle 26349 Option -ignore_readdir_race does not work with program `find` reassign 26349 coreutils submitter 26349 Dariusz Dzialak severity 26349 normal tag 26349 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 03 11:27:14 2017 Received: (at submit) by debbugs.gnu.org; 3 Apr 2017 15:27:14 +0000 Received: from localhost ([127.0.0.1]:59282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cv3sw-0002vU-Ac for submit@debbugs.gnu.org; Mon, 03 Apr 2017 11:27:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cv2oG-00013J-Pq for submit@debbugs.gnu.org; Mon, 03 Apr 2017 10:18:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv2oA-0000z5-B4 for submit@debbugs.gnu.org; Mon, 03 Apr 2017 10:18:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cv2oA-0000ys-7Y for submit@debbugs.gnu.org; Mon, 03 Apr 2017 10:18:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cv2o8-0004iA-Oq for bug-coreutils@gnu.org; Mon, 03 Apr 2017 10:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv2o7-0000wF-6s for bug-coreutils@gnu.org; Mon, 03 Apr 2017 10:18:12 -0400 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:34392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cv2o6-0000vl-Qt for bug-coreutils@gnu.org; Mon, 03 Apr 2017 10:18:11 -0400 Received: by mail-wr0-x236.google.com with SMTP id l43so173377580wre.1 for ; Mon, 03 Apr 2017 07:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yt1jLf5CtuJiS9q8/P2t7JoKaPtD3m64NYTpf4rfJMY=; b=nywHm+AZREcUWsH2Uu9oY1iCw7ygESVjumAHmCd7aL0SHCIp+jvWL4J1RyDjyhsnoe Vouiu2OTz8E/G/DQe1VEWg1gMtbH3NazGe+1micfjEVhOSJfRgIlQZXDVpbEkUhMynIv xHszMu7uv5JsBFNZUqxNUUJjvGkXPj6oKt8bsusSi8JXtG2cC6uoITr9XGo5R2CU8qT8 4UQZQiJcyFCggWvVFQM64EJjETgxgEmN6k2oFtlwe8I1kK/JKOzKp3C4XWnoXA6RWZ4R yKw7S1pemG/JufPat/fKm0hM8f17PaQrhDUgXEpb6z2qDl4+1zlIVBWxnj+Ctza9qEBT 8cAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yt1jLf5CtuJiS9q8/P2t7JoKaPtD3m64NYTpf4rfJMY=; b=MLtvT2AetvOjzvbZC00U4iKBgmIDfDg11kk6V1bksq/jEoqGuGi51myBJiEwDKXjnN L3YxYjJU6ZtSAIs+UNwq+cnmGVVwHJNHZpDNcooylcsrPNP6CCGSJccGv/2faKEzLOig xWBNFnKXqEC1Qz/ZeGxVtdEbYNSHKGgynYKS/jumHtXGZCXZvKbmeIZ+B0lOlVEXH1hW Rot+EAGJNm2aycaSfD/XVt44a5QM2Yo/3d+TD0LqMFQyJFlH7pnGxGFs7ESPnVsjX052 lgpOz4Q45q8cmzN12GKwJkYHehIYezVfbP57I5NB8LqwGhuLa9f4AhLS2jcBmCDL0o0Q OZEw== X-Gm-Message-State: AFeK/H0seYLZlzYXnL+GF+T1wUALIscfhx5jbREwRpaaSgRmbkFEDjsoQuH1LqDuGoLvWc6Cq5AWefDbfJQoeQ== X-Received: by 10.223.176.88 with SMTP id g24mr15794703wra.53.1491229089198; Mon, 03 Apr 2017 07:18:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.141.242 with HTTP; Mon, 3 Apr 2017 07:18:08 -0700 (PDT) From: Dariusz Dzialak Date: Mon, 3 Apr 2017 16:18:08 +0200 Message-ID: Subject: Option -ignore_readdir_race does not work with program `find` To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=001a1149818223faeb054c43d486 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 03 Apr 2017 11:27:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1149818223faeb054c43d486 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Program 'find' failed even -ignore_readdir_race (no *OK* in output): > mkdir -p 1/2/bla 3/4/bla ; { find . -ignore_readdir_race -mindepth 1 -name '[0-9]' -print -exec stat --format "%s %n" {} \; -exec sleep 0.5 \; && echo OK; } & sleep .2 ; rm -fr 1 3 ; wait [1] 25831 ./3 4096 ./3 find: `./3': No such file or directory ./1 stat: cannot stat =E2=80=98./1=E2=80=99: No such file or directory [1]+ Exit 1 { find . -ignore_readdir_race -mindepth 1 -name '[0-9]' -print -exec stat --format "%s %n" {} \; -exec sleep 0.5 \; && echo OK; } Program `find` succeed even -noignore_readdir_race but with -depth option: > mkdir -p 1/2/bla 3/4/bla ; { find . -depth -noignore_readdir_race -mindepth 1 -name '[0-9]' -print -exec stat --format "%s %n" {} \; -exec sleep 0.5 \; && echo OK; } & sleep .2 ; rm -fr 1 3 ; wait [1] 25854 ./3/4 4096 ./3/4 ./3 stat: cannot stat =E2=80=98./3=E2=80=99: No such file or directory ./1 stat: cannot stat =E2=80=98./1=E2=80=99: No such file or directory *OK* [1]+ Done { find . -depth -noignore_readdir_race -mindepth 1 -name '[0-9]' -print -exec stat --format "%s %n" {} \; -exec sleep 0.5 \; && echo OK; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > uname -a Linux w-92 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > find --version find (GNU findutils) 4.4.2 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Eric B. Decker, James Youngman, and Kevin Dalley. Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=3D0) --001a1149818223faeb054c43d486 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Program 'find' failed even -ig= nore_readdir_race =C2=A0(no OK=C2=A0in output):

> mkdir -p 1/2/bla 3/4/bla ; { find . -ignore_readdir_race= -mindepth 1 -name '[0-9]' -print -exec stat --format "%s %n&q= uot; {} \; -exec sleep 0.5 \; && echo OK; } & sleep .2 ; rm -fr= 1 3 ; wait
[1] 25831
./3
4096 ./3
= find: `./3': No such file or directory
./1
stat: ca= nnot stat =E2=80=98./1=E2=80=99: No such file or directory
[1]+ = =C2=A0Exit 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= { find . -ignore_readdir_race -mindepth 1 -name '[0-9]' -print -exe= c stat --format "%s %n" {} \; -exec sleep 0.5 \; && echo = OK; }


Program `find` succeed = even -noignore_readdir_race but with -depth option:

> mkdir -p 1/2/bla 3/4/bla ; { find . -depth -noignore_readdi= r_race -mindepth 1 -name '[0-9]' -print -exec stat --format "%= s %n" {} \; -exec sleep 0.5 \; && echo OK; } & sleep .2 ; = rm -fr 1 3 ; wait
[1] 25854
./3/4
4096 ./3/4<= /div>
./3
stat: cannot stat =E2=80=98./3=E2=80=99: No such fi= le or directory
./1
stat: cannot stat =E2=80=98./1=E2= =80=99: No such file or directory
OK
[1]+ =C2=A0= Done =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{= find . -depth -noignore_readdir_race -mindepth 1 -name '[0-9]' -pr= int -exec stat --format "%s %n" {} \; -exec sleep 0.5 \; &&am= p; echo OK; }



= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

<= div>> uname -a
Linux w-92 3.13.0-24-generic #47-Ubuntu SMP= Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

> find --version
find (GNU findutils) 4.4= .2
Copyright (C) 2007 Free Software Foundation, Inc.
Li= cense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is f= ree software: you are free to change and redistribute it.
There i= s NO WARRANTY, to the extent permitted by law.

Wri= tten by Eric B. Decker, James Youngman, and Kevin Dalley.
Built u= sing GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
= Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(le= vel=3D0)=C2=A0


--001a1149818223faeb054c43d486-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 03 13:31:29 2017 Received: (at control) by debbugs.gnu.org; 3 Apr 2017 17:31:29 +0000 Received: from localhost ([127.0.0.1]:59377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cv5pB-0001GJ-KL for submit@debbugs.gnu.org; Mon, 03 Apr 2017 13:31:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cv5p9-0001Fo-KB; Mon, 03 Apr 2017 13:31:28 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 242C21B3A94; Mon, 3 Apr 2017 17:31:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 242C21B3A94 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eblake@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 242C21B3A94 Received: from [10.10.123.242] (ovpn-123-242.rdu2.redhat.com [10.10.123.242]) by smtp.corp.redhat.com (Postfix) with ESMTP id 43D0284BC0; Mon, 3 Apr 2017 17:31:19 +0000 (UTC) Subject: Re: bug#26349: Option -ignore_readdir_race does not work with program `find` To: Dariusz Dzialak , 26349-done@debbugs.gnu.org References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <1bb6070c-1b07-dc30-5109-a70064753dbc@redhat.com> Date: Mon, 3 Apr 2017 12:31:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dcfIBB9hJbpXAOf4Ud7GOqBexPC9m2mHM" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 03 Apr 2017 17:31:21 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dcfIBB9hJbpXAOf4Ud7GOqBexPC9m2mHM Content-Type: multipart/mixed; boundary="UrPHuuJKhLN4AtPk7LwGcMl7u8MAIfr0E"; protected-headers="v1" From: Eric Blake To: Dariusz Dzialak , 26349-done@debbugs.gnu.org Message-ID: <1bb6070c-1b07-dc30-5109-a70064753dbc@redhat.com> Subject: Re: bug#26349: Option -ignore_readdir_race does not work with program `find` References: In-Reply-To: --UrPHuuJKhLN4AtPk7LwGcMl7u8MAIfr0E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 26349 notabug thanks On 04/03/2017 09:18 AM, Dariusz Dzialak wrote: > Program 'find' failed even -ignore_readdir_race (no *OK* in output): >=20 >> mkdir -p 1/2/bla 3/4/bla ; { find . -ignore_readdir_race -mindepth 1 > -name '[0-9]' -print -exec stat --format "%s %n" {} \; -exec sleep 0.5 = \; > && echo OK; } & sleep .2 ; rm -fr 1 3 ; wait You've reached the coreutils mailing list, but 'find' is part of the findutils. You'll want to report this bug there (that project uses a different tracker, so I can't just reassign this bug between projects within the debbugs database). https://savannah.gnu.org/bugs/?group=3Dfindutils I'm closing this bug out in debbugs as it is not a coreutils issue, even though it does look like you may have found a valid issue in findutils. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --UrPHuuJKhLN4AtPk7LwGcMl7u8MAIfr0E-- --dcfIBB9hJbpXAOf4Ud7GOqBexPC9m2mHM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJY4obnAAoJEKeha0olJ0NqObkH/00P0PFqmEAA/K1jn+bvDKBI Qs3lb/XkPtkqRm3E3HZMvpg4U1bwJZXzlqwo0I2xnSxPBTtNsaYCrWf0YwaV9Jb0 lA8ujkeuUX/35SdXy2GTddCyFQHOPf/dJFvkFuoMpUJE1sJRNRRMKhawU9Zucw3b GihTel6PhesJU3XsthzbUXX3CyxY6dq80yceao5qc8O//A+7IaBB+di0ovD++o3C idHBrF/2njucJUCsXtGtUu/9/HcH4ij63rIZ1VgSHgRZH/j+VBAnYxaVbe92E80n 9/gT/W8ixORhMYLkeo97elrwElFxA+73EuzMAVJh/WGCw8TZfQ2QTCpfeF6ZEnU= =uqh3 -----END PGP SIGNATURE----- --dcfIBB9hJbpXAOf4Ud7GOqBexPC9m2mHM-- From unknown Mon Jun 23 11:24:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 May 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator