Re: find command trigger coredump

2020-04-16 Thread Kamil Dudka
On Thursday, April 16, 2020 6:03:45 AM CEST Paul Eggert wrote: > Thanks for the bug report archived at > . What you appear > to be saying is that the Gnulib fts NOSTAT_LEAF_OPTIMIZATION code is buggy > when an XFS filesystem is mutating, and

Re: find command trigger coredump

2020-04-16 Thread Bernhard Voelker
On 2020-04-16 06:03, Paul Eggert wrote: > I worked around the bug by removing that optimization from Gnulib fts.c, by > installing the attached patch. I expect that this optimization is obsolete > nowadays, as XFS is now working and ReiserFS is either working, or is so > unpopular that high perf

Re: find command trigger coredump

2020-04-16 Thread Paul Eggert
On 4/16/20 6:36 AM, Bernhard Voelker wrote: I installed it in my local findutils tree, but find still crashes: Thanks for checking. Do you have a reproducer for that? Did it fix the crash for you (maybe in du(1))? Yes, the patch fixed 'du' when I was running 'du' in an XFS filesystem that

Re: find command trigger coredump

2020-04-16 Thread Bernhard Voelker
On 2020-04-16 18:01, Paul Eggert wrote: > On 4/16/20 6:36 AM, Bernhard Voelker wrote: > >> I installed it in my local findutils tree, but find still crashes: > > Thanks for checking. Do you have a reproducer for that? The same as in the original post. https://lists.gnu.org/r/bug-gnulib/2020-04/m

find, fts: dramatical improvement of speed in find

2020-04-16 Thread Askar Safin
Hi. I applied the following patch to fts.c from latest revision of gnulib ( 47bf2cf3184027c1eb9c1dfeea5c5b8b2d69710d ): diff --git a/lib/fts.c b/lib/fts.c index ade8c3349..70b424dea 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -1514,7 +1514,7 @@ mem1: saved_errno = errno;

Re: find command trigger coredump

2020-04-16 Thread Paul Eggert
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 pro

Re: bug#40634: Massive pattern list handling with -E format seems very slow since 2.28.

2020-04-16 Thread Norihiro Tanaka
On Fri, 17 Apr 2020 09:35:36 +0900 Norihiro Tanaka wrote: > > On Thu, 16 Apr 2020 16:00:29 -0700 > Paul Eggert wrote: > > > On 4/16/20 3:53 PM, Norihiro Tanaka wrote: > > > > > I have had no idea to solve the problem yet. If we revert it, bug#33357 > > > will come back. > > > > Yes, I'd ra

Re: find command trigger coredump

2020-04-16 Thread Bernhard Voelker
On 2020-04-16 21:36, Paul Eggert wrote: > 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 repro