broot icon indicating copy to clipboard operation
broot copied to clipboard

Searching in / and /proc freezes the application

Open monkeyt00l opened this issue 3 years ago • 3 comments

While #637 prevents freezing by just listing the root directory, any search activity at / or /proc still freezes broot (version 1.17.0) for me.

I noticed the same issue with 'fd', while find seems to be the only tool so far which does not have this issue.

Possibly related: https://github.com/sharkdp/fd/issues/288

monkeyt00l avatar Dec 11 '22 13:12 monkeyt00l

I've read the issue in fd and I see I'm not the only one failing to make any sense for those occasional freeze in iteration (it's not related to infinite recursion and I don't even manage to find what standard call is blocking).

BTW, It's not "any search activity", it's not really deterministic although a deep search is likely to provoke a freeze.

Canop avatar Dec 11 '22 14:12 Canop

The same freeze in fd and other rust tools has been tracked to an issue in the rust lib (read_dir). It's been fixed, then unfixed at least twice. fd compiled now has the same problem.

Until it's really fixed and old enough that I can guarantee it with the minimum rust version, I'll add /proc to the set of special paths (in an overridable way).

Canop avatar Jan 29 '23 08:01 Canop

I'm not closing this issue as it would be more convenient to be able to search in /proc (I was using that feature extensively in the past, when coding lfs...)

Canop avatar Jan 29 '23 09:01 Canop