I can reproduce the problem but have no idea how this happens. In the end it looks like a hang pipe-process.
I moved my findings to [https://github.com/nim-lang/Nim/issues/5796](https://github.com/nim-lang/Nim/issues/5796) as there are lengthy listings presented which might be not of general interest.
