Crash causes a crash by panicking on an out-of-bounds slice access. For testing only. Setting typ to 0 must send the crash output to stderr and abort, and 1 to console and not quit, while 2 must send the crash output to console and abort. afterMs is the number of milliseconds to wait before crashing
(typ, afterMs int64)