goroutine 51892563 [running]: runtime/pprof.writeGoroutineStacks({0x560dea623aa0, 0xc00011c4b0}) runtime/pprof/pprof.go:756 +0x6b runtime/pprof.writeGoroutine({0x560dea623aa0?, 0xc00011c4b0?}, 0x72?) runtime/pprof/pprof.go:745 +0x25 runtime/pprof.(*Profile).WriteTo(0x560deae48ac0?, {0x560dea623aa0?, 0xc00011c4b0?}, 0xc?) runtime/pprof/pprof.go:371 +0x14b net/http/pprof.handler.ServeHTTP({0x560de9e47392, 0x9}, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) net/http/pprof/pprof.go:272 +0x52a github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0002c69c0, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:480 +0x2e2 net/http.HandlerFunc.ServeHTTP(0x560dea588de0?, {0x560dea62c798?, 0xc00011c4b0?}, 0x7?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5/middleware.NoCache.func1({0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/middleware/nocache.go:55 +0x28d net/http.HandlerFunc.ServeHTTP(0xc0006890b0?, {0x560dea62c798?, 0xc00011c4b0?}, 0xc000697678?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0002c69c0, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:73 +0x32f github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:327 +0x1bb net/http.HandlerFunc.ServeHTTP(0xc00011c2d0?, {0x560dea62c798?, 0xc00011c4b0?}, 0xc000ad4cd8?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0002c6000, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:480 +0x2e2 net/http.HandlerFunc.ServeHTTP(0xc0006890b0?, {0x560dea62c798?, 0xc00011c4b0?}, 0xc000697848?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0002c6000, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:73 +0x32f github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:327 +0x1bb net/http.HandlerFunc.ServeHTTP(0xc00011c2d0?, {0x560dea62c798?, 0xc00011c4b0?}, 0xc0007d1d74?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0002c6a20, {0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/chi/v5@v5.2.1/mux.go:480 +0x2e2 net/http.HandlerFunc.ServeHTTP(0xc0000a5c20?, {0x560dea62c798?, 0xc00011c4b0?}, 0xc000188500?) net/http/server.go:2322 +0x29 github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x560dea62c798, 0xc00011c4b0}, 0xc000188500) github.com/go-chi/cors@v1.2.1/cors.go:228 +0x164 net/http.HandlerFunc.ServeHTTP(0x560dea588de0?, {0x560dea62c798?, 0xc00011c4b0?}, 0x10?) net/http/server.go:2322 +0x29 github.com/0xERR0R/blocky/server.secureHeadersMiddleware.func1({0x560dea62c798?, 0xc00011c4b0?}, 0xc000188500?) github.com/0xERR0R/blocky/server/http.go:79 +0x312 net/http.HandlerFunc.ServeHTTP(0x560dea62ecb0?, {0x560dea62c798?, 0xc00011c4b0?}, 0x560deae415e0?) net/http/server.go:2322 +0x29 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0002c6a20, {0x560dea62c798, 0xc00011c4b0}, 0xc0001883c0) github.com/go-chi/chi/v5@v5.2.1/mux.go:90 +0x2ee net/http.serverHandler.ServeHTTP({0xc00063ac40?}, {0x560dea62c798?, 0xc00011c4b0?}, 0x6?) net/http/server.go:3340 +0x8e net/http.(*conn).serve(0xc000672ab0, {0x560dea62ec78, 0xc0001797d0}) net/http/server.go:2109 +0x665 created by net/http.(*Server).Serve in goroutine 75 net/http/server.go:3493 +0x485 goroutine 1 [chan receive, 47381 minutes]: github.com/0xERR0R/blocky/cmd.startServer(0xc0004a4d00?, {0xc000271c60?, 0x4?, 0x560de9e40b77?}) github.com/0xERR0R/blocky/cmd/serve.go:79 +0x36b github.com/spf13/cobra.(*Command).execute(0xc0004de008, {0xc000271c40, 0x2, 0x2}) github.com/spf13/cobra@v1.9.1/command.go:1015 +0xb02 github.com/spf13/cobra.(*Command).ExecuteC(0xc000145208) github.com/spf13/cobra@v1.9.1/command.go:1148 +0x465 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.9.1/command.go:1071 github.com/0xERR0R/blocky/cmd.Execute() github.com/0xERR0R/blocky/cmd/root.go:112 +0x18 main.main() github.com/0xERR0R/blocky/main.go:10 +0x13 goroutine 14 [syscall, 47381 minutes]: os/signal.signal_recv() runtime/sigqueue.go:152 +0x29 os/signal.loop() os/signal/signal_unix.go:23 +0x13 created by os/signal.Notify.func1.1 in goroutine 1 os/signal/signal.go:152 +0x1f goroutine 61 [select, 101 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc000387fd0?, {0x560dea62ecb0, 0xc0000e86e0}, 0xc000368930?, 0xc000fed170) github.com/0xERR0R/blocky/config/config.go:382 +0xf7 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 github.com/0xERR0R/blocky/config/config.go:365 +0xc6 goroutine 64 [select]: github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).writeLog(0xc000419cc0, {0x560dea62ecb0?, 0xc0000e86e0?}) github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:223 +0xea created by github.com/0xERR0R/blocky/resolver.NewQueryLoggingResolver in goroutine 1 github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:110 +0x4b9 goroutine 57 [select, 101 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc0000617d0?, {0x560dea62ecb0, 0xc0000e86e0}, 0xc000368690?, 0xc0001b3400) github.com/0xERR0R/blocky/config/config.go:382 +0xf7 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 github.com/0xERR0R/blocky/config/config.go:365 +0xc6 goroutine 63 [select, 41 minutes]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x560dea62ecb0, 0xc0000e86e0}, 0xc0002ef500) github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 +0xef created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 62 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x560dea62ecb0, 0xc0000e86e0}, 0xc0002ef110) github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 +0xef created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 65 [select, 581 minutes]: github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).periodicCleanUp(0xc000419cc0, {0x560dea62ecb0, 0xc0000e86e0}) github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:126 +0xed created by github.com/0xERR0R/blocky/resolver.NewQueryLoggingResolver in goroutine 1 github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:114 +0x537 goroutine 66 [select, 101 minutes]: github.com/0xERR0R/blocky/config.(*SourceLoading).periodically(0xc0000657d0?, {0x560dea62ecb0, 0xc0000e86e0}, 0x560dea636690?, 0xc000183920) github.com/0xERR0R/blocky/config/config.go:382 +0xf7 created by github.com/0xERR0R/blocky/config.(*SourceLoading).StartPeriodicRefresh in goroutine 1 github.com/0xERR0R/blocky/config/config.go:365 +0xc6 goroutine 67 [select]: github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]({0x560dea62ecb0, 0xc0000e86e0}, 0xc0002ef770) github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 +0xef created by github.com/0xERR0R/blocky/cache/expirationcache.NewCacheWithOnExpired[...] in goroutine 1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:94 +0x2db goroutine 72 [IO wait]: internal/poll.runtime_pollWait(0x7f2fdf45f600, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0001ac180?, 0xc00039e000?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).ReadMsgInet6(0xc0001ac180, {0xc00039e000, 0xffff, 0xffff}, {0xc0007d1c50, 0x28, 0x28}, 0x0, 0xc00001ba60) internal/poll/fd_unix.go:349 +0x330 net.(*netFD).readMsgInet6(0xc0001ac180, {0xc00039e000?, 0xc0000105e8?, 0x0?}, {0xc0007d1c50?, 0x7f008000a80000?, 0xc00001ba70?}, 0x560de92e808a?, 0x7f2fdf431c60?) net/fd_posix.go:103 +0x31 net.(*UDPConn).readMsg(0xc00001bbc0?, {0xc00039e000?, 0x7f2fdf45f648?, 0xa1998ea599e23?}, {0xc0007d1c50?, 0x560dea6197f0?, 0x560dea50a660?}) net/udpsock_posix.go:106 +0x90 net.(*UDPConn).ReadMsgUDPAddrPort(0xc000050398, {0xc00039e000?, 0x560de934aa45?, 0x560de9393245?}, {0xc0007d1c50?, 0xc00001bc30?, 0x560de9393189?}) net/udpsock.go:200 +0x3e net.(*UDPConn).ReadMsgUDP(0xa19981a69e031?, {0xc00039e000?, 0x560de9393220?, 0xc0001ac180?}, {0xc0007d1c50?, 0xc00001bc78?, 0x560de948f9e8?}) net/udpsock.go:188 +0x25 github.com/miekg/dns.ReadFromSessionUDP(0xc000050398, {0xc00039e000, 0xffff, 0xffff}) github.com/miekg/dns@v1.1.66/udp.go:43 +0x85 github.com/miekg/dns.(*Server).readUDP(0xc000114ea0, 0xc000050398, 0x77359400) github.com/miekg/dns@v1.1.66/server.go:717 +0xfd github.com/miekg/dns.defaultReader.ReadUDP({0xc00015e480?}, 0x1?, 0xc0004405e8?) github.com/miekg/dns@v1.1.66/server.go:174 +0x13 github.com/miekg/dns.(*Server).serveUDP(0xc000114ea0, {0x560dea635540, 0xc000050398}) github.com/miekg/dns@v1.1.66/server.go:531 +0x245 github.com/miekg/dns.(*Server).ListenAndServe(0xc000114ea0) github.com/miekg/dns@v1.1.66/server.go:360 +0x559 github.com/0xERR0R/blocky/server.(*Server).Start.func1() github.com/0xERR0R/blocky/server/server.go:398 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 github.com/0xERR0R/blocky/server/server.go:397 +0xbe goroutine 73 [IO wait, 12 minutes]: internal/poll.runtime_pollWait(0x7f2fdf45f400, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0001ac280?, 0x900000036?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0001ac280) internal/poll/fd_unix.go:613 +0x28c net.(*netFD).accept(0xc0001ac280) net/fd_unix.go:161 +0x29 net.(*TCPListener).accept(0xc0002e2240) net/tcpsock_posix.go:159 +0x1b net.(*TCPListener).Accept(0xc0002e2240) net/tcpsock.go:380 +0x30 github.com/miekg/dns.(*Server).serveTCP(0xc000114fc0, {0x560dea62c8b8, 0xc0002e2240}) github.com/miekg/dns@v1.1.66/server.go:475 +0x107 github.com/miekg/dns.(*Server).ListenAndServe(0xc000114fc0) github.com/miekg/dns@v1.1.66/server.go:332 +0x3de github.com/0xERR0R/blocky/server.(*Server).Start.func1() github.com/0xERR0R/blocky/server/server.go:398 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 github.com/0xERR0R/blocky/server/server.go:397 +0xbe goroutine 74 [IO wait, 38 minutes]: internal/poll.runtime_pollWait(0x7f2fdf45f200, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0001ac300?, 0x900000036?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0001ac300) internal/poll/fd_unix.go:613 +0x28c net.(*netFD).accept(0xc0001ac300) net/fd_unix.go:161 +0x29 net.(*TCPListener).accept(0xc0002e2280) net/tcpsock_posix.go:159 +0x1b net.(*TCPListener).Accept(0xc0002e2280) net/tcpsock.go:380 +0x30 crypto/tls.(*listener).Accept(0xc000402450) crypto/tls/tls.go:79 +0x24 github.com/miekg/dns.(*Server).serveTCP(0xc000115440, {0x560dea62c828, 0xc000402450}) github.com/miekg/dns@v1.1.66/server.go:475 +0x107 github.com/miekg/dns.(*Server).ListenAndServe(0xc000115440) github.com/miekg/dns@v1.1.66/server.go:346 +0x819 github.com/0xERR0R/blocky/server.(*Server).Start.func1() github.com/0xERR0R/blocky/server/server.go:398 +0x29 created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 github.com/0xERR0R/blocky/server/server.go:397 +0xbe goroutine 75 [IO wait]: internal/poll.runtime_pollWait(0x7f2fdf45fa00, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc0001add00?, 0x900000036?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0001add00) internal/poll/fd_unix.go:613 +0x28c net.(*netFD).accept(0xc0001add00) net/fd_unix.go:161 +0x29 net.(*TCPListener).accept(0xc00039dbc0) net/tcpsock_posix.go:159 +0x1b net.(*TCPListener).Accept(0xc00039dbc0) net/tcpsock.go:380 +0x30 crypto/tls.(*listener).Accept(0xc000402fa8) crypto/tls/tls.go:79 +0x24 net/http.(*Server).Serve(0xc000115b00, {0x560dea62c828, 0xc000402fa8}) net/http/server.go:3463 +0x30c github.com/0xERR0R/blocky/server.(*httpServer).Serve(0xc000115b00, {0x560dea62ecb0, 0xc0000e86e0}, {0x560dea62c828, 0xc000402fa8}) github.com/0xERR0R/blocky/server/http.go:50 +0x9b github.com/0xERR0R/blocky/server.(*Server).Start.func2() github.com/0xERR0R/blocky/server/server.go:410 +0x11d created by github.com/0xERR0R/blocky/server.(*Server).Start in goroutine 1 github.com/0xERR0R/blocky/server/server.go:407 +0x194 goroutine 76 [select, 47381 minutes]: github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger.func1() github.com/0xERR0R/blocky/server/server_config_trigger.go:19 +0x8e created by github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger in goroutine 1 github.com/0xERR0R/blocky/server/server_config_trigger.go:17 +0xce goroutine 77 [select, 47381 minutes]: github.com/0xERR0R/blocky/cmd.startServer.func1() github.com/0xERR0R/blocky/cmd/serve.go:65 +0x96 created by github.com/0xERR0R/blocky/cmd.startServer in goroutine 1 github.com/0xERR0R/blocky/cmd/serve.go:64 +0x286 goroutine 79 [chan receive, 47381 minutes]: github.com/0xERR0R/blocky/server.(*httpServer).Serve.func1() github.com/0xERR0R/blocky/server/http.go:45 +0x2c created by github.com/0xERR0R/blocky/server.(*httpServer).Serve in goroutine 75 github.com/0xERR0R/blocky/server/http.go:44 +0x85 goroutine 51892567 [runnable]: net/http.(*connReader).startBackgroundRead.gowrap2() net/http/server.go:698 runtime.goexit({}) runtime/asm_amd64.s:1693 +0x1 created by net/http.(*connReader).startBackgroundRead in goroutine 51892563 net/http/server.go:698 +0xb6