On Thu, Oct 1, 2020 at 5:39 PM aihui zhu <mr.zh...@gmail.com> wrote: > I have enabled coredump with `ulimit -c unlimited`, and run the binary > with GOTRACEBACK=crash, but it only outputs the go stack trace when crash.
Have you verified that you can generate a core dump from a pure C program that simply dereferences a NULL pointer? I ask because a couple of years ago I was surprised that SIGSEGV did not result in a core dump on my macOS server despite having run "ulimit -c unlimited". I eventually traced it to the core dump directory not being writable by non-root users. Check the permissions which should look like this: > ls -ld /cores drwxrwxrwt 2 root wheel 64 Aug 10 11:21 /cores/ -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8%3DyL9Fqj%2B0cNjrjvPUNy1W%3DJHsG0Oj3uBw2GueYxYHsA%40mail.gmail.com.