> And some C++ stackoverflow post claimed this was a bug in standard
> library on macos that was fixed in some version already.
I'll try to get you Sierra (10.12) and High Sierra (10.13) results tomorrow.
There is no strace on macOS, I used dtruss (dtrace):
$ dtruss -p 1827
SYSCALL(args)= return
fstat64(0x0, 0x7FFF5B18B2F0, 0x1)= 0 0
lseek(0x0, 0x0, 0x1) = 54132 0
write(0x1, "Nil\n\0", 0x4) = 4 0
thread_selfid(0x0, 0x7F8252ED2090, 0x4)
I've tested previous Rakudo builds and moar-2017.05 works fine, moar-2017.07 is
broken. So regression happened somewhere between those two versions.