`mix test --listen-on-stdin` crashing after restart

Since a short while I have mix test --listen-on-stdin crashing a lot on the second or third run with this error message:

Restarting...
nifs/common/prim_file_nif.c:388:owner_death_callback(): Internal error: Failed to defer prim_file close.
fish: “mix test --only x --listen-on-s…” terminated by signal SIGABRT (Abort)

After searching a bit I found that it’s a bug in OTP21.2, so It’s not a question anymore, but posting here anyway for anyone that might run into the same thing.

References:

3 Likes