Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created March 29, 2018 18:44
Show Gist options
  • Save zzamboni/8584ad18fa1844063381ec4a846ade5b to your computer and use it in GitHub Desktop.
Save zzamboni/8584ad18fa1844063381ec4a846ade5b to your computer and use it in GitHub Desktop.
runtime error: index out of range
goroutine 1 [running]:
github.com/elves/elvish/sys.DumpStack(0xc42060edd0, 0x1)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/sys/dumpstack.go:10 +0xa2
github.com/elves/elvish/program/shell.rescue()
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/shell.go:59 +0xd2
panic(0x1498f40, 0x17d73f0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/panic.go:491 +0x283
github.com/elves/elvish/eval.catch(0xc420349710, 0xc4201cde60)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/eval/frame.go:190 +0x2c9
panic(0x1498f40, 0x17d73f0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/panic.go:491 +0x283
github.com/elves/elvish/edit.(*narrowState).accept(0xc420153390, 0xc4201b8000)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/narrow.go:301 +0x70
github.com/elves/elvish/edit.initNarrow.func9()
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/narrow.go:41 +0x3e
reflect.Value.call(0x14671e0, 0xc42018f9e0, 0x13, 0x1525579, 0x4, 0x0, 0x0, 0x0, 0x0, 0x14671e0, ...)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/reflect/value.go:434 +0x906
reflect.Value.Call(0x14671e0, 0xc42018f9e0, 0x13, 0x0, 0x0, 0x0, 0x0, 0xc4203494a0, 0x108c37b)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/reflect/value.go:302 +0xa4
github.com/elves/elvish/eval.(*BuiltinFn).Call(0xc4201cac30, 0xc4201cde60, 0x0, 0x0, 0x0, 0xc42013e2d0, 0xc420150fc0, 0x17a3420)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/eval/builtin_fn.go:184 +0x5c4
github.com/elves/elvish/eval.(*Frame).Call(0xc4201cde60, 0x17a3420, 0xc4201cac30, 0x0, 0x0, 0x0, 0xc42013e2d0, 0x0, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/eval/frame.go:143 +0xd1
github.com/elves/elvish/edit.(*editor).CallFn(0xc4201b8000, 0x17a3420, 0xc4201cac30, 0x0, 0x0, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/api.go:115 +0x295
github.com/elves/elvish/edit.(*editor).ReadLine(0xc4201b8000, 0x0, 0x0, 0x0, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/edit.go:497 +0xaae
github.com/elves/elvish/program/shell.interact.func1(0xc42019e000, 0xc42064a200, 0x0, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/interact.go:41 +0x2f
github.com/elves/elvish/program/shell.interact(0xc42019e000, 0xc420172020, 0x17)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/interact.go:51 +0x221
github.com/elves/elvish/program/shell.(*Shell).Main(0xc420154cc0, 0xc420010180, 0x0, 0x0, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/shell.go:47 +0x19a
github.com/elves/elvish/program.Main(0xc420010180, 0x1, 0x1, 0x0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/program.go:118 +0x18a
main.main()
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/main.go:14 +0x45
goroutine 5 [syscall]:
os/signal.signal_recv(0x17a8c20)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/sigqueue.go:131 +0xa7
os/signal.loop()
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.0
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/os/signal/signal_unix.go:28 +0x41
goroutine 18 [chan receive]:
github.com/elves/elvish/eval.init.12.func1()
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/eval/port.go:49 +0x67
created by github.com/elves/elvish/eval.init.12
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/eval/port.go:48 +0x49
goroutine 19 [runnable]:
syscall.Syscall(0x6, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/syscall/asm_darwin_amd64.s:16 +0x5
syscall.Close(0x5, 0xc42004ba40, 0x108556d)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/syscall/zsyscall_darwin_amd64.go:397 +0x4a
internal/poll.(*FD).destroy(0xc420144200, 0xc420062301, 0xc42004ba01)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/internal/poll/fd_unix.go:62 +0x4a
internal/poll.(*FD).readUnlock(0xc420144200)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/internal/poll/fd_mutex.go:230 +0x53
internal/poll.(*FD).Read(0xc420144200, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x17a31e0, 0xc420010100)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/internal/poll/fd_unix.go:131 +0x1bc
net.(*netFD).Read(0xc420144200, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/net/fd_unix.go:202 +0x52
net.(*conn).Read(0xc420142078, 0xc4201a1000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/net/net.go:176 +0x6d
bufio.(*Reader).Read(0xc42015a120, 0xc42013a990, 0x1, 0x9, 0xc42004bca8, 0x102b488, 0x154bda0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/bufio/bufio.go:213 +0x30b
io.ReadAtLeast(0x17a2ce0, 0xc42015a120, 0xc42013a990, 0x1, 0x9, 0x1, 0xc420022000, 0xc42072b198, 0x182)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/io/io.go:309 +0x86
io.ReadFull(0x17a2ce0, 0xc42015a120, 0xc42013a990, 0x1, 0x9, 0xc42004bd10, 0x10062ab, 0x3)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/io/io.go:327 +0x58
encoding/gob.decodeUintReader(0x17a2ce0, 0xc42015a120, 0xc42013a990, 0x9, 0x9, 0xc42004bd88, 0x102adc9, 0xc400000008, 0xc42005a080)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/encoding/gob/decode.go:120 +0x63
encoding/gob.(*Decoder).recvMessage(0xc420144400, 0xc42004bda0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/encoding/gob/decoder.go:80 +0x57
encoding/gob.(*Decoder).decodeTypeSequence(0xc420144400, 0x154d400, 0xc420144400)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/encoding/gob/decoder.go:144 +0x14c
encoding/gob.(*Decoder).DecodeValue(0xc420144400, 0x145a4e0, 0xc420150030, 0x16, 0x0, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/encoding/gob/decoder.go:212 +0xe6
encoding/gob.(*Decoder).Decode(0xc420144400, 0x145a4e0, 0xc420150030, 0x0, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/encoding/gob/decoder.go:189 +0x16d
net/rpc.(*gobClientCodec).ReadResponseHeader(0xc42013ec90, 0xc420150030, 0xc42072b198, 0x0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/net/rpc/client.go:223 +0x45
net/rpc.(*Client).input(0xc42015a1e0)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/net/rpc/client.go:109 +0xb5
created by net/rpc.NewClientWithCodec
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/net/rpc/client.go:201 +0xc5
goroutine 20 [select, locked to thread]:
runtime.gopark(0x154d318, 0x0, 0x15274ce, 0x6, 0x18, 0x1)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/proc.go:277 +0x12c
runtime.selectgo(0xc42003bf50, 0xc420162180)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/select.go:395 +0x1138
runtime.ensureSigM.func1()
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/signal_unix.go:511 +0x1fe
runtime.goexit()
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/runtime/asm_amd64.s:2337 +0x1
goroutine 21 [chan receive]:
github.com/elves/elvish/program/shell.handleSignals.func1(0xc4201620c0)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/shell.go:69 +0xdf
created by github.com/elves/elvish/program/shell.handleSignals
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/program/shell/shell.go:68 +0x8a
goroutine 22 [runnable]:
bufio.(*Reader).ReadBytes(0xc42003cf60, 0xa, 0x0, 0xc420029e88, 0x1044657, 0x1000, 0x146e360)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/bufio/bufio.go:420 +0xcf
bufio.(*Reader).ReadString(0xc420029f60, 0x100a, 0x1000, 0xc4201ba000, 0x1000, 0x1000)
/nix/store/w7q9g72by4dzc1z9ain17cfq1npk9ln7-go-1.9.1/share/go/src/bufio/bufio.go:456 +0x38
github.com/elves/elvish/edit.NewEditor.func1(0xc4201422b0, 0xc4201929f0, 0xc4201b8000)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/edit.go:121 +0x1d6
created by github.com/elves/elvish/edit.NewEditor
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/edit.go:118 +0x2ee
goroutine 24 [chan receive]:
github.com/elves/elvish/edit/prompt.(*prompt).loop(0xc420144500)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/prompt/prompt.go:75 +0xd1
created by github.com/elves/elvish/edit/prompt.makePrompt
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/prompt/prompt.go:68 +0x1b4
goroutine 25 [chan receive]:
github.com/elves/elvish/edit/prompt.(*prompt).loop(0xc420144580)
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/prompt/prompt.go:75 +0xd1
created by github.com/elves/elvish/edit/prompt.makePrompt
/Users/taazadi1/Personal/devel/go/src/github.com/elves/elvish/edit/prompt/prompt.go:68 +0x1b4
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