Skip to content

Instantly share code, notes, and snippets.

@latortuga
Created December 16, 2015 20:12
Show Gist options
  • Save latortuga/0216f3c0cf2e11b4ec8b to your computer and use it in GitHub Desktop.
Save latortuga/0216f3c0cf2e11b4ec8b to your computer and use it in GitHub Desktop.
panic
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x0]
goroutine 10 [running]:
runtime.gopanic(0x5a7020, 0xc8200101b0)
/usr/local/go/src/runtime/panic.go:461 +0x3e6
runtime.panicmem()
/usr/local/go/src/runtime/panic.go:42 +0x49
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:24 +0x2ba
created by github.com/burke/zeus/go/statuschart.ttyStart
/Users/drew/go-workspace/src/github.com/burke/zeus/go/statuschart/tty.go:50 +0x49
goroutine 1 [chan receive]:
github.com/burke/zeus/go/zeusmaster.doRun(0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/zeusmaster/zeusmaster.go:51 +0x323
github.com/burke/zeus/go/zeusmaster.Run()
/Users/drew/go-workspace/src/github.com/burke/zeus/go/zeusmaster/zeusmaster.go:24 +0x18
main.main()
/Users/drew/go-workspace/src/github.com/burke/zeus/go/cmd/zeus/zeus.go:77 +0x5fd
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 6 [runnable]:
os.(*File).Close(0xc82014e018, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:114
os/exec.(*Cmd).closeDescriptors(0xc82014a000, 0xc8200e0040, 0x3, 0x4)
os/exec.(*Cmd).closeDescriptors(0xc82014a000, 0xc8200e0040, 0x3, 0x4) [71/572]
/usr/local/go/src/os/exec/exec.go:241 +0x84
os/exec.(*Cmd).Start(0xc82014a000, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:335 +0x894
github.com/burke/zeus/go/filemonitor.startWrapper(0xc820018c60, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/filemonitor/filemonitor.go:94 +0x267
github.com/burke/zeus/go/filemonitor.start(0xc820018c60, 0xc820018ba0, 0xc820018c00)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/filemonitor/filemonitor.go:48 +0xa6
created by github.com/burke/zeus/go/filemonitor.Start
/Users/drew/go-workspace/src/github.com/burke/zeus/go/filemonitor/filemonitor.go:21 +0x8e
goroutine 7 [select]:
github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1(0xc8200145c0, 0xc820018cc0, 0xc820018ba0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:57 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:65 +0x67
goroutine 8 [select]:
github.com/burke/zeus/go/clienthandler.Start.func1(0xc820018d20, 0xc820018ba0, 0xc8200145c0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/clienthandler/clienthandler.go:45 +0x285
created by github.com/burke/zeus/go/clienthandler.Start
/Users/drew/go-workspace/src/github.com/burke/zeus/go/clienthandler/clienthandler.go:54 +0x67
goroutine 9 [select]:
github.com/burke/zeus/go/restarter.(*restarter).start(0xc82000ae00)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/restarter/restarter.go:29 +0x38c
created by github.com/burke/zeus/go/restarter.Start
/Users/drew/go-workspace/src/github.com/burke/zeus/go/restarter/restarter.go:14 +0xe4
goroutine 11 [select, locked to thread]:
runtime.gopark(0x634660, 0xc82002ef28, 0x5e32a8, 0x6, 0x42e218, 0x2)
/usr/local/go/src/runtime/proc.go:185 +0x163
runtime.selectgoImpl(0xc82002ef28, 0x0, 0x18)
/usr/local/go/src/runtime/select.go:392 +0xa64
runtime.selectgo(0xc82002ef28)
/usr/local/go/src/runtime/select.go:212 +0x12
runtime.ensureSigM.func1()
/usr/local/go/src/runtime/signal1_unix.go:227 +0x353
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 17 [IO wait]:
net.runtime_pollWait(0x7fbc804b8f70, 0x72, 0xc820010270)
/usr/local/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc820130060, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc820130060, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc820130000, 0x0, 0x7fbc804b9060, 0xc82010a080)
/usr/local/go/src/net/fd_unix.go:408 +0x27c
net.(*UnixListener).AcceptUnix(0xc82010a060, 0x0, 0x0, 0x0)
/usr/local/go/src/net/unixsock_posix.go:304 +0x53
github.com/burke/zeus/go/clienthandler.Start.func1.1(0xc82010a060, 0xc82015e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/clienthandler/clienthandler.go:35 +0x33
created by github.com/burke/zeus/go/clienthandler.Start.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/clienthandler/clienthandler.go:42 +0x160
goroutine 33 [IO wait]:
net.runtime_pollWait(0x7fbc804b8eb0, 0x72, 0xc820010270)
/usr/local/go/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc820160060, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc820160060, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).readMsg(0xc820160000, 0xc820152e88, 0x0, 0x0, 0xc820168040, 0x20, 0x20, 0xffffffffffffffff, 0x0, 0x0, ...)
/usr/local/go/src/net/fd_unix.go:286 +0x33d
net.(*UnixConn).ReadMsgUnix(0xc82010c010, 0xc820152e88, 0x0, 0x0, 0xc820168040, 0x20, 0x20, 0x5, 0x0, 0x0, ...)
/usr/local/go/src/net/unixsock_posix.go:150 +0x15f
github.com/burke/zeus/go/unixsocket.(*oobReader).Read(0xc820120040, 0xc820152e88, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/unixsocket/oobreader.go:39 +0x8b
github.com/burke/zeus/go/unixsocket.(*oobReader).ReadFD(0xc820120040, 0x634700, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/unixsocket/oobreader.go:24 +0x188
github.com/burke/zeus/go/unixsocket.(*Usock).ReadFD(0xc820168060, 0x0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/unixsocket/oobreader.go:24 +0x188 [0/572]
github.com/burke/zeus/go/unixsocket.(*Usock).ReadFD(0xc820168060, 0x0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/unixsocket/usock.go:79 +0x90
github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1.1(0xc820168060, 0xc82015c100)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:44 +0x21
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:50 +0x1ea
goroutine 34 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doWaitingState(0xc82008e2d0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:173 +0xb4
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e2d0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:144 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 35 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doWaitingState(0xc82008e3c0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:173 +0xb4
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e3c0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:144 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 36 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doWaitingState(0xc82008e4b0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:173 +0xb4
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e4b0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:144 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 37 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doWaitingState(0xc82008e5a0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:173 +0xb4
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e5a0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:144 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 38 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doUnbootedState(0xc82008e0f0, 0xc82011e000, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:197 +0x476
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e0f0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:146 +0x341
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 39 [chan receive]:
github.com/burke/zeus/go/processtree.(*SlaveNode).doWaitingState(0xc82008e1e0, 0x0, 0x0)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:173 +0xb4
github.com/burke/zeus/go/processtree.(*SlaveNode).Run(0xc82008e1e0, 0xc82011e000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:144 +0x3ab
created by github.com/burke/zeus/go/processtree.StartSlaveMonitor.func1
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavemonitor.go:53 +0x27a
goroutine 12 [runnable]:
os/exec.(*Cmd).writerDescriptor(0xc820188000, 0x7fbc804fc4d0, 0xc82005a9a0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:235 +0x4e7
os/exec.(*Cmd).stdout(0xc820188000, 0x0, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:200 +0x4c
os/exec.(*Cmd).Start(0xc820188000, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:312 +0x2fb
os/exec.(*Cmd).Run(0xc820188000, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:255 +0x2d
os/exec.(*Cmd).CombinedOutput(0xc820188000, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:424 +0x310
github.com/burke/zeus/go/processtree.(*SlaveNode).babysitRootProcess(0xc82008e0f0, 0xc820188000)
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:373 +0x99
created by github.com/burke/zeus/go/processtree.(*SlaveNode).doUnbootedState
/Users/drew/go-workspace/src/github.com/burke/zeus/go/processtree/slavenode.go:192 +0x425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment