GNU bug report logs -
#21460
Race condition in tests/tail-2/assert.sh
Previous Next
Reported by: ludo <at> gnu.org (Ludovic Courtès)
Date: Fri, 11 Sep 2015 16:24:02 UTC
Severity: normal
Merged with 21459
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès wrote:
> I think the problem happens when ‘tail’ opens ‘foo’ right in between of
> the two notifications: ‘foo’ is still there, and so ‘tail’ doesn’t
> report anything.
>
> Does that make sense?
Yes, though if the link count is indeed zero, I'm surprised that 'tail' can open
the file -- that sounds like a bug in the kernel.
If there is such a kernel bug and 'tail' can open a file with a link count of
zero, that would explain why 'tail' does not immediately receive an
IN_DELETE_SELF notification: after all, the file is open (by 'tail' itself) so
it should not be deleted even if it has a link count of zero. If so, it appears
that there's another kernel bug later: when 'tail' closes the file's last file
descriptor, the file should be deleted and an IN_DELETE_SELF notification should
be sent to 'tail'.
This bug report was last modified 9 years and 286 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.