As @JonathanLeffler noted, a kernel dump is in the current directory.
You can use strace to check if the chdir () process has passed. Unfortunately, strace does not show where the kernel itself is, but:
$ cat crash.c int main(void) { chdir("/tmp"); *(int *)0 = 0; return 0; } $ cc -o crash crash.c $ strace ./crash execve("./crash", ["./crash"], []) = 0 ... [lots of libc trace stuff snipped] ... chdir("/tmp") = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault $ ls /tmp
and now there is a core.pid file.
torek
source share