Skip to content

Instantly share code, notes, and snippets.

@dt
Created August 12, 2025 22:14
Show Gist options
  • Save dt/d15e92231dc3bff35c375cf609c2e090 to your computer and use it in GitHub Desktop.
Save dt/d15e92231dc3bff35c375cf609c2e090 to your computer and use it in GitHub Desktop.
debug=4 example
goroutine profile: total 545
1 @ 0x100df3960 0x100e31b9c 0x101590bfc 0x100e387c4
# goroutine: 37
# created by: 12
# created at: os/signal.Notify.func1.1, GOROOT/src/os/signal/signal.go:152 +0x101590cf8
# state: syscall
# waiting: 92 minutes
# 0x100e31b9b os/signal.signal_recv+0x2b GOROOT/src/runtime/sigqueue.go:149
# 0x101590bfb os/signal.loop+0x1b GOROOT/src/os/signal/signal_unix.go:23
1 @ 0x100e2e200 0x100e2e201 0x10152b020 0x10151c1b4 0x10151923c 0x105526454 0x105526d38 0x105737388 0x1011e8198 0x105738b8c 0x1011e9d24 0x1011e8198 0x1057fe600 0x1011e8198 0x10589c730 0x1058ba6a4 0x1058b4450 0x1011e8198 0x101206c7c 0x1011e693c 0x100e387c4
# goroutine: 116097
# created by: 520
# created at: net/http.(*Server).Serve, GOROOT/src/net/http/server.go:3454 +0x1011eb8c8
# state: running
# 0x10152b01f runtime/pprof.writeRuntimeProfile[...]+0x7f GOROOT/src/runtime/pprof/pprof.go:912
# 0x10151c1b3 runtime/pprof.writeGoroutine+0x63 GOROOT/src/runtime/pprof/pprof.go:801
# 0x10151923b runtime/pprof.(*Profile).WriteTo+0x14b GOROOT/src/runtime/pprof/pprof.go:377
# 0x105526453 net/http/pprof.handler.ServeHTTP+0x443 GOROOT/src/net/http/pprof/pprof.go:272
# 0x105526d37 net/http/pprof.Index+0xc7 GOROOT/src/net/http/pprof/pprof.go:389
# 0x105737387 github.com/cockroachdb/cockroach/pkg/server/debug.setupProcessWideRoutes.setupProcessWideRoutes.func2.func6+0x57 pkg/server/debug/server.go:84
# 0x1011e8197 net/http.HandlerFunc.ServeHTTP+0x37 GOROOT/src/net/http/server.go:2294
# 0x105738b8b github.com/cockroachdb/cockroach/pkg/server/debug.(*Server).ServeHTTP+0x4b pkg/server/debug/server.go:309
# 0x1011e9d23 net/http.(*ServeMux).ServeHTTP+0x1b3 GOROOT/src/net/http/server.go:2822
# 0x1011e8197 net/http.HandlerFunc.ServeHTTP+0x37 GOROOT/src/net/http/server.go:2294
# 0x1057fe5ff github.com/NYTimes/gziphandler.NewGzipLevelAndMinSize.func1.1+0x1bf external/com_github_nytimes_gziphandler/gzip.go:253
# 0x1011e8197 net/http.HandlerFunc.ServeHTTP+0x37 GOROOT/src/net/http/server.go:2294
# 0x10589c72f github.com/cockroachdb/cockroach/pkg/server.(*nodeProxy).nodeProxyHandler+0xaf node_http_router.go:58
# 0x1058ba6a3 github.com/cockroachdb/cockroach/pkg/server.(*httpServer).baseHandler+0x213 server_http.go:405
# 0x1058b444f github.com/cockroachdb/cockroach/pkg/server.(*serverController).httpMux+0x7ff server_controller_http.go:153
# 0x1011e8197 net/http.HandlerFunc.ServeHTTP+0x37 GOROOT/src/net/http/server.go:2294
# 0x101206c7b net/http.serverHandler.ServeHTTP+0xbb GOROOT/src/net/http/server.go:3301
# 0x1011e693b net/http.(*conn).serve+0x52b GOROOT/src/net/http/server.go:2102
1 @ 0x100e2f4c8 0x100dc6a5c 0x100dc65f4 0x102326714 0x101c31658 0x100e387c4
# goroutine: 519
# created by: 516
# created at: github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx, pkg/util/stop/stopper.go:436 +0x101c314f4
# state: chan receive
# waiting: 92 minutes
# 0x102326713 github.com/cockroachdb/cockroach/pkg/util/netutil.MakeHTTPServer.func2+0x53 pkg/util/netutil/net.go:101
# 0x101c31657 github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func1+0x87 pkg/util/stop/stopper.go:438
1 @ 0x100e2f4c8 0x100dc6a5c 0x100dc65f4 0x102326c3c 0x101c31658 0x100e387c4
# goroutine: 2473
# created by: 516
# created at: github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx, pkg/util/stop/stopper.go:436 +0x101c314f4
# state: chan receive
# waiting: 92 minutes
# 0x102326c3b github.com/cockroachdb/cockroach/pkg/util/netutil.MakeTCPServer.func1+0x4b pkg/util/netutil/net.go:125
# 0x101c31657 github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func1+0x87 pkg/util/stop/stopper.go:438
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment