goroutine 1154080 [running]: runtime/pprof.writeGoroutineStacks({0xe76100, 0x40005561c0}) /usr/local/go/src/runtime/pprof/pprof.go:743 +0x6c runtime/pprof.writeGoroutine({0xe76100?, 0x40005561c0?}, 0x160?) /usr/local/go/src/runtime/pprof/pprof.go:732 +0x2c runtime/pprof.(*Profile).WriteTo(0x15bd560?, {0xe76100?, 0x40005561c0?}, 0xc?) /usr/local/go/src/runtime/pprof/pprof.go:369 +0x148 net/http/pprof.handler.ServeHTTP({0xbe2c71, 0x9}, {0xe7ddc8, 0x40005561c0}, 0x40000005a0) /usr/local/go/src/net/http/pprof/pprof.go:267 +0x444 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x4000378420, {0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:459 +0x288 net/http.HandlerFunc.ServeHTTP(0x400001d718?, {0xe7ddc8?, 0x40005561c0?}, 0x6?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/go-chi/chi/v5/middleware.NoCache.func1({0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/middleware/nocache.go:55 +0x218 net/http.HandlerFunc.ServeHTTP(0x400012cdb0?, {0xe7ddc8?, 0x40005561c0?}, 0x400001d7e8?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x4000378420, {0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:73 +0x2c4 github.com/go-chi/chi/v5.(*Mux).Mount.func1({0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:327 +0x1e0 net/http.HandlerFunc.ServeHTTP(0x40007da1e0?, {0xe7ddc8?, 0x40005561c0?}, 0x400043c064?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40003783c0, {0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:459 +0x288 net/http.HandlerFunc.ServeHTTP(0x40003861e0?, {0xe7ddc8?, 0x40005561c0?}, 0x40000005a0?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/pkg/mod/github.com/go-chi/cors@v1.2.1/cors.go:228 +0x19c net/http.HandlerFunc.ServeHTTP(0xb3ba00?, {0xe7ddc8?, 0x40005561c0?}, 0x10?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/0xERR0R/blocky/server.secureHeader.func1({0xe7ddc8, 0x40005561c0}, 0x40000005a0) /go/src/server/server_endpoints.go:44 +0x2e0 net/http.HandlerFunc.ServeHTTP(0xe80318?, {0xe7ddc8?, 0x40005561c0?}, 0x15b6930?) /usr/local/go/src/net/http/server.go:2166 +0x38 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40003783c0, {0xe7ddc8, 0x40005561c0}, 0x4000000480) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:90 +0x280 net/http.serverHandler.ServeHTTP({0x40001ef710?}, {0xe7ddc8?, 0x40005561c0?}, 0x6?) /usr/local/go/src/net/http/server.go:3137 +0xbc net/http.(*conn).serve(0x4000210120, {0xe802e0, 0x40001ef680}) /usr/local/go/src/net/http/server.go:2039 +0x508 created by net/http.(*Server).Serve in goroutine 82 /usr/local/go/src/net/http/server.go:3285 +0x3f0 goroutine 1 [chan receive, 43023 minutes]: github.com/0xERR0R/blocky/cmd.startServer(0x0?, {0x0?, 0x0?, 0x0?}) /go/src/cmd/serve.go:77 +0x328 github.com/0xERR0R/blocky/cmd.NewRootCommand.func1(0x4000224d00?, {0x1648360?, 0x4?, 0xbdc774?}) /go/src/cmd/root.go:43 +0x8c github.com/spf13/cobra.(*Command).execute(0x4000189208, {0x400003a170, 0x0, 0x0}) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0x840 github.com/spf13/cobra.(*Command).ExecuteC(0x4000189208) /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x344 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 +0x20 main.main() /go/src/main.go:10 +0x1c goroutine 19 [chan receive, 43023 minutes]: github.com/ramr/go-reaper.sigChildHandler(0x4000128420) /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:25 +0x6c created by github.com/ramr/go-reaper.reapChildren in goroutine 18 /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:44 +0x7c goroutine 18 [chan receive, 43023 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 +0x8c created by github.com/ramr/go-reaper.Start in goroutine 7 /go/pkg/mod/github.com/ramr/go-reaper@v0.2.1/reaper.go:129 +0xd4 goroutine 21 [syscall, 43023 minutes]: os/signal.signal_recv() /usr/local/go/src/runtime/sigqueue.go:152 +0x30 os/signal.loop() /usr/local/go/src/os/signal/signal_unix.go:23 +0x1c created by os/signal.Notify.func1.1 in goroutine 19 /usr/local/go/src/os/signal/signal.go:151 +0x28 goroutine 70 [select, 65 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0x0?, {0xe80318, 0x400037a690}, 0x88de4?, 0x40011434b0) /go/src/config/config.go:374 +0xd8 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc4 goroutine 66 [select, 63 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0x0?, {0xe80318, 0x400037a690}, 0x88de4?, 0x40001251b0) /go/src/config/config.go:374 +0xd8 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc4 goroutine 71 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0xe80318, 0x400037a690}, 0x40001eea80) /go/src/cache/expirationcache/expiration_cache.go:104 +0xc8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2dc goroutine 55 [select, 43023 minutes]: github.com/0xERR0R/blocky/cmd.startServer.func1() /go/src/cmd/serve.go:63 +0x80 created by github.com/0xERR0R/blocky/cmd.startServer in goroutine 1 /go/src/cmd/serve.go:62 +0x23c goroutine 54 [select, 43023 minutes]: github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger.func1() /go/src/server/server_config_trigger.go:19 +0x88 created by github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger in goroutine 1 /go/src/server/server_config_trigger.go:17 +0xcc goroutine 72 [select, 5 minutes]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0xe80318, 0x400037a690}, 0x40001eecc0) /go/src/cache/expirationcache/expiration_cache.go:104 +0xc8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2dc goroutine 73 [select, 65 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0x0?, {0xe80318, 0x400037a690}, 0x0?, 0x400026ad40) /go/src/config/config.go:374 +0xd8 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 /go/src/config/config.go:357 +0xc4 goroutine 74 [select, 135 minutes]: github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).writeLog(0x40003a6300, {0xe80318?, 0x400037a690?}) /go/src/resolver/query_logging_resolver.go:197 +0xac created by github.com/0xERR0R/blocky/resolver.NewQueryLoggingResolver in goroutine 1 /go/src/resolver/query_logging_resolver.go:86 +0x3f8 goroutine 79 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0xe80318, 0x400037a690}, 0x40001ef410) /go/src/cache/expirationcache/expiration_cache.go:104 +0xc8 created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 /go/src/cache/expirationcache/expiration_cache.go:94 +0x2dc goroutine 80 [IO wait]: internal/poll.runtime_pollWait(0xffffb2a53c60, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0xa0 internal/poll.(*pollDesc).wait(0x4000144180?, 0x40002ee000?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).ReadMsgInet6(0x4000144180, {0x40002ee000, 0xffff, 0xffff}, {0x400043c030, 0x28, 0x28}, 0x0, 0x400008ea30) /usr/local/go/src/internal/poll/fd_unix.go:355 +0x254 net.(*netFD).readMsgInet6(0x4000144180, {0x40002ee000?, 0x400008ea18?, 0x6f8a4?}, {0x400043c030?, 0x203dc?, 0x400008ea78?}, 0x70478?, 0x400008ea78?) /usr/local/go/src/net/fd_posix.go:90 +0x2c net.(*UDPConn).readMsg(0x400008eb08?, {0x40002ee000?, 0x0?, 0xd656d0?}, {0x400043c030?, 0xffffb2a53d50?, 0x400008eb98?}) /usr/local/go/src/net/udpsock_posix.go:106 +0x88 net.(*UDPConn).ReadMsgUDPAddrPort(0x4000126008, {0x40002ee000?, 0x400043c030?, 0x0?}, {0x400043c030?, 0x400043c030?, 0x400008ebc8?}) /usr/local/go/src/net/udpsock.go:203 +0x34 net.(*UDPConn).ReadMsgUDP(0x4000325110?, {0x40002ee000?, 0x400008ec08?, 0x94690?}, {0x400043c030?, 0x3b81e4?, 0x400008ec48?}) /usr/local/go/src/net/udpsock.go:191 +0x24 github.com/miekg/dns.ReadFromSessionUDP(0x4000126008, {0x40002ee000, 0xffff, 0xffff}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/udp.go:43 +0x70 github.com/miekg/dns.(*Server).readUDP(0x4000001c20, 0x4000126008, 0x77359400) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:699 +0x158 github.com/miekg/dns.defaultReader.ReadUDP({0x400003c9b0?}, 0x4000126008?, 0x77359400?) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:174 +0x1c github.com/miekg/dns.(*Server).serveUDP(0x4000001c20, {0xe868c0, 0x4000126008}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:517 +0x20c github.com/miekg/dns.(*Server).ListenAndServe(0x4000001c20) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:346 +0x49c github.com/0xERR0R/blocky/server.(*Server).Start.func1() /go/src/server/server.go:487 +0x30 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:486 +0xc0 goroutine 81 [IO wait]: internal/poll.runtime_pollWait(0xffffb2a53d58, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0xa0 internal/poll.(*pollDesc).wait(0x8?, 0x8?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x4000144100) /usr/local/go/src/internal/poll/fd_unix.go:611 +0x250 net.(*netFD).accept(0x4000144100) /usr/local/go/src/net/fd_unix.go:172 +0x28 net.(*TCPListener).accept(0x400014a0c0) /usr/local/go/src/net/tcpsock_posix.go:159 +0x28 net.(*TCPListener).Accept(0x400014a0c0) /usr/local/go/src/net/tcpsock.go:327 +0x2c github.com/miekg/dns.(*Server).serveTCP(0x4000001d40, {0xe7deb8, 0x400014a0c0}) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:461 +0xe4 github.com/miekg/dns.(*Server).ListenAndServe(0x4000001d40) /go/pkg/mod/github.com/miekg/dns@v1.1.59/server.go:318 +0x34c github.com/0xERR0R/blocky/server.(*Server).Start.func1() /go/src/server/server.go:487 +0x30 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:486 +0xc0 goroutine 82 [IO wait, 1 minutes]: internal/poll.runtime_pollWait(0xffffb2a53e50, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0xa0 internal/poll.(*pollDesc).wait(0x3?, 0x28a8c?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0x400036aa00) /usr/local/go/src/internal/poll/fd_unix.go:611 +0x250 net.(*netFD).accept(0x400036aa00) /usr/local/go/src/net/fd_unix.go:172 +0x28 net.(*TCPListener).accept(0x4000384300) /usr/local/go/src/net/tcpsock_posix.go:159 +0x28 net.(*TCPListener).Accept(0x4000384300) /usr/local/go/src/net/tcpsock.go:327 +0x2c net/http.(*Server).Serve(0x40007da0f0, {0xe7deb8, 0x4000384300}) /usr/local/go/src/net/http/server.go:3255 +0x2a8 github.com/0xERR0R/blocky/server.(*Server).Start.func2() /go/src/server/server.go:507 +0x12c created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 /go/src/server/server.go:497 +0x160 goroutine 1154101 [IO wait]: internal/poll.runtime_pollWait(0xffff6be16960, 0x72) /usr/local/go/src/runtime/netpoll.go:345 +0xa0 internal/poll.(*pollDesc).wait(0x4000144480?, 0x40001ef721?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0x4000144480, {0x40001ef721, 0x1, 0x1}) /usr/local/go/src/internal/poll/fd_unix.go:164 +0x200 net.(*netFD).Read(0x4000144480, {0x40001ef721?, 0x4000126068?, 0x77359400?}) /usr/local/go/src/net/fd_posix.go:55 +0x28 net.(*conn).Read(0x4000126070, {0x40001ef721?, 0x77359400?, 0x40001ef718?}) /usr/local/go/src/net/net.go:179 +0x34 net/http.(*connReader).backgroundRead(0x40001ef710) /usr/local/go/src/net/http/server.go:681 +0x40 created by net/http.(*connReader).startBackgroundRead in goroutine 1154080 /usr/local/go/src/net/http/server.go:677 +0xc8