Skip to content

Instantly share code, notes, and snippets.

@luislavena
Last active December 26, 2015 09:29
Show Gist options
  • Save luislavena/7129699 to your computer and use it in GitHub Desktop.
Save luislavena/7129699 to your computer and use it in GitHub Desktop.
2013/10/23 22:20:33 [INFO] agent: Received event: member-join
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x0 pc=0x49f347]
goroutine 23 [running]:
runtime.panic(0x6d9580, 0xaa8def)
/Users/mitchellh/go/src/pkg/runtime/panic.c:266 +0xc8
net.(*TCPConn).Close(0x0, 0x1f, 0x2cddf20)
/Users/mitchellh/go/src/pkg/net/cgo_stub.go:1 +0x17
runtime.panic(0x6d9580, 0xaa8def)
/Users/mitchellh/go/src/pkg/runtime/panic.c:248 +0x11b
net.(*TCPConn).Write(0x0, 0xc084014ba4, 0x32, 0x38, 0x7c9578, ...)
/Users/mitchellh/go/src/pkg/net/cgo_stub.go:1 +0x17
encoding/gob.(*Encoder).writeMessage(0xc084014b40, 0x241f38, 0x0, 0xc084014b78)
/Users/mitchellh/go/src/pkg/encoding/gob/encoder.go:76 +0x1e9
encoding/gob.(*Encoder).EncodeValue(0xc084014b40, 0x656cc0, 0xc084051dc0, 0x182, 0x0, ...)
/Users/mitchellh/go/src/pkg/encoding/gob/encoder.go:248 +0x439
encoding/gob.(*Encoder).Encode(0xc084014b40, 0x656cc0, 0xc084051dc0, 0x656cc0, 0xc084051dc0)
/Users/mitchellh/go/src/pkg/encoding/gob/encoder.go:171 +0x60
github.com/hashicorp/serf/command/agent.(*rpcEndpoint).monitorStream(0xc084000538, 0xc084051cc0, 0xa, 0xc08404f3c0)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/rpc_endpoint.go:89 +0x448
created by github.com/hashicorp/serf/command/agent.(*rpcEndpoint).Monitor
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/rpc_endpoint.go:64 +0x2a6
goroutine 1 [select]:
github.com/hashicorp/serf/command/agent.(*Command).Run(0xc084043700, 0xc0840061e0, 0x2, 0x2, 0x2406c0, ...)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/command.go:185 +0x15e8
github.com/hashicorp/serf/cli.(*CLI).Run(0xc084031bd0, 0x6d9040, 0xaacff8, 0x2406c0)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/cli/cli.go:52 +0x1af
main.realMain(0x401d98)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/main.go:37 +0x31d
main.main()
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/main.go:12 +0x21
goroutine 3 [syscall]:
os/signal.loop()
/Users/mitchellh/go/src/pkg/os/signal/signal_unix.go:21 +0x21
created by os/signal.init·1
/Users/mitchellh/go/src/pkg/os/signal/signal_unix.go:27 +0x34
goroutine 5 [chan receive]:
main.func·007()
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/commands.go:60 +0x48
created by main.makeShutdownCh
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/commands.go:63 +0x13b
goroutine 6 [IO wait]:
net.runtime_pollWait(0x241990, 0x72, 0x0)
/Users/mitchellh/go/src/pkg/runtime/netpoll.goc:116 +0x6d
net.(*pollDesc).Wait(0xc08404e170, 0x72, 0x240000, 0x3e5)
/Users/mitchellh/go/src/pkg/net/fd_poll_runtime.go:81 +0x37
net.(*ioSrv).ExecIO(0xc084000460, 0xc08404e060, 0x74c2d0, 0x8, 0xc084051060, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:188 +0x223
net.(*netFD).accept(0xc08404e000, 0x7dfe08, 0x0, 0x0, 0x0)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:546 +0x453
net.(*TCPListener).AcceptTCP(0xc084000480, 0x1, 0xc08400e000, 0xc084003d70)
/Users/mitchellh/go/src/pkg/net/tcpsock_posix.go:233 +0x4a
github.com/hashicorp/memberlist.(*Memberlist).tcpListen(0xc084014180)
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/net.go:109 +0x2e
created by github.com/hashicorp/memberlist.newMemberlist
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/memberlist.go:214 +0x7c9
goroutine 7 [IO wait]:
net.runtime_pollWait(0x2418e8, 0x72, 0x0)
/Users/mitchellh/go/src/pkg/runtime/netpoll.goc:116 +0x6d
net.(*pollDesc).Wait(0xc08404e2f0, 0x72, 0x240000, 0x3e5)
/Users/mitchellh/go/src/pkg/net/fd_poll_runtime.go:81 +0x37
net.(*ioSrv).ExecIO(0xc084000460, 0xc08404e1e0, 0x752f30, 0xb, 0x7de968, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:188 +0x223
net.(*netFD).ReadFrom(0xc08404e180, 0xc084052000, 0x10000, 0x10000, 0x0, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:477 +0x18e
net.(*UDPConn).ReadFromUDP(0xc084000498, 0xc084052000, 0x10000, 0x10000, 0x657020, ...)
/Users/mitchellh/go/src/pkg/net/udpsock_posix.go:67 +0x125
net.(*UDPConn).ReadFrom(0xc084000498, 0xc084052000, 0x10000, 0x10000, 0x10000, ...)
/Users/mitchellh/go/src/pkg/net/udpsock_posix.go:82 +0xf3
github.com/hashicorp/memberlist.(*Memberlist).udpListen(0xc084014180)
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/net.go:165 +0x270
created by github.com/hashicorp/memberlist.newMemberlist
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/memberlist.go:215 +0x7e3
goroutine 9 [select]:
github.com/hashicorp/memberlist.(*Memberlist).triggerFunc(0xc084014180, 0xc084031230, 0xc08402c660, 0xc084003eb0)
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:88 +0xa4
created by github.com/hashicorp/memberlist.(*Memberlist).schedule
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:59 +0x12e
goroutine 10 [select]:
github.com/hashicorp/memberlist.(*Memberlist).triggerFunc(0xc084014180, 0xc0840312a0, 0xc08402c660, 0xc084003ec0)
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:88 +0xa4
created by github.com/hashicorp/memberlist.(*Memberlist).schedule
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:66 +0x250
goroutine 11 [select]:
github.com/hashicorp/memberlist.(*Memberlist).triggerFunc(0xc084014180, 0xc084031310, 0xc08402c660, 0xc084003ee0)
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:88 +0xa4
created by github.com/hashicorp/memberlist.(*Memberlist).schedule
/Users/mitchellh/code/go/src/github.com/hashicorp/memberlist/state.go:73 +0x383
goroutine 12 [select]:
github.com/hashicorp/serf/serf.(*Serf).handleReap(0xc08403ec60)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:683 +0x1c1
created by github.com/hashicorp/serf/serf.Create
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:202 +0x510
goroutine 13 [select]:
github.com/hashicorp/serf/serf.(*Serf).handleReconnect(0xc08403ec60)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:699 +0xc5
created by github.com/hashicorp/serf/serf.Create
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:203 +0x52a
goroutine 14 [select]:
github.com/hashicorp/serf/serf.(*Serf).checkQueueDepth(0xc08403ec60, 0x80, 0x73c620, 0x6, 0xc0840454e0, ...)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:780 +0x1cd
created by github.com/hashicorp/serf/serf.Create
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:205 +0x580
goroutine 15 [select]:
github.com/hashicorp/serf/serf.(*Serf).checkQueueDepth(0xc08403ec60, 0x80, 0x73b720, 0x5, 0xc084045510, ...)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:780 +0x1cd
created by github.com/hashicorp/serf/serf.Create
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/serf/serf.go:207 +0x5da
goroutine 16 [IO wait]:
net.runtime_pollWait(0x241840, 0x72, 0x0)
/Users/mitchellh/go/src/pkg/runtime/netpoll.goc:116 +0x6d
net.(*pollDesc).Wait(0xc08404e470, 0x72, 0x240000, 0x3e5)
/Users/mitchellh/go/src/pkg/net/fd_poll_runtime.go:81 +0x37
net.(*ioSrv).ExecIO(0xc084000460, 0xc08404e360, 0x74c2d0, 0x8, 0xc084051810, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:188 +0x223
net.(*netFD).accept(0xc08404e300, 0x7dfe08, 0x0, 0x0, 0x0)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:546 +0x453
net.(*TCPListener).AcceptTCP(0xc084000528, 0x433621, 0x275f18, 0x433621)
/Users/mitchellh/go/src/pkg/net/tcpsock_posix.go:233 +0x4a
net.(*TCPListener).Accept(0xc084000528, 0x241f00, 0xc084000d98, 0x241f00, 0xc084000d98)
/Users/mitchellh/go/src/pkg/net/tcpsock_posix.go:243 +0x2a
github.com/hashicorp/serf/command/agent.func·001(0x241a38, 0xc084000528)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/agent.go:178 +0x45
created by github.com/hashicorp/serf/command/agent.(*Agent).Start
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/agent.go:185 +0x6a3
goroutine 17 [select]:
github.com/hashicorp/serf/command/agent.(*Agent).eventLoop(0xc084033210, 0x2408e8, 0xc08402c420, 0xc084016b00, 0xc08402c
6c0)
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/agent.go:229 +0x296
created by github.com/hashicorp/serf/command/agent.(*Agent).Start
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/agent.go:190 +0x708
goroutine 18 [chan receive]:
github.com/hashicorp/serf/command/agent.func·004()
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/command.go:206 +0x61
created by github.com/hashicorp/serf/command/agent.(*Command).startShutdownWatcher
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/command.go:227 +0x156
goroutine 21 [IO wait]:
net.runtime_pollWait(0x241648, 0x72, 0x0)
/Users/mitchellh/go/src/pkg/runtime/netpoll.goc:116 +0x6d
net.(*pollDesc).Wait(0xc08404e8f0, 0x72, 0x240000, 0x3e5)
/Users/mitchellh/go/src/pkg/net/fd_poll_runtime.go:81 +0x37
net.(*ioSrv).ExecIO(0xc084000460, 0xc08404e7e0, 0x73fe00, 0x7, 0x7de960, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:188 +0x223
net.(*netFD).Read(0xc08404e780, 0xc08407c000, 0x1000, 0x1000, 0x0, ...)
/Users/mitchellh/go/src/pkg/net/fd_windows.go:451 +0x10c
net.(*conn).Read(0xc084000d98, 0xc08407c000, 0x1000, 0x1000, 0x240080, ...)
/Users/mitchellh/go/src/pkg/net/net.go:122 +0xc8
bufio.(*Reader).fill(0xc08402c5a0)
/Users/mitchellh/go/src/pkg/bufio/bufio.go:91 +0x113
bufio.(*Reader).Read(0xc08402c5a0, 0xc084051820, 0x1, 0x9, 0x1, ...)
/Users/mitchellh/go/src/pkg/bufio/bufio.go:159 +0x1a7
io.ReadAtLeast(0x241fb0, 0xc08402c5a0, 0xc084051820, 0x1, 0x9, ...)
/Users/mitchellh/go/src/pkg/io/io.go:288 +0xf9
io.ReadFull(0x241fb0, 0xc08402c5a0, 0xc084051820, 0x1, 0x9, ...)
/Users/mitchellh/go/src/pkg/io/io.go:306 +0x74
encoding/gob.decodeUintReader(0x241fb0, 0xc08402c5a0, 0xc084051820, 0x9, 0x9, ...)
/Users/mitchellh/go/src/pkg/encoding/gob/decode.go:66 +0x9b
encoding/gob.(*Decoder).recvMessage(0xc0840710f0, 0xc08407112c)
/Users/mitchellh/go/src/pkg/encoding/gob/decoder.go:73 +0x5a
encoding/gob.(*Decoder).decodeTypeSequence(0xc0840710f0, 0xc08407d400, 0x160)
/Users/mitchellh/go/src/pkg/encoding/gob/decoder.go:159 +0x4c
encoding/gob.(*Decoder).DecodeValue(0xc0840710f0, 0x63c860, 0xc08407d440, 0x160, 0x0, ...)
/Users/mitchellh/go/src/pkg/encoding/gob/decoder.go:223 +0x131
encoding/gob.(*Decoder).Decode(0xc0840710f0, 0x63c860, 0xc08407d440, 0x40ad41, 0x238030)
/Users/mitchellh/go/src/pkg/encoding/gob/decoder.go:202 +0x1c8
net/rpc.(*gobServerCodec).ReadRequestHeader(0xc0840758d0, 0xc08407d440, 0x421a04, 0x10)
/Users/mitchellh/go/src/pkg/net/rpc/server.go:400 +0x42
net/rpc.(*Server).readRequestHeader(0xc084039e80, 0x242000, 0xc0840758d0, 0x0, 0x0, ...)
/Users/mitchellh/go/src/pkg/net/rpc/server.go:551 +0x9e
net/rpc.(*Server).readRequest(0xc084039e80, 0x242000, 0xc0840758d0, 0xc084032700, 0xc084004ca0, ...)
/Users/mitchellh/go/src/pkg/net/rpc/server.go:518 +0xa3
net/rpc.(*Server).ServeCodec(0xc084039e80, 0x242000, 0xc0840758d0)
/Users/mitchellh/go/src/pkg/net/rpc/server.go:437 +0x69
net/rpc.(*Server).ServeConn(0xc084039e80, 0x241f00, 0xc084000d98)
/Users/mitchellh/go/src/pkg/net/rpc/server.go:429 +0x143
created by github.com/hashicorp/serf/command/agent.func·001
/Users/mitchellh/code/go/src/github.com/hashicorp/serf/command/agent/agent.go:183 +0x151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment