Add API for crash handlers to use, so they don't have to rely on the
mass-printed dumpReport() output.
This also moves the method of termination for internally-detected
(INVALID_FREE, DOUBLE_FREE) errors to a SIGSEGV with some internal state saved,
so we can recover the error later, but still pass handling to a crash handler.