On Tue, Apr 17, 2018 at 1:37 AM, Chao Yuepan <[email protected]> wrote:
>
> 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.

On Darwin, we do not generate a core dump.  See
https://golang.org/src/runtime/signal_unix.go#L507 .

Ian

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

Reply via email to