I have set "ulimit -c unlimited" and  run "GOTRACEBACK=crash ./main". The 
"main" program will panic in a while.

On Linux, it can generate core dump file in current directory,

But on macOS High Sierra (10.13.4), it has not generated the core dump file 
in /cores. If I write a a program in c, it can generate the core dump.

Will GOTRACEBACK=crash golang program not generate the core dump file?

According to the spec, it is not clear on macOS: 

> GOTRACEBACK=crash is like “system” but crashes in an operating 
system-specific manner instead of exiting. For example, on Unix systems, 
the crash raises SIGABRT to trigger a core dump. 


-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to