onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
242 stars 28 forks source link

find recursive from / causes dart to abort #104

Closed bsutton closed 3 years ago

bsutton commented 4 years ago

Looks like dart has a bug when interating through /proc directory underliux

If the following code is run as sudo then you are guarenteed a crash:

find('x', root: '/', recursive: true);

See the following issues: https://github.com/dart-lang/sdk/issues/43176

The only obvious work around is to get a listing of the directories under / and then do individual recursions under each of these directories excluding /proc.

bsutton commented 4 years ago

We have a work around in place by bypassing directories such as /proc.

Will leave open until 2.10 which should have a fix and then we can remove the work around.

bsutton commented 3 years ago

Fixed in 2.10