Skip to content

Instantly share code, notes, and snippets.

@ryanuber
Created March 2, 2015 20:03
Show Gist options
  • Save ryanuber/1bb37c5bb34ef9c32ade to your computer and use it in GitHub Desktop.
Save ryanuber/1bb37c5bb34ef9c32ade to your computer and use it in GitHub Desktop.
panic: runtime error: index out of range
goroutine 46 [running]:
runtime.panic(0x7e53c0, 0xa68a5c)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/mitchellh/packer/post-processor/atlas.(*PostProcessor).PostProcess(0xc2080480c0, 0x7fbde02f5310, 0xc20824c160, 0x7fbde02f5358, 0xc20824c1c0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/post-processor/atlas/post-processor.go:183 +0xf41
github.com/mitchellh/packer/packer/rpc.(*PostProcessorServer).PostProcess(0xc20803dcc0, 0x0, 0xc208252100, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/post_processor.go:83 +0x2b8
reflect.Value.call(0x78b960, 0x7c38e8, 0x0, 0x130, 0x8356f0, 0x4, 0xc2080047e0, 0x3, 0x3, 0x0, ...)
/Users/mitchellh/code/3rdparty/go/src/pkg/reflect/value.go:563 +0x1210
reflect.Value.Call(0x78b960, 0x7c38e8, 0x0, 0x130, 0xc2080047e0, 0x3, 0x3, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/reflect/value.go:411 +0xd7
net/rpc.(*service).call(0xc208019270, 0xc208039740, 0xc208000d50, 0xc208046360, 0xc20803dfc0, 0x716080, 0xc2082520f0, 0x0, 0xa6, 0x6f6000, ...)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/server.go:382 +0x1c7
created by net/rpc.(*Server).ServeCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/server.go:453 +0x427
goroutine 16 [select]:
github.com/hashicorp/yamux.(*Stream).Read(0xc20803e000, 0xc208069000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(*Reader).fill(0xc208004540)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).ReadByte(0xc208004540, 0x82, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:199 +0x7e
github.com/hashicorp/go-msgpack/codec.(*ioDecReader).readn1(0xc20809a000, 0x160)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:90 +0x44
github.com/hashicorp/go-msgpack/codec.(*msgpackDecDriver).initReadNext(0xc20803dd40)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/msgpack.go:540 +0x48
github.com/hashicorp/go-msgpack/codec.(*Decoder).decode(0xc2080045a0, 0x6fa0e0, 0xc20803dd60)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:635 +0x58
github.com/hashicorp/go-msgpack/codec.(*Decoder).Decode(0xc2080045a0, 0x6fa0e0, 0xc20803dd60, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:630 +0x7c
github.com/hashicorp/go-msgpack/codec.(*rpcCodec).read(0xc208039880, 0x6fa0e0, 0xc20803dd60, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/rpc.go:88 +0xd6
github.com/hashicorp/go-msgpack/codec.(*goRpcCodec).ReadRequestHeader(0xc208039880, 0xc20803dd60, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/rpc.go:127 +0x5e
net/rpc.(*Server).readRequestHeader(0xc208039740, 0x7fbde02f0138, 0xc208039880, 0x0, 0x0, 0xc20803dd60, 0x905600, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/server.go:552 +0x9b
net/rpc.(*Server).readRequest(0xc208039740, 0x7fbde02f0138, 0xc208039880, 0xc208046360, 0xc20803dfc0, 0x716080, 0x0, 0x0, 0x0, 0x0, ...)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/server.go:519 +0xbe
net/rpc.(*Server).ServeCodec(0xc208039740, 0x7fbde02f0138, 0xc208039880)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/server.go:438 +0x69
github.com/mitchellh/packer/packer/rpc.(*Server).Serve(0xc20803dc80)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/server.go:149 +0x23a
main.main()
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/plugin/post-processor-atlas/main.go:14 +0xc5
goroutine 19 [finalizer wait, 11 minutes]:
runtime.park(0x412ce0, 0xa6cb58, 0xa6ad09)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xa6cb58, 0xa6ad09)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/proc.c:1445
goroutine 20 [syscall, 11 minutes]:
os/signal.loop()
/Users/mitchellh/code/3rdparty/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/Users/mitchellh/code/3rdparty/go/src/pkg/os/signal/signal_unix.go:27 +0x32
goroutine 22 [chan receive, 11 minutes]:
github.com/mitchellh/packer/packer/plugin.func·017()
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/server.go:92 +0x62
created by github.com/mitchellh/packer/packer/plugin.Server
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/server.go:96 +0xa8f
goroutine 23 [IO wait]:
net.runtime_pollWait(0x7fbde02ef9a0, 0x72, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc2080292c0, 0x72, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc2080292c0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208029260, 0xc208050000, 0x1000, 0x1000, 0x0, 0x7fbde02ee478, 0xb)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_unix.go:242 +0x34c
net.(*conn).Read(0xc20803a0b0, 0xc208050000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/net.go:122 +0xe7
bufio.(*Reader).fill(0xc208004360)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Read(0xc208004360, 0xc208000cd0, 0xc, 0xc, 0xc, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x7fbde02efc18, 0xc208004360, 0xc208000cd0, 0xc, 0xc, 0xc, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x7fbde02efc18, 0xc208004360, 0xc208000cd0, 0xc, 0xc, 0xc, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/io/io.go:307 +0x71
github.com/hashicorp/yamux.(*Session).recv(0xc208044500)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:332 +0xc9
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:93 +0x247
goroutine 24 [select]:
github.com/hashicorp/yamux.(*Session).send(0xc208044500)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:290 +0x496
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:94 +0x25f
goroutine 25 [select]:
github.com/hashicorp/yamux.(*Session).keepalive(0xc208044500)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:246 +0xc7
created by github.com/hashicorp/yamux.newSession
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:96 +0x289
goroutine 26 [select, 11 minutes]:
github.com/hashicorp/yamux.(*Session).AcceptStream(0xc208044500, 0xc200000000, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/session.go:154 +0x11f
github.com/mitchellh/packer/packer/rpc.(*muxBroker).Run(0xc20803dc60)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/mux_broker.go:126 +0x36
created by github.com/mitchellh/packer/packer/rpc.NewServer
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/server.go:43 +0x77
goroutine 47 [runnable]:
github.com/hashicorp/yamux.(*Stream).Read(0xc20814b900, 0xc208114000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/yamux/stream.go:123 +0x382
bufio.(*Reader).fill(0xc208004a80)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).ReadByte(0xc208004a80, 0xc20824c120, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:199 +0x7e
github.com/hashicorp/go-msgpack/codec.(*ioDecReader).readn1(0xc2081fc180, 0x6f0ea0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:90 +0x44
github.com/hashicorp/go-msgpack/codec.(*msgpackDecDriver).initReadNext(0xc20824c120)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/msgpack.go:540 +0x48
github.com/hashicorp/go-msgpack/codec.(*Decoder).decode(0xc208004c00, 0x6fa140, 0xc2081fc3f0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:635 +0x58
github.com/hashicorp/go-msgpack/codec.(*Decoder).Decode(0xc208004c00, 0x6fa140, 0xc2081fc3f0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/decode.go:630 +0x7c
github.com/hashicorp/go-msgpack/codec.(*rpcCodec).read(0xc2081c8240, 0x6fa140, 0xc2081fc3f0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/rpc.go:88 +0xd6
github.com/hashicorp/go-msgpack/codec.(*goRpcCodec).ReadResponseHeader(0xc2081c8240, 0xc2081fc3f0, 0x0, 0x0)
/Users/mitchellh/code/go/src/github.com/hashicorp/go-msgpack/codec/rpc.go:123 +0x5e
net/rpc.(*Client).input(0xc208004de0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:109 +0xda
created by net/rpc.NewClientWithCodec
/Users/mitchellh/code/3rdparty/go/src/pkg/net/rpc/client.go:201 +0x8b
goroutine 38 [select, 10 minutes]:
net/http.(*persistConn).readLoop(0xc2080424d0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:868 +0x829
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:600 +0x93f
goroutine 36 [sleep]:
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Packer crashed! This is always indicative of a bug within Packer.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Packer[1] so that we can fix this.
[1]: https://github.com/mitchellh/packer/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
time.Sleep(0x12a05f200)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/time.goc:39 +0x31
net.func·019()
/Users/mitchellh/code/3rdparty/go/src/pkg/net/dnsclient_unix.go:183 +0x56
created by net.loadConfig
/Users/mitchellh/code/3rdparty/go/src/pkg/net/dnsclient_unix.go:212 +0x153
goroutine 39 [select, 10 minutes]:
net/http.(*persistConn).writeLoop(0xc2080424d0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:601 +0x957
goroutine 51 [select]:
net/http.(*persistConn).readLoop(0xc2080426e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:868 +0x829
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:600 +0x93f
goroutine 52 [select]:
net/http.(*persistConn).writeLoop(0xc2080426e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:601 +0x957
goroutine 56 [IO wait]:
net.runtime_pollWait(0x7fbde02ef840, 0x72, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc208029170, 0x72, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc208029170, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208029110, 0xc20827d400, 0x400, 0x400, 0x0, 0x7fbde02ee478, 0xb)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/fd_unix.go:242 +0x34c
net.(*conn).Read(0xc20803a1a8, 0xc20827d400, 0x400, 0x400, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc2081bb6b0, 0x7fbde02f0730, 0xc20803a1a8, 0x5, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc2081b42c0, 0x17, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc2081b42c0, 0xc2081b7000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/crypto/tls/conn.go:901 +0x16a
net/http.noteEOFReader.Read(0x7fbde02f5148, 0xc2081b42c0, 0xc208043238, 0xc2081b7000, 0x1000, 0x1000, 0xa7fa40, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:1203 +0x72
net/http.(*noteEOFReader).Read(0xc2081fade0, 0xc2081b7000, 0x1000, 0x1000, 0xc2080467b0, 0x0, 0x0)
:124 +0xca
bufio.(*Reader).fill(0xc208261080)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Peek(0xc208261080, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mitchellh/code/3rdparty/go/src/pkg/bufio/bufio.go:132 +0x101
net/http.(*persistConn).readLoop(0xc2080431e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:782 +0x95
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:600 +0x93f
goroutine 57 [select]:
net/http.(*persistConn).writeLoop(0xc2080431e0)
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
/Users/mitchellh/code/3rdparty/go/src/pkg/net/http/transport.go:601 +0x957
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment