diff options
author | Russ Cox <rsc@golang.org> | 2011-01-18 14:15:11 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-18 14:15:11 -0500 |
commit | 2e479079e5e854ff9dc3b1e6fa3e099a7b8f0ea2 (patch) | |
tree | 242f76c3e6c26e030df2e0a5b06713c88bf392e4 /test/golden.out | |
parent | b020ec6f386574c9dbc75ed54d4bae1962758491 (diff) | |
download | go-2e479079e5e854ff9dc3b1e6fa3e099a7b8f0ea2.tar.gz |
runtime: print signal information during panic
$ 6.out
panic: runtime error: invalid memory address or nil pointer dereference
[signal 11 code=0x1 addr=0x0 pc=0x1c16]
runtime.panic+0xa7 /Users/rsc/g/go/src/pkg/runtime/proc.c:1089
runtime.panic(0xf6c8, 0x25c010)
runtime.panicstring+0x69 /Users/rsc/g/go/src/pkg/runtime/runtime.c:88
runtime.panicstring(0x24814, 0x0)
runtime.sigpanic+0x144 /Users/rsc/g/go/src/pkg/runtime/darwin/thread.c:465
runtime.sigpanic()
main.f+0x16 /Users/rsc/x.go:5
main.f()
main.main+0x1c /Users/rsc/x.go:9
main.main()
runtime.mainstart+0xf /Users/rsc/g/go/src/pkg/runtime/amd64/asm.s:77
runtime.mainstart()
runtime.goexit /Users/rsc/g/go/src/pkg/runtime/proc.c:149
runtime.goexit()
R=r
CC=golang-dev
http://codereview.appspot.com/4036042
Diffstat (limited to 'test/golden.out')
-rw-r--r-- | test/golden.out | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/golden.out b/test/golden.out index e587912a4..04c71327b 100644 --- a/test/golden.out +++ b/test/golden.out @@ -4,22 +4,18 @@ =========== ./cmp2.go panic: runtime error: comparing uncomparable type []int -panic PC=xxx =========== ./cmp3.go panic: runtime error: comparing uncomparable type []int -panic PC=xxx =========== ./cmp4.go panic: runtime error: hash of unhashable type []int -panic PC=xxx =========== ./cmp5.go panic: runtime error: hash of unhashable type []int -panic PC=xxx =========== ./deferprint.go printing: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 @@ -117,12 +113,10 @@ PASS =========== interface/fail.go panic: interface conversion: *main.S is not main.I: missing method Foo -panic PC=xxx =========== interface/returntype.go panic: interface conversion: *main.S is not main.I2: missing method Name -panic PC=xxx == nilptr/ @@ -164,12 +158,10 @@ M =========== fixedbugs/bug113.go panic: interface conversion: interface is int, not int32 -panic PC=xxx =========== fixedbugs/bug148.go 2 3 panic: interface conversion: interface is main.T, not main.T -panic PC=xxx == bugs/ |