GNU bug report logs - #26349
Option -ignore_readdir_race does not work with program `find`

Previous Next

Package: coreutils;

Reported by: Dariusz Dzialak <ddzialak <at> gmail.com>

Date: Mon, 3 Apr 2017 15:28:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26349 in the body.
You can then email your comments to 26349 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#26349; Package coreutils. (Mon, 03 Apr 2017 15:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dariusz Dzialak <ddzialak <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 03 Apr 2017 15:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dariusz Dzialak <ddzialak <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Option -ignore_readdir_race does not work with program `find`
Date: Mon, 3 Apr 2017 16:18:08 +0200
[Message part 1 (text/plain, inline)]
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 ‘./1’: 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 ‘./3’: No such file or directory
./1
stat: cannot stat ‘./1’: 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; }



================

> 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 <http://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 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=0)
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Mon, 03 Apr 2017 17:32:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Mon, 03 Apr 2017 17:32:02 GMT) Full text and rfc822 format available.

Notification sent to Dariusz Dzialak <ddzialak <at> gmail.com>:
bug acknowledged by developer. (Mon, 03 Apr 2017 17:32:02 GMT) Full text and rfc822 format available.

Message #12 received at 26349-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Dariusz Dzialak <ddzialak <at> gmail.com>, 26349-done <at> debbugs.gnu.org
Subject: Re: bug#26349: Option -ignore_readdir_race does not work with program
 `find`
Date: Mon, 3 Apr 2017 12:31:19 -0500
[Message part 1 (text/plain, inline)]
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):
> 
>> 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=findutils

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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 May 2017 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 54 days ago.

Previous Next


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