What does it look like when it crashes on iOS? Does just the app crash, springboard crashes or the device restarts?
EDIT:
I cannot reproduce on iPhone 5 which is NOT running any 64-bit kernel.
Possibly I have provided wrong prototypes, mach_vm is n/a in iOS: https://gist.github.com/cfr/425812debdb2a6d0449f