Skip to content

Instantly share code, notes, and snippets.

@stevvooe
Last active August 29, 2015 14:13
Show Gist options
  • Save stevvooe/12e63e5f902b5ba7ec01 to your computer and use it in GitHub Desktop.
Save stevvooe/12e63e5f902b5ba7ec01 to your computer and use it in GitHub Desktop.
Full panic trace - #10228
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x78154a]
goroutine 92 [running]:
bufio.(*Writer).flush(0xc208208900, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:530 +0xda
bufio.(*Writer).Flush(0xc208208900, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:519 +0x3a
net/http.(*response).Flush(0xc2085bfae0)
/usr/local/go/src/net/http/server.go:1047 +0x4c
github.com/docker/docker/utils.(*WriteFlusher).Write(0xc2089f5350, 0xc208ccc140, 0xce, 0x135, 0xce, 0x0, 0x0)
/go/src/github.com/docker/docker/utils/utils.go:266 +0x140
github.com/docker/docker/engine.(*Output).Write(0xc20860ab80, 0xc208ccc140, 0xce, 0x135, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/engine/streams.go:90 +0x17f
github.com/docker/docker/utils.(*WriteFlusher).Write(0xc208a05890, 0xc208ccc140, 0xce, 0x135, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/utils/utils.go:265 +0xf2
github.com/docker/docker/utils.(*progressReader).Close(0xc208832500, 0x0, 0x0)
/go/src/github.com/docker/docker/utils/progressreader.go:42 +0xf1
net/http.(*Request).closeBody(0xc2087e4750)
/usr/local/go/src/net/http/request.go:919 +0x42
net/http.(*persistConn).writeLoop(0xc20866c160)
/usr/local/go/src/net/http/transport.go:957 +0x307
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:661 +0xcbc
goroutine 1 [chan receive, 2 minutes]:
github.com/docker/docker/api/server.ServeApi(0xc208032400, 0x7fe35dbc2e60)
/go/src/github.com/docker/docker/api/server/server.go:1639 +0x5a1
github.com/docker/docker/engine.(*Job).Run(0xc208032400, 0x0, 0x0)
/go/src/github.com/docker/docker/engine/job.go:83 +0x936
main.mainDaemon()
/go/src/github.com/docker/docker/docker/daemon.go:93 +0x5c8
main.main()
/go/src/github.com/docker/docker/docker/docker.go:71 +0x49d
goroutine 5 [syscall, 2 minutes]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
goroutine 17 [syscall, 2 minutes, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1
goroutine 8 [chan receive, 2 minutes]:
github.com/docker/docker/pkg/signal.func·002()
/go/src/github.com/docker/docker/pkg/signal/trap.go:30 +0x8f
created by github.com/docker/docker/pkg/signal.Trap
/go/src/github.com/docker/docker/pkg/signal/trap.go:53 +0x357
goroutine 10 [IO wait, 1 minutes]:
net.(*pollDesc).Wait(0xc208192370, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc208192370, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).accept(0xc208192310, 0x0, 0x7fe35dbc0e88, 0xc208205850)
/usr/local/go/src/net/fd_unix.go:419 +0x40b
net.(*UnixListener).AcceptUnix(0xc2081b4e40, 0xc208207ea0, 0x0, 0x0)
/usr/local/go/src/net/unixsock_posix.go:282 +0x56
net.(*UnixListener).Accept(0xc2081b4e40, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/unixsock_posix.go:293 +0x4c
github.com/docker/docker/pkg/listenbuffer.(*defaultListener).Accept(0xc2081b4e60, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/listenbuffer/buffer.go:41 +0x67
net/http.(*Server).Serve(0xc2080ceae0, 0x7fe35dbc8780, 0xc2081b4e60, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1728 +0x92
github.com/docker/docker/api/server.(*HttpServer).Serve(0xc2081b51c0, 0x0, 0x0)
/go/src/github.com/docker/docker/api/server/server.go:51 +0x4d
github.com/docker/docker/api/server.func·006()
/go/src/github.com/docker/docker/api/server/server.go:1634 +0x2b8
created by github.com/docker/docker/api/server.ServeApi
/go/src/github.com/docker/docker/api/server/server.go:1635 +0x526
goroutine 34 [chan receive, 1 minutes]:
database/sql.(*DB).connectionOpener(0xc208198820)
/usr/local/go/src/database/sql/sql.go:589 +0x4c
created by database/sql.Open
/usr/local/go/src/database/sql/sql.go:452 +0x31c
goroutine 35 [syscall, 1 minutes]:
syscall.Syscall(0x0, 0x8, 0xc208237eb8, 0x10000, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:21 +0x5
syscall.read(0x8, 0xc208237eb8, 0x10000, 0x10000, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:867 +0x6e
syscall.Read(0x8, 0xc208237eb8, 0x10000, 0x10000, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_unix.go:136 +0x58
github.com/go-fsnotify/fsnotify.(*Watcher).readEvents(0xc208208600)
/go/src/github.com/docker/docker/vendor/src/github.com/go-fsnotify/fsnotify/inotify.go:144 +0x12b
created by github.com/go-fsnotify/fsnotify.NewWatcher
/go/src/github.com/docker/docker/vendor/src/github.com/go-fsnotify/fsnotify/inotify.go:47 +0x37c
goroutine 36 [select, 1 minutes]:
github.com/docker/docker/daemon.func·012()
/go/src/github.com/docker/docker/daemon/daemon.go:427 +0x8bd
created by github.com/docker/docker/daemon.(*Daemon).setupResolvconfWatcher
/go/src/github.com/docker/docker/daemon/daemon.go:460 +0x131
goroutine 38 [IO wait]:
net.(*pollDesc).Wait(0xc20816afb0, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc20816afb0, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).Read(0xc20816af50, 0xc2081d4000, 0x1000, 0x1000, 0x0, 0x7fe35dbc0e88, 0xc208a21300)
/usr/local/go/src/net/fd_unix.go:242 +0x40f
net.(*conn).Read(0xc20802eec8, 0xc2081d4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:121 +0xdc
net/http.(*liveSwitchReader).Read(0xc208199c68, 0xc2081d4000, 0x1000, 0x1000, 0xc0000c20894e770, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:214 +0xab
io.(*LimitedReader).Read(0xc208207ea0, 0xc2081d4000, 0x1000, 0x1000, 0xc20816e800, 0x0, 0x0)
/usr/local/go/src/io/io.go:408 +0xce
bufio.(*Reader).fill(0xc20810a600)
/usr/local/go/src/bufio/bufio.go:97 +0x1ce
bufio.(*Reader).ReadSlice(0xc20810a600, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:295 +0x257
bufio.(*Reader).ReadLine(0xc20810a600, 0x0, 0x0, 0x0, 0xc207f87b00, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:324 +0x62
net/textproto.(*Reader).readLineSlice(0xc2087846f0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/textproto/reader.go:55 +0x9e
net/textproto.(*Reader).ReadLine(0xc2087846f0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/textproto/reader.go:36 +0x4f
net/http.ReadRequest(0xc20810a600, 0xc2086768f0, 0x0, 0x0)
/usr/local/go/src/net/http/request.go:598 +0xcb
net/http.(*conn).readRequest(0xc208199c20, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:586 +0x26f
net/http.(*conn).serve(0xc208199c20)
/usr/local/go/src/net/http/server.go:1162 +0x69e
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
goroutine 65 [semacquire, 1 minutes]:
sync.(*Cond).Wait(0xc208336428)
/usr/local/go/src/sync/cond.go:62 +0x9e
io.(*pipe).write(0xc2083363c0, 0xc208a7a000, 0x400, 0x8000, 0x0, 0x0, 0x0)
/usr/local/go/src/io/pipe.go:94 +0x244
io.(*PipeWriter).Write(0xc20872a150, 0xc208a7a000, 0x400, 0x8000, 0xc2089be630, 0x0, 0x0)
/usr/local/go/src/io/pipe.go:161 +0x5b
bufio.(*Writer).flush(0xc208446780, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:530 +0xe0
bufio.(*Writer).Flush(0xc208446780, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:519 +0x3a
github.com/docker/docker/pkg/pools.func·004(0x0, 0x0)
/go/src/github.com/docker/docker/pkg/pools/pools.go:104 +0x53
github.com/docker/docker/pkg/ioutils.(*writeCloserWrapper).Close(0xc2088d3c00, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/ioutils/writers.go:31 +0x3a
github.com/docker/docker/pkg/archive.func·002()
/go/src/github.com/docker/docker/pkg/archive/archive.go:472 +0x67b
created by github.com/docker/docker/pkg/archive.TarWithOptions
/go/src/github.com/docker/docker/pkg/archive/archive.go:478 +0x2a7
goroutine 61 [select, 1 minutes]:
net.func·019()
/usr/local/go/src/net/dnsclient_unix.go:241 +0x2f4
created by net.loadConfig
/usr/local/go/src/net/dnsclient_unix.go:269 +0x20c
goroutine 77 [semacquire]:
sync.(*Cond).Wait(0xc2083365a8)
/usr/local/go/src/sync/cond.go:62 +0x9e
io.(*pipe).write(0xc208336540, 0xc208be2000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
/usr/local/go/src/io/pipe.go:94 +0x244
io.(*PipeWriter).Write(0xc20872a530, 0xc208be2000, 0x8000, 0x8000, 0x5fdd55, 0x0, 0x0)
/usr/local/go/src/io/pipe.go:161 +0x5b
bufio.(*Writer).flush(0xc208447980, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:530 +0xe0
bufio.(*Writer).Write(0xc208447980, 0xc208ab6000, 0x6940, 0x8000, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:566 +0x256
github.com/docker/docker/pkg/ioutils.(*writeCloserWrapper).Write(0xc208cb8100, 0xc208ab6000, 0x6940, 0x8000, 0x5fddb4, 0x0, 0x0)
<autogenerated>:7 +0x89
github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar.(*Writer).Write(0xc2082f7680, 0xc208ab6000, 0x6940, 0x8000, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar/writer.go:366 +0xe5
bufio.(*Writer).flush(0xc208447b80, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:530 +0xe0
bufio.(*Writer).Flush(0xc208447b80, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:519 +0x3a
github.com/docker/docker/pkg/archive.(*tarAppender).addTarFile(0xc208cb8600, 0xc20821b710, 0x85, 0xc20821b76b, 0x2a, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/archive/archive.go:242 +0x8ba
github.com/docker/docker/pkg/archive.func·001(0xc20821b710, 0x85, 0x7fe35dbc14d8, 0xc208c27770, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/archive/archive.go:461 +0x64a
path/filepath.walk(0xc20821b710, 0x85, 0x7fe35dbc14d8, 0xc208c27770, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:347 +0x91
path/filepath.walk(0xc2081fee00, 0x7d, 0x7fe35dbc14d8, 0xc208c27630, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2081fe980, 0x78, 0x7fe35dbc14d8, 0xc208c27590, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2083c5c80, 0x73, 0x7fe35dbc14d8, 0xc208c72b90, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2086d0540, 0x6e, 0x7fe35dbc14d8, 0xc2084bca00, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2086d0000, 0x67, 0x7fe35dbc14d8, 0xc2084bc8c0, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2089ae9a0, 0x62, 0x7fe35dbc14d8, 0xc208b81630, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc2082926c0, 0x5e, 0x7fe35dbc14d8, 0xc208bea0f0, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.walk(0xc208293e00, 0x5a, 0x7fe35dbc14d8, 0xc208cb45f0, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:372 +0x51d
path/filepath.Walk(0xc208293e00, 0x5a, 0xc208103fa0, 0x0, 0x0)
/usr/local/go/src/path/filepath/path.go:394 +0xf2
github.com/docker/docker/pkg/archive.func·002()
/go/src/github.com/docker/docker/pkg/archive/archive.go:465 +0x52b
created by github.com/docker/docker/pkg/archive.TarWithOptions
/go/src/github.com/docker/docker/pkg/archive/archive.go:478 +0x2a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment