In panic(), try to coredump in a way that doesn't confuse gdb, before falling back on abort().