Skip to content

Instantly share code, notes, and snippets.

View mcluseau's full-sized avatar

Mikaël Cluseau mcluseau

  • Novit.io
  • Nantes, France
  • 20:02 (UTC +01:00)
View GitHub Profile
// update of
// https://groups.google.com/d/msg/golang-nuts/UwH5CreZPe4/xxI8gFsVBAAJ
// in reaction to
// https://go.googlesource.com/proposal/+/master/design/go2draft-error-handling-overview.md
/*
Instead of "when", use the proposed syntax to reduce ambiguity and allow more complex use cases.
It may be nice to be able to type handlers too, like `handle err error { ... }`
*/
time="2017-02-15T05:18:24.892959589Z" level=info msg="=== BEGIN goroutine stack dump ===
goroutine 9 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc820254e40)
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f
goroutine 1 [chan receive, 7109 minutes]:
time="2017-02-15T04:54:07.029367381Z" level=info msg="=== BEGIN goroutine stack dump ===
goroutine 36 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc82045e480)
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f
goroutine 1 [chan receive, 7002 minutes]:
time="2017-02-10T23:08:51.989589236Z"
level=info
msg="
=== BEGIN goroutine stack dump ===
goroutine 36 [running]:
github.com/docker/docker/pkg/signal.DumpStacks()
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/pkg/signal/trap.go:74 +0x98
github.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc82045e480)
\t/build/amd64-usr/var/tmp/portage/app-emulation/docker-1.12.6-r1/work/docker-1.12.6/.gopath/src/github.com/docker/docker/daemon/debugtrap_unix.go:18 +0x5e
created by github.com/docker/docker/daemon.setupDumpStackTrap