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.thanks.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8a93e022-f9a2-4b12-9b1d-e50640dd5573n%40googlegroups.com.
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.
on a linux virtual machine GOTRACEBACK=crash works fine and would generates core files in working directory for me.
package mainfunc main() {panic("WTF")}
thank you. i see that there are also .crash file generated at ~/Library/Logs/DiagnosticReports```➜ ~ ls Library/Logs/DiagnosticReports/a.out_2020-10-02-1337* -lh-rw------- 1 zah _analyticsusers 22K Oct 2 13:37 Library/Logs/DiagnosticReports/a.out_2020-10-02-133721_hac.crash-rw------- 1 zah _analyticsusers 21K Oct 2 13:37 Library/Logs/DiagnosticReports/a.out_2020-10-02-133751_hac.crash```could go generates .crash file?
I mean that is there any way to expose SIGSEGV to macOS system just like a pure C program, so that the system could generate .crash file automatically.currently, seems that go itself catch the SIGSEGV signal, and prints go trace back, so it doesn't trigger system default behavior for SIGSEGV.
On Oct 2, 2020, at 11:36 PM, Kurtis Rader <kra...@skepticism.us> wrote:
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD9-qWpfrHzo6SHspAfxbk7EymGmSbj2Wb4squ1iRur-hg%40mail.gmail.com.
A crash file is not a core dump. It does not contain a memory dump.
.crash file is also acceptable for me, if it contains a stack trace.
On Oct 3, 2020, at 12:41 AM, aihui zhu <mr.z...@gmail.com> wrote:
thank you and yes, i'm trying to debug a SIGSEGV occurred in C code.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e5d4de0f-8e5e-409e-87db-4f56369fad57n%40googlegroups.com.