On 4/16/20 9:32 AM, Bernhard Voelker wrote:
okay, strange - eventually I have time to try the same with du(1) later this evening.
Yes, it is strange. I tried 'find' and the Gnulib patch fixed the bug for me there too. I used the same reproducer that you did. It was easy to reproduce the problem with findutils master without the patch, and I could not reproduce the problem with the patch applied to findutils/gl/lib/fts*.
I'm using Fedora 31 x86-64 on an older machine (circa 2010 CPU) so it's possible there's a race that occurs only on a faster machine. But anyway, for me the patch improves reliably greatly (though as I said I doubt it's a full fix).