bugfindutils - Bugs: bug #4391, Race condition in find causes...

 
 

bug #4391: Race condition in find causes spurious error messages in updatedb

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Mon 21 Jul 2003 11:22:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: NoneFixed Release: 4.2.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 03 May 2004 09:51:06 AM UTC, comment #1:

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Project Administrator
Mon 21 Jul 2003 11:22:52 AM UTC, original submission:

Generate a big tree:
mkdir `seq -w 000 999`
for i in a b c d e ; do find -type d -exec touch '{}'/$i \; ; done

Run find and rm at the same time:
{ for i in * ;do rm -rf $i ; done ; } & LANG=C find ./ -type f -print > /dev/null
[1] 390
find: ./004/c: No such file or directory
find: ./004/d: No such file or directory
find: ./004/e: No such file or directory
find: ./005: No such file or directory
[...]

Usually it does not matter, but it requires one to run updatedb with >/dev/null 2>&1, losing the real errors. Otherwise you'll get a silly mail from cron every other day, when it fails to stat some lockfile (fetchmail.lck), some spoolfile from lpd or a moved mail in a mailfolder.

http://bugs.debian.org/67782

cu andreas

Andreas Metzler <ametzler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 16 Oct 2004 06:18:59 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.0
Mon 03 May 2004 09:52:10 AM UTCjayStatusNone=>Fixed

Back to the top


Powered by Savane 3.1-cleanup1