You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go version:
go version devel +4971493b0e14 Tue Oct 01 23:44:20 2013 -0400 darwin/amd64
the code:
https://gist.github.com/mitchellh/3883097d9d57fccbfb88
(the code actually works fine on play.golang.org, I'm not sure what changed in Go 1.2
but on 1.2 this panics)
The panic looks like this. If you look, the line number of `net.(*TCPConn).Close` is on
line 1 in dial.go. Is this working as intended? It made debugging this trickier.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x35077]
goroutine 1 [running]:
runtime.panic(0x74e40, 0x114e19)
/Users/mitchellh/go/src/pkg/runtime/panic.c:266 +0xb6
net.(*TCPConn).Close(0x0, 0x7b6a0, 0x117228)
/Users/mitchellh/go/src/pkg/net/dial.go:1 +0x17
main.main()
/tmp/test/test.go:10 +0x41
exit status 2
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: