Closed GirardR1006 closed 3 years ago
There was a file descriptor leak in the spawning process we found with @tmarti2 : can you check if pinning Feather to https://github.com/Firobe/feather.git
solves your issue ?
Confirmed that pinning your version solves the issue, thanks again :D
Thanks for reporting @GirardR1006 and thanks for the quick fix @Firobe!
Good morning, I am trying to open multiple files with several hundred of lines, using the following function:
Here,
target
is a folder andfiles
has about 273 elements in it, so no big deal. However, the program crashes when callinglet trimed = cat path |. head (-2) |> collect_stdout in
with the following stacktraceAccording to https://ocaml.org/api/Unix.html, EMFILE error seems to indicate that there are too many open files in my process, however I only open one file at the time. It may come from the "z3" binary, but I am not sure exactly how it may interfere. The problem seems to come from the
collect_stdout
functions: I tried to replace thehead
pipe with a custom head function, and it kept crashing. Also, replacingcollect_stdout
bycollect_lines
makes the program crash much earlier.Could you look at it? Thanks in advance for your time.