Seems to be this function failing.
Have you got the message printed by:
print("runtime: VirtualAlloc of ", n, " bytes failed with errno=", getlasterror(), "\n")
?
Error can occur if VirtualAlloc fails when runtime tries to allocate some more actual pages for reserved virtual address space.