goroutine profile: total 19 3 @ 0x557b1343736e 0x557b13413b97 0x557b138928f7 0x557b1343f2a1 # 0x557b138928f6 github.com/0xERR0R/blocky/config.(*SourceLoading).periodically+0xf6 github.com/0xERR0R/blocky/config/config.go:382 1 @ 0x557b133d07a9 0x557b134392a9 0x557b138a08d3 0x557b1343f2a1 # 0x557b134392a8 os/signal.signal_recv+0x28 runtime/sigqueue.go:152 # 0x557b138a08d2 os/signal.loop+0x12 os/signal/signal_unix.go:23 1 @ 0x557b133f5a71 0x557b1343613d 0x557b13e91ed1 0x557b13e91ce5 0x557b13e8eb6b 0x557b13ea7f6a 0x557b13804ea2 0x557b136c1b29 0x557b13eaeeed 0x557b136c1b29 0x557b1380294f 0x557b138042db 0x557b136c1b29 0x557b13804ea2 0x557b136c1b29 0x557b1380294f 0x557b138042db 0x557b136c1b29 0x557b13804ea2 0x557b136c1b29 0x557b138dc064 0x557b136c1b29 0x557b13eb3672 0x557b136c1b29 0x557b1380290e 0x557b136e238e 0x557b136bfc25 0x557b1343f2a1 # 0x557b13e91ed0 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:788 # 0x557b13e91ce4 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:747 # 0x557b13e8eb6a runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:371 # 0x557b13ea7f69 net/http/pprof.handler.ServeHTTP+0x529 net/http/pprof/pprof.go:272 # 0x557b13804ea1 github.com/go-chi/chi/v5.(*Mux).routeHTTP+0x2e1 github.com/go-chi/chi/v5@v5.2.1/mux.go:480 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b13eaeeec github.com/go-chi/chi/v5/middleware.NoCache.func1+0x28c github.com/go-chi/chi/v5@v5.2.1/middleware/nocache.go:55 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b1380294e github.com/go-chi/chi/v5.(*Mux).ServeHTTP+0x32e github.com/go-chi/chi/v5@v5.2.1/mux.go:73 # 0x557b138042da github.com/go-chi/chi/v5.(*Mux).Mount.func1+0x1ba github.com/go-chi/chi/v5@v5.2.1/mux.go:327 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b13804ea1 github.com/go-chi/chi/v5.(*Mux).routeHTTP+0x2e1 github.com/go-chi/chi/v5@v5.2.1/mux.go:480 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b1380294e github.com/go-chi/chi/v5.(*Mux).ServeHTTP+0x32e github.com/go-chi/chi/v5@v5.2.1/mux.go:73 # 0x557b138042da github.com/go-chi/chi/v5.(*Mux).Mount.func1+0x1ba github.com/go-chi/chi/v5@v5.2.1/mux.go:327 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b13804ea1 github.com/go-chi/chi/v5.(*Mux).routeHTTP+0x2e1 github.com/go-chi/chi/v5@v5.2.1/mux.go:480 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b138dc063 github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1+0x163 github.com/go-chi/cors@v1.2.1/cors.go:228 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b13eb3671 github.com/0xERR0R/blocky/server.secureHeadersMiddleware.func1+0x311 github.com/0xERR0R/blocky/server/http.go:79 # 0x557b136c1b28 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2322 # 0x557b1380290d github.com/go-chi/chi/v5.(*Mux).ServeHTTP+0x2ed github.com/go-chi/chi/v5@v5.2.1/mux.go:90 # 0x557b136e238d net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3340 # 0x557b136bfc24 net/http.(*conn).serve+0x664 net/http/server.go:2109 1 @ 0x557b1343736e 0x557b133cafce 0x557b133cab52 0x557b13eb308c 0x557b1343f2a1 # 0x557b13eb308b github.com/0xERR0R/blocky/server.(*httpServer).Serve.func1+0x2b github.com/0xERR0R/blocky/server/http.go:45 1 @ 0x557b1343736e 0x557b133cafce 0x557b133cab52 0x557b13ebd7cb 0x557b1385c842 0x557b1385d185 0x557b13ebd2f8 0x557b13ebd2ef 0x557b13ebf6d3 0x557b13400bfd 0x557b1343f2a1 # 0x557b13ebd7ca github.com/0xERR0R/blocky/cmd.startServer+0x36a github.com/0xERR0R/blocky/cmd/serve.go:79 # 0x557b1385c841 github.com/spf13/cobra.(*Command).execute+0xb01 github.com/spf13/cobra@v1.9.1/command.go:1015 # 0x557b1385d184 github.com/spf13/cobra.(*Command).ExecuteC+0x464 github.com/spf13/cobra@v1.9.1/command.go:1148 # 0x557b13ebd2f7 github.com/spf13/cobra.(*Command).Execute+0x17 github.com/spf13/cobra@v1.9.1/command.go:1071 # 0x557b13ebd2ee github.com/0xERR0R/blocky/cmd.Execute+0xe github.com/0xERR0R/blocky/cmd/root.go:112 # 0x557b13ebf6d2 main.main+0x12 github.com/0xERR0R/blocky/main.go:10 # 0x557b13400bfc runtime.main+0x29c runtime/proc.go:285 1 @ 0x557b1343736e 0x557b133f9477 0x557b13436545 0x557b1347cd87 0x557b1347fc30 0x557b1347fc1a 0x557b13569cb1 0x557b13585310 0x557b13583b3e 0x557b13583a45 0x557b137daa25 0x557b137c8c7d 0x557b137c5d93 0x557b137c7905 0x557b137c6439 0x557b13eb6f69 0x557b1343f2a1 # 0x557b13436544 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x557b1347cd86 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x557b1347fc2f internal/poll.(*pollDesc).waitRead+0x32f internal/poll/fd_poll_runtime.go:89 # 0x557b1347fc19 internal/poll.(*FD).ReadMsgInet6+0x319 internal/poll/fd_unix.go:349 # 0x557b13569cb0 net.(*netFD).readMsgInet6+0x30 net/fd_posix.go:103 # 0x557b1358530f net.(*UDPConn).readMsg+0x8f net/udpsock_posix.go:106 # 0x557b13583b3d net.(*UDPConn).ReadMsgUDPAddrPort+0x3d net/udpsock.go:200 # 0x557b13583a44 net.(*UDPConn).ReadMsgUDP+0x24 net/udpsock.go:188 # 0x557b137daa24 github.com/miekg/dns.ReadFromSessionUDP+0x84 github.com/miekg/dns@v1.1.66/udp.go:43 # 0x557b137c8c7c github.com/miekg/dns.(*Server).readUDP+0xfc github.com/miekg/dns@v1.1.66/server.go:717 # 0x557b137c5d92 github.com/miekg/dns.defaultReader.ReadUDP+0x12 github.com/miekg/dns@v1.1.66/server.go:174 # 0x557b137c7904 github.com/miekg/dns.(*Server).serveUDP+0x244 github.com/miekg/dns@v1.1.66/server.go:531 # 0x557b137c6438 github.com/miekg/dns.(*Server).ListenAndServe+0x558 github.com/miekg/dns@v1.1.66/server.go:360 # 0x557b13eb6f68 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:398 1 @ 0x557b1343736e 0x557b133f9477 0x557b13436545 0x557b1347cd87 0x557b134821ac 0x557b1348219a 0x557b1356b489 0x557b135824db 0x557b135816b0 0x557b136302e4 0x557b136c550c 0x557b13eb301b 0x557b13eb6e3d 0x557b1343f2a1 # 0x557b13436544 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x557b1347cd86 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x557b134821ab internal/poll.(*pollDesc).waitRead+0x28b internal/poll/fd_poll_runtime.go:89 # 0x557b13482199 internal/poll.(*FD).Accept+0x279 internal/poll/fd_unix.go:613 # 0x557b1356b488 net.(*netFD).accept+0x28 net/fd_unix.go:161 # 0x557b135824da net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x557b135816af net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x557b136302e3 crypto/tls.(*listener).Accept+0x23 crypto/tls/tls.go:79 # 0x557b136c550b net/http.(*Server).Serve+0x30b net/http/server.go:3463 # 0x557b13eb301a github.com/0xERR0R/blocky/server.(*httpServer).Serve+0x9a github.com/0xERR0R/blocky/server/http.go:50 # 0x557b13eb6e3c github.com/0xERR0R/blocky/server.(*Server).Start.func2+0x11c github.com/0xERR0R/blocky/server/server.go:410 1 @ 0x557b1343736e 0x557b133f9477 0x557b13436545 0x557b1347cd87 0x557b134821ac 0x557b1348219a 0x557b1356b489 0x557b135824db 0x557b135816b0 0x557b136302e4 0x557b137c72c7 0x557b137c66f9 0x557b13eb6f69 0x557b1343f2a1 # 0x557b13436544 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x557b1347cd86 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x557b134821ab internal/poll.(*pollDesc).waitRead+0x28b internal/poll/fd_poll_runtime.go:89 # 0x557b13482199 internal/poll.(*FD).Accept+0x279 internal/poll/fd_unix.go:613 # 0x557b1356b488 net.(*netFD).accept+0x28 net/fd_unix.go:161 # 0x557b135824da net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x557b135816af net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x557b136302e3 crypto/tls.(*listener).Accept+0x23 crypto/tls/tls.go:79 # 0x557b137c72c6 github.com/miekg/dns.(*Server).serveTCP+0x106 github.com/miekg/dns@v1.1.66/server.go:475 # 0x557b137c66f8 github.com/miekg/dns.(*Server).ListenAndServe+0x818 github.com/miekg/dns@v1.1.66/server.go:346 # 0x557b13eb6f68 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:398 1 @ 0x557b1343736e 0x557b133f9477 0x557b13436545 0x557b1347cd87 0x557b134821ac 0x557b1348219a 0x557b1356b489 0x557b135824db 0x557b135816b0 0x557b137c72c7 0x557b137c62be 0x557b13eb6f69 0x557b1343f2a1 # 0x557b13436544 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x557b1347cd86 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x557b134821ab internal/poll.(*pollDesc).waitRead+0x28b internal/poll/fd_poll_runtime.go:89 # 0x557b13482199 internal/poll.(*FD).Accept+0x279 internal/poll/fd_unix.go:613 # 0x557b1356b488 net.(*netFD).accept+0x28 net/fd_unix.go:161 # 0x557b135824da net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x557b135816af net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x557b137c72c6 github.com/miekg/dns.(*Server).serveTCP+0x106 github.com/miekg/dns@v1.1.66/server.go:475 # 0x557b137c62bd github.com/miekg/dns.(*Server).ListenAndServe+0x3dd github.com/miekg/dns@v1.1.66/server.go:332 # 0x557b13eb6f68 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:398 1 @ 0x557b1343736e 0x557b13413b97 0x557b13e6420d 0x557b1343f2a1 # 0x557b13e6420c github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).periodicCleanUp+0xec github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:126 1 @ 0x557b1343736e 0x557b13413b97 0x557b13e64daa 0x557b1343f2a1 # 0x557b13e64da9 github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).writeLog+0xe9 github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:223 1 @ 0x557b1343736e 0x557b13413b97 0x557b13e70daf 0x557b1343f2a1 # 0x557b13e70dae github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xee github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x557b1343736e 0x557b13413b97 0x557b13e7218f 0x557b1343f2a1 # 0x557b13e7218e github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xee github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x557b1343736e 0x557b13413b97 0x557b13e75acf 0x557b1343f2a1 # 0x557b13e75ace github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xee github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x557b1343736e 0x557b13413b97 0x557b13eb89ee 0x557b1343f2a1 # 0x557b13eb89ed github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger.func1+0x8d github.com/0xERR0R/blocky/server/server_config_trigger.go:19 1 @ 0x557b1343736e 0x557b13413b97 0x557b13ebd8d6 0x557b1343f2a1 # 0x557b13ebd8d5 github.com/0xERR0R/blocky/cmd.startServer.func1+0x95 github.com/0xERR0R/blocky/cmd/serve.go:65 1 @ 0x557b1343f2a1