On 8/22/2016 6:29 PM, Ian Lance Taylor wrote:
> What do you see when you run your program?  This is what I see, and it
> is what I expect; note that "crash.c:5" line.  Do you see something
> different?  If this is what you see, how does it differ from what you
> expect?

What you have attached is what I would have expected to see when it works.

I've attached my output here. It looks exactly like it would with no C stack
trace at all, as far as I can tell.

The testing OS is the admittedly old CentOS 7.2 amd64 with GCC 4.8.5. Is
there perhaps some minimum library version for something the libbacktrace
files uses (libgcc_s)?

- Derek

-- 
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.
Pre-crash
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x47cfb9]

runtime stack:
runtime.throw(0x4b0a0a, 0x2a)
        /home/user/go/src/runtime/panic.go:566 +0x95
runtime.sigpanic()
        /home/user/go/src/runtime/sigpanic_unix.go:12 +0x2cc
runtime.asmcgocall(0xc42004fe28, 0xc420018080)
        /home/user/go/src/runtime/asm_amd64.s:594 +0x70
runtime.cgocall(0x7ffc6c7c34e0, 0x702940, 0x7ffc6c7c34d0)
        /home/user/go/src/runtime/cgocall.go:115 +0xed

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x47cfa0, 0xc42004fea0, 0x0)
        /home/user/go/src/runtime/cgocall.go:131 +0x110 fp=0xc42004fe58 
sp=0xc42004fe18
main._Cfunc_crash_now(0x1, 0xe26050)
        _/home/user/crashtest/_obj/_cgo_gotypes.go:53 +0x45 fp=0xc42004fea0 
sp=0xc42004fe58
main.crash()
        /home/user/crashtest/crash.go:14 +0x4c fp=0xc42004fec8 sp=0xc42004fea0
main.main()
        /home/user/crashtest/crash.go:19 +0xa4 fp=0xc42004ff48 sp=0xc42004fec8
runtime.main()
        /home/user/go/src/runtime/proc.go:183 +0x1f4 fp=0xc42004ffa0 
sp=0xc42004ff48
runtime.goexit()
        /home/user/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc42004ffa8 
sp=0xc42004ffa0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /home/user/go/src/runtime/asm_amd64.s:2086 +0x1

Reply via email to