goroutine 325383 [running]: runtime/pprof.writeGoroutineStacks({0x12f3f20, 0xc00045c000}) /usr/local/go/src/runtime/pprof/pprof.go:743 +0x6a runtime/pprof.writeGoroutine({0x12f3f20?, 0xc00045c000?}, 0x41a218?) /usr/local/go/src/runtime/pprof/pprof.go:732 +0x25 runtime/pprof.(*Profile).WriteTo(0x1a63480?, {0x12f3f20?, 0xc00045c000?}, 0xc?) /usr/local/go/src/runtime/pprof/pprof.go:369 +0x14b net/http/pprof.handler.ServeHTTP({0x1060f98, 0x9}, {0x12fba88, 0xc00045c000}, 0xc000158480) /usr/local/go/src/net/http/pprof/pprof.go:267 +0x52f github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc00035a720, {0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:459 +0x2e6 net/http.HandlerFunc.ServeHTTP(0xc000ab3768?, {0x12fba88?, 0xc00045c000?}, 0x7?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/go-chi/chi/v5/middleware.NoCache.func1({0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/middleware/nocache.go:55 +0x28d net/http.HandlerFunc.ServeHTTP(0xc0001028a0?, {0x12fba88?, 0xc00045c000?}, 0xc000ab3830?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc00035a720, {0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:73 +0x32f github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:327 +0x1bb net/http.HandlerFunc.ServeHTTP(0xc00002a000?, {0x12fba88?, 0xc00045c000?}, 0xc001b62154?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc00035a6c0, {0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:459 +0x2e6 net/http.HandlerFunc.ServeHTTP(0xc000372320?, {0x12fba88?, 0xc00045c000?}, 0xc000158480?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x12fba88, 0xc00045c000}, 0xc000158480) /go/pkg/mod/github.com/go-chi/cors@v1.2.1/cors.go:228 +0x17e net/http.HandlerFunc.ServeHTTP(0xfb9c60?, {0x12fba88?, 0xc00045c000?}, 0x10?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/0xERR0R/blocky/server.secureHeader.func1({0x12fba88, 0xc00045c000}, 0xc000158480) /go/src/server/server_endpoints.go:44 +0x30c net/http.HandlerFunc.ServeHTTP(0x12fdf80?, {0x12fba88?, 0xc00045c000?}, 0x1a5c8b0?) /usr/local/go/src/net/http/server.go:2166 +0x29 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc00035a6c0, {0x12fba88, 0xc00045c000}, 0xc000158240) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:90 +0x2ee net/http.serverHandler.ServeHTTP({0xc000e70ff0?}, {0x12fba88?, 0xc00045c000?}, 0x6?) /usr/local/go/src/net/http/server.go:3137 +0x8e net/http.(*conn).serve(0xc000171710, {0x12fdf48, 0xc0005304b0}) /usr/local/go/src/net/http/server.go:2039 +0x5e8 created by net/http.(*Server).Serve in goroutine 247 /usr/local/go/src/net/http/server.go:3285 +0x4b4 goroutine 1 [chan receive, 34077 minutes]: github.com/0xERR0R/blocky/cmd.startServer(0x0?, {0x0?, 0x0?, 0x0?}) /go/src/cmd/serve.go:77 +0x38b github.com/0xERR0R/blocky/cmd.NewRootCommand.func1(0xc0000b6e00?, {0x1ae8160?, 0x4?, 0x105aac0?}) /go/src/cmd/root.go:43 +0xab github.com/spf13/cobra.(*Command).execute(0xc0000f7208, {0xc00003e150, 0x0, 0x0}) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0xaca github.com/spf13/cobra.(*Command).ExecuteC(0xc0000f7208) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 github.com/0xERR0R/blocky/cmd.Execute() /go/src/cmd/root.go:113 +0x18 main.main() /go/src/main.go:10 +0x13 goroutine 6 [chan receive, 34077 minutes]: github.com/ramr/go-reaper.sigChildHandler(0xc00010f560) /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:25 +0x72 created by github.com/ramr/go-reaper.reapChildren in goroutine 5 /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:44 +0x7b goroutine 5 [chan receive, 34077 minutes]: github.com/ramr/go-reaper.reapChildren({0x0?, 0x0?, 0x0?, 0x0?}) /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:50 +0x96 created by github.com/ramr/go-reaper.Start in goroutine 20 /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:129 +0xd0 goroutine 8 [syscall, 34077 minutes]: os/signal.signal_recv() /usr/local/go/src/runtime/sigqueue.go:152 +0x29 os/signal.loop() /usr/local/go/src/os/signal/signal_unix.go:23 +0x13 created by os/signal.Notify.func1.1 in goroutine 6 /usr/local/go/src/os/signal/signal.go:151 +0x1f goroutine 37 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf48, 0xc000365050}, 0xc000365170) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 38 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf48, 0xc000365050}, 0xc000365230) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 247 [IO wait]: internal/poll.runtime_pollWait(0x7f5b345c4e50, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0x85 internal/poll.(*pollDesc).wait(0x3?, 0x1?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc000340980) /usr/local/go/src/internal/poll/fd_unix.go:611 +0x2ac net.(*netFD).accept(0xc000340980) /usr/local/go/src/net/fd_unix.go:172 +0x29 net.(*TCPListener).accept(0xc000357100) /usr/local/go/src/net/tcpsock_posix.go:159 +0x1e net.(*TCPListener).Accept(0xc000357100) /usr/local/go/src/net/tcpsock.go:327 +0x30 net/http.(*Server).Serve(0xc0003201e0, {0x12fbb78, 0xc000357100}) /usr/local/go/src/net/http/server.go:3255 +0x33e github.com/0xERR0R/blocky/server.(*Server).Start.func2() /go/src/server/server.go:507 +0x145 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:497 +0x194 goroutine 261 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf80, 0xc00034e7d0}, 0xc0006cb410) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 237 [select, 237 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc00009ffd0?, {0x12fdf80, 0xc00034e7d0}, 0xc0001104e0?, 0xc000390fb0) /go/src/config/config.go:374 +0x112 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc6 goroutine 249 [select, 34077 minutes]: github.com/0xERR0R/blocky/cmd.startServer.func1() /go/src/cmd/serve.go:63 +0x96 created by github.com/0xERR0R/blocky/cmd.startServer in goroutine 1 /go/src/cmd/serve.go:62 +0x2a5 goroutine 265 [select, 239 minutes]: github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).periodicCleanUp(0xc0000eaa00, {0x12fdf80, 0xc00034e7d0}) /go/src/resolver/query_logging_resolver.go:101 +0xf5 created by github.com/0xERR0R/blocky/resolver.NewQueryLoggingResolver in goroutine 1 /go/src/resolver/query_logging_resolver.go:89 +0x545 goroutine 325384 [IO wait]: internal/poll.runtime_pollWait(0x7f5b345c41b8, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0x85 internal/poll.(*pollDesc).wait(0xc0003a2480?, 0xc000e71001?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc0003a2480, {0xc000e71001, 0x1, 0x1}) /usr/local/go/src/internal/poll/fd_unix.go:164 +0x27a net.(*netFD).Read(0xc0003a2480, {0xc000e71001?, 0xc000110960?, 0x12ef460?}) /usr/local/go/src/net/fd_posix.go:55 +0x25 net.(*conn).Read(0xc0000ae050, {0xc000e71001?, 0xc000e80350?, 0x80?}) /usr/local/go/src/net/net.go:179 +0x45 net/http.(*connReader).backgroundRead(0xc000e70ff0) /usr/local/go/src/net/http/server.go:681 +0x37 created by net/http.(*connReader).startBackgroundRead in goroutine 325383 /usr/local/go/src/net/http/server.go:677 +0xba goroutine 244 [IO wait]: internal/poll.runtime_pollWait(0x7f5b345c4788, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0x85 internal/poll.(*pollDesc).wait(0xc0001f2000?, 0xc00040a000?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).ReadMsgInet6(0xc0001f2000, {0xc00040a000, 0xffff, 0xffff}, {0xc00052b9b0, 0x28, 0x28}, 0x0, 0xc0003c2a68) /usr/local/go/src/internal/poll/fd_unix.go:355 +0x339 net.(*netFD).readMsgInet6(0xc0001f2000, {0xc00040a000?, 0x41a218?, 0x7f5b3432eed8?}, {0xc00052b9b0?, 0x180?, 0xc0003c2ad8?}, 0x411b9b?, 0xc0003c2ad8?) /usr/local/go/src/net/fd_posix.go:90 +0x31 net.(*UDPConn).readMsg(0xc0003c2bc8?, {0xc00040a000?, 0x7f5b345c47d0?, 0x743a1f76acacf?}, {0xc00052b9b0?, 0x11e3b38?, 0xf50280?}) /usr/local/go/src/net/udpsock_posix.go:106 +0x8d net.(*UDPConn).ReadMsgUDPAddrPort(0xc0000ae138, {0xc00040a000?, 0x1a88060?, 0xc00052b9b0?}, {0xc00052b9b0?, 0x0?, 0xc00052b9b0?}) /usr/local/go/src/net/udpsock.go:203 +0x3e net.(*UDPConn).ReadMsgUDP(0x7439eb0c2ad9c?, {0xc00040a000?, 0x4b2fe0?, 0xc0001f2000?}, {0xc00052b9b0?, 0xc0003c2c80?, 0x5d9fc8?}) /usr/local/go/src/net/udpsock.go:191 +0x25 github.com/miekg/dns.ReadFromSessionUDP(0xc0000ae138, {0xc00040a000, 0xffff, 0xffff}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/udp.go:43 +0x87 github.com/miekg/dns.(*Server).readUDP(0xc000158fc0, 0xc0000ae138, 0x77359400) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:699 +0x105 github.com/miekg/dns.defaultReader.ReadUDP({0xc000158fc0?}, 0xc0000ae138?, 0x77359400?) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:174 +0x13 github.com/miekg/dns.(*Server).serveUDP(0xc000158fc0, {0x1304540, 0xc0000ae138}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:517 +0x262 github.com/miekg/dns.(*Server).ListenAndServe(0xc000158fc0) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:346 +0x570 github.com/0xERR0R/blocky/server.(*Server).Start.func1() /go/src/server/server.go:487 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:486 +0xdf goroutine 271 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf80, 0xc00034e7d0}, 0xc0006cbb30) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 262 [select, 59 minutes]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf80, 0xc00034e7d0}, 0xc0006cb500) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 245 [IO wait]: internal/poll.runtime_pollWait(0x7f5b345c4978, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0x85 internal/poll.(*pollDesc).wait(0x10?, 0x4271e5?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc000340000) /usr/local/go/src/internal/poll/fd_unix.go:611 +0x2ac net.(*netFD).accept(0xc000340000) /usr/local/go/src/net/fd_unix.go:172 +0x29 net.(*TCPListener).accept(0xc0001c4060) /usr/local/go/src/net/tcpsock_posix.go:159 +0x1e net.(*TCPListener).Accept(0xc0001c4060) /usr/local/go/src/net/tcpsock.go:327 +0x30 github.com/miekg/dns.(*Server).serveTCP(0xc0001590e0, {0x12fbb78, 0xc0001c4060}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:461 +0x12c github.com/miekg/dns.(*Server).ListenAndServe(0xc0001590e0) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:318 +0x3d3 github.com/0xERR0R/blocky/server.(*Server).Start.func1() /go/src/server/server.go:487 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:486 +0xdf goroutine 246 [IO wait, 257 minutes]: internal/poll.runtime_pollWait(0x7f5b345c4d58, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0x85 internal/poll.(*pollDesc).wait(0x11?, 0xc001e73bd8?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc000340080) /usr/local/go/src/internal/poll/fd_unix.go:611 +0x2ac net.(*netFD).accept(0xc000340080) /usr/local/go/src/net/fd_unix.go:172 +0x29 net.(*TCPListener).accept(0xc0001c40e0) /usr/local/go/src/net/tcpsock_posix.go:159 +0x1e net.(*TCPListener).Accept(0xc0001c40e0) /usr/local/go/src/net/tcpsock.go:327 +0x30 crypto/tls.(*listener).Accept(0xc000c30000) /usr/local/go/src/crypto/tls/tls.go:66 +0x27 github.com/miekg/dns.(*Server).serveTCP(0xc000159200, {0x12fbb18, 0xc000c30000}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:461 +0x12c github.com/miekg/dns.(*Server).ListenAndServe(0xc000159200) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:332 +0x847 github.com/0xERR0R/blocky/server.(*Server).Start.func1() /go/src/server/server.go:487 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:486 +0xdf goroutine 270 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x12fdf80, 0xc00034e7d0}, 0xc0006cba70) /go/src/cache/expirationcache/expiration_cache.go:104 +0xf8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 248 [select, 34077 minutes]: github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger.func1() /go/src/server/server_config_trigger.go:19 +0x8e created by github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger in goroutine 1 /go/src/server/server_config_trigger.go:17 +0xd0 goroutine 263 [select, 239 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc001e70fd0?, {0x12fdf80, 0xc00034e7d0}, 0xa17165?, 0xc0002549c0) /go/src/config/config.go:374 +0x112 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc6 goroutine 264 [select, 829 minutes]: github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).writeLog(0xc0000eaa00, {0x12fdf80?, 0xc00034e7d0?}) /go/src/resolver/query_logging_resolver.go:197 +0xea created by github.com/0xERR0R/blocky/resolver.NewQueryLoggingResolver in goroutine 1 /go/src/resolver/query_logging_resolver.go:86 +0x4cc goroutine 260 [select, 237 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc001e6efd0?, {0x12fdf80, 0xc00034e7d0}, 0xc00009d980?, 0xc0015aa770) /go/src/config/config.go:374 +0x112 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc6