Skip to content

findFiles() hanging indefinitely #72

@donnellyk

Description

@donnellyk

In 3.9, w/ changing of the order of reading the standard output/error, /usr/bin/find is now hanging indefinitely for me.

If I swap the order so standardOutput is read first, it works as expected with ~1000 files found and 0 errors:

(lldb) po errdata.isEmpty
true

Reproducing

The magic number (on my machine, at least. macOS 10.12.6, Xcode 9.0 9A235) seems to be 983 files, anything over that and it seems to hang. I've attached a zip file with a file hierarchy that reproduced the bug on my machine. It is just a bunch of empty .swift/h/m files in folders.

files.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions