FAQ
./all.bash does not pass nilptr.go

# ../test
run nilptr.go : incorrect output

panic: memory reference did not panic

goroutine 1 [running]:
main.func·001(0x1c0e8, 0x10d84)
/home/dfc/go/test/nilptr.go:46 +0x78
main.shouldPanic(0x10d84, 0x2)
/home/dfc/go/test/nilptr.go:49 +0x50
main.main()
/home/dfc/go/test/nilptr.go:31 +0x7c

goroutine 2 [syscall]:
created by runtime.main
/home/dfc/go/src/pkg/runtime/proc.c:224
exit status 2

run recover3.go : incorrect output
unexpected fault address 0x4e20
throw: fault
[signal 0xb code=0x1 addr=0x4e20 pc=0x11550]

goroutine 1 [running]:
main.func·006(0xb6f49fb4, 0x10e74)
/home/dfc/go/test/recover3.go:63 +0x2c
main.check(0x2cc44, 0xd, 0x10519900, 0x2d1c0, 0x17, ...)
/home/dfc/go/test/recover3.go:48 +0x60
main.main()
/home/dfc/go/test/recover3.go:63 +0x204

goroutine 2 [syscall]:
created by runtime.main
/home/dfc/go/src/pkg/runtime/proc.c:224
exit status 2

http://codereview.appspot.com/6733055/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 21, '12 at 10:21a
activeOct 21, '12 at 10:21a
posts1
users1
websitegolang.org

1 user in discussion

Dave: 1 post

People

Translate

site design / logo © 2022 Grokbase