Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created February 10, 2018 17:01
Show Gist options
  • Save zzamboni/c1b2ab5a059741b691a09bb4b4e7f01d to your computer and use it in GitHub Desktop.
Save zzamboni/c1b2ab5a059741b691a09bb4b4e7f01d to your computer and use it in GitHub Desktop.
[~]─>
runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
github.com/elves/elvish/sys.DumpStack(0xc42004ad18, 0x1)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/sys/dumpstack.go:10 +0xa2
github.com/elves/elvish/program/shell.rescue()
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/shell.go:59 +0xd2
panic(0x14911c0, 0x17c5350)
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/panic.go:491 +0x283
github.com/elves/elvish/edit.(*editorRenderer).Render(0xc4202d3e80, 0xc4205226e0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/render.go:238 +0x2e0
github.com/elves/elvish/edit/ui.Render(0x1791360, 0xc4202d3e80, 0xcc, 0x17933e0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/ui/render.go:16 +0x10d
github.com/elves/elvish/edit.(*editor).refresh(0xc42019e400, 0x1ec0101, 0xc42050d320, 0xc42024b000)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/edit.go:265 +0x2f3
github.com/elves/elvish/edit.(*editor).CallFn(0xc42019e400, 0x1ec50e8, 0xc42050d320, 0xc42024b000, 0x1, 0x1)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/api.go:134 +0x2bc
github.com/elves/elvish/edit.callHooks(0xc42019e400, 0x179b640, 0xc42036f410, 0xc42024b000, 0x1, 0x1)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/hooks.go:49 +0x87
github.com/elves/elvish/edit.init.5.func1.2(0x0, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/hooks.go:28 +0xda
github.com/elves/elvish/edit.(*editor).finishReadLine(0xc42019e400, 0x0, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/edit.go:339 +0x255
github.com/elves/elvish/edit.(*editor).ReadLine.func1(0xc42019e400)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/edit.go:352 +0x2f
github.com/elves/elvish/edit.(*editor).ReadLine(0xc42019e400, 0x0, 0x0, 0x0, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/edit.go:512 +0x10b4
github.com/elves/elvish/program/shell.interact.func1(0x14a8560, 0xc42034fd60, 0x17, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/interact.go:41 +0x2f
github.com/elves/elvish/program/shell.interact(0xc42015e150, 0xc42014c040, 0x17)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/interact.go:51 +0x221
github.com/elves/elvish/program/shell.(*Shell).Main(0xc420144d00, 0xc420010180, 0x0, 0x0, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/shell.go:47 +0x19a
github.com/elves/elvish/program.Main(0xc420010180, 0x1, 0x1, 0x0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/program.go:118 +0x18a
main.main()
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/main.go:14 +0x45
goroutine 5 [syscall]:
os/signal.signal_recv(0x1796ca0)
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/sigqueue.go:131 +0xa7
os/signal.loop()
/usr/local/Cellar/go/1.9.4/libexec/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.0
/usr/local/Cellar/go/1.9.4/libexec/src/os/signal/signal_unix.go:28 +0x41
goroutine 18 [chan receive]:
github.com/elves/elvish/eval.init.11.func1()
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/eval/port.go:58 +0x67
created by github.com/elves/elvish/eval.init.11
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/eval/port.go:57 +0x49
goroutine 21 [runnable]:
syscall.Syscall(0x6, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/syscall/asm_darwin_amd64.s:16 +0x5
syscall.Close(0x5, 0xc420265a40, 0x1085acd)
/usr/local/Cellar/go/1.9.4/libexec/src/syscall/zsyscall_darwin_amd64.go:397 +0x4a
internal/poll.(*FD).destroy(0xc42014a280, 0xc420136601, 0xc420265a01)
/usr/local/Cellar/go/1.9.4/libexec/src/internal/poll/fd_unix.go:63 +0x4a
internal/poll.(*FD).readUnlock(0xc42014a280)
/usr/local/Cellar/go/1.9.4/libexec/src/internal/poll/fd_mutex.go:230 +0x53
internal/poll.(*FD).Read(0xc42014a280, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x17911e0, 0xc420010100)
/usr/local/Cellar/go/1.9.4/libexec/src/internal/poll/fd_unix.go:132 +0x1bc
net.(*netFD).Read(0xc42014a280, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/net/fd_unix.go:202 +0x52
net.(*conn).Read(0xc420150058, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/net/net.go:176 +0x6d
bufio.(*Reader).Read(0xc42015c1e0, 0xc4201468e0, 0x1, 0x9, 0xc420265ca8, 0x102b768, 0x15420d0)
/usr/local/Cellar/go/1.9.4/libexec/src/bufio/bufio.go:213 +0x30b
io.ReadAtLeast(0x1790ce0, 0xc42015c1e0, 0xc4201468e0, 0x1, 0x9, 0x1, 0xc42001c000, 0xc4205708c0, 0x182)
/usr/local/Cellar/go/1.9.4/libexec/src/io/io.go:309 +0x86
io.ReadFull(0x1790ce0, 0xc42015c1e0, 0xc4201468e0, 0x1, 0x9, 0xc420265d10, 0x100612b, 0x3)
/usr/local/Cellar/go/1.9.4/libexec/src/io/io.go:327 +0x58
encoding/gob.decodeUintReader(0x1790ce0, 0xc42015c1e0, 0xc4201468e0, 0x9, 0x9, 0xc420265d88, 0x102b0a9, 0xc400000008, 0xc42005b780)
/usr/local/Cellar/go/1.9.4/libexec/src/encoding/gob/decode.go:120 +0x63
encoding/gob.(*Decoder).recvMessage(0xc42014a480, 0xc420265da0)
/usr/local/Cellar/go/1.9.4/libexec/src/encoding/gob/decoder.go:80 +0x57
encoding/gob.(*Decoder).decodeTypeSequence(0xc42014a480, 0x1543700, 0xc42014a480)
/usr/local/Cellar/go/1.9.4/libexec/src/encoding/gob/decoder.go:144 +0x14c
encoding/gob.(*Decoder).DecodeValue(0xc42014a480, 0x1453100, 0xc420132210, 0x16, 0x0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/encoding/gob/decoder.go:212 +0xe6
encoding/gob.(*Decoder).Decode(0xc42014a480, 0x1453100, 0xc420132210, 0x0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/encoding/gob/decoder.go:189 +0x16d
net/rpc.(*gobClientCodec).ReadResponseHeader(0xc420148b70, 0xc420132210, 0xc4205708c0, 0x0)
/usr/local/Cellar/go/1.9.4/libexec/src/net/rpc/client.go:223 +0x45
net/rpc.(*Client).input(0xc42015c2a0)
/usr/local/Cellar/go/1.9.4/libexec/src/net/rpc/client.go:109 +0xb5
created by net/rpc.NewClientWithCodec
/usr/local/Cellar/go/1.9.4/libexec/src/net/rpc/client.go:201 +0xc5
goroutine 22 [select, locked to thread]:
runtime.gopark(0x1543620, 0x0, 0x151dbca, 0x6, 0x18, 0x1)
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/proc.go:287 +0x12c
runtime.selectgo(0xc42003af50, 0xc420164180)
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/select.go:395 +0x1149
runtime.ensureSigM.func1()
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/signal_unix.go:511 +0x1fe
runtime.goexit()
/usr/local/Cellar/go/1.9.4/libexec/src/runtime/asm_amd64.s:2337 +0x1
goroutine 23 [chan receive]:
github.com/elves/elvish/program/shell.handleSignals.func1(0xc4201640c0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/shell.go:69 +0xdf
created by github.com/elves/elvish/program/shell.handleSignals
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/program/shell/shell.go:68 +0x8a
goroutine 1934 [chan send]:
github.com/elves/elvish/edit/prompt.(*Updater).Update.func1(0x1795560, 0xc42019e400, 0xc420642810, 0xc4204e6120)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/prompt/prompt.go:158 +0x195
created by github.com/elves/elvish/edit/prompt.(*Updater).Update
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/prompt/prompt.go:153 +0x7f
goroutine 1933 [chan send]:
github.com/elves/elvish/edit/prompt.(*Updater).Update.func1(0x1795560, 0xc42019e400, 0xc4206427e0, 0xc4204e60c0)
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/prompt/prompt.go:158 +0x195
created by github.com/elves/elvish/edit/prompt.(*Updater).Update
/private/tmp/elvish-20180210-85656-1lgfedb/src/github.com/elves/elvish/edit/prompt/prompt.go:153 +0x7f
execing recovery shell /bin/sh
sh-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment