goroutine profile: total 18 3 @ 0x476d0e 0x452745 0x8fce17 0x47ed61 # 0x8fce16 github.com/0xERR0R/blocky/config.(*SourceLoading).periodically+0xf6 github.com/0xERR0R/blocky/config/config.go:374 1 @ 0x4115a9 0x478aa9 0x90bab3 0x47ed61 # 0x478aa8 os/signal.signal_recv+0x28 runtime/sigqueue.go:152 # 0x90bab2 os/signal.loop+0x12 os/signal/signal_unix.go:23 1 @ 0x435511 0x475bdd 0xe3e7b1 0xe3e5e5 0xe3b40b 0xe5534f 0x875382 0x72eaa9 0xe5834d 0x72eaa9 0x872f8f 0x87491b 0x72eaa9 0x875382 0x72eaa9 0xe5ecbe 0x72eaa9 0xe652f0 0x72eaa9 0x872f4e 0x74f00e 0x72d450 0x47ed61 # 0xe3e7b0 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:793 # 0xe3e5e4 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:752 # 0xe3b40a runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:374 # 0xe5534e net/http/pprof.handler.ServeHTTP+0x52e net/http/pprof/pprof.go:272 # 0x875381 github.com/go-chi/chi/v5.(*Mux).routeHTTP+0x2e1 github.com/go-chi/chi/v5@v5.0.12/mux.go:459 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0xe5834c github.com/go-chi/chi/v5/middleware.NoCache.func1+0x28c github.com/go-chi/chi/v5@v5.0.12/middleware/nocache.go:55 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0x872f8e github.com/go-chi/chi/v5.(*Mux).ServeHTTP+0x32e github.com/go-chi/chi/v5@v5.0.12/mux.go:73 # 0x87491a github.com/go-chi/chi/v5.(*Mux).Mount.func1+0x1ba github.com/go-chi/chi/v5@v5.0.12/mux.go:327 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0x875381 github.com/go-chi/chi/v5.(*Mux).routeHTTP+0x2e1 github.com/go-chi/chi/v5@v5.0.12/mux.go:459 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0xe5ecbd github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1+0x17d github.com/go-chi/cors@v1.2.1/cors.go:228 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0xe652ef github.com/0xERR0R/blocky/server.secureHeader.func1+0x2ef github.com/0xERR0R/blocky/server/server_endpoints.go:44 # 0x72eaa8 net/http.HandlerFunc.ServeHTTP+0x28 net/http/server.go:2220 # 0x872f4d github.com/go-chi/chi/v5.(*Mux).ServeHTTP+0x2ed github.com/go-chi/chi/v5@v5.0.12/mux.go:90 # 0x74f00d net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3210 # 0x72d44f net/http.(*conn).serve+0x5cf net/http/server.go:2092 1 @ 0x476d0e 0x40bb7c 0x40b732 0xe6a350 0xe6ac0b 0x8c89ca 0x8c929f 0xe69e78 0xe69e6f 0xe6b8f3 0x44046b 0x47ed61 # 0xe6a34f github.com/0xERR0R/blocky/cmd.startServer+0x36f github.com/0xERR0R/blocky/cmd/serve.go:77 # 0xe6ac0a github.com/0xERR0R/blocky/cmd.NewRootCommand.func1+0xaa github.com/0xERR0R/blocky/cmd/root.go:43 # 0x8c89c9 github.com/spf13/cobra.(*Command).execute+0xaa9 github.com/spf13/cobra@v1.8.0/command.go:983 # 0x8c929e github.com/spf13/cobra.(*Command).ExecuteC+0x3fe github.com/spf13/cobra@v1.8.0/command.go:1115 # 0xe69e77 github.com/spf13/cobra.(*Command).Execute+0x17 github.com/spf13/cobra@v1.8.0/command.go:1039 # 0xe69e6e github.com/0xERR0R/blocky/cmd.Execute+0xe github.com/0xERR0R/blocky/cmd/root.go:113 # 0xe6b8f2 main.main+0x12 github.com/0xERR0R/blocky/main.go:10 # 0x44046a runtime.main+0x28a runtime/proc.go:272 1 @ 0x476d0e 0x438e17 0x476005 0x4bb387 0x4bdd50 0x4bdd3a 0x5e7b11 0x6036a7 0x601dde 0x601ce5 0x84b207 0x839545 0x836753 0x838242 0x836db0 0xe634e9 0x47ed61 # 0x476004 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4bb386 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4bdd4f internal/poll.(*pollDesc).waitRead+0x32f internal/poll/fd_poll_runtime.go:89 # 0x4bdd39 internal/poll.(*FD).ReadMsgInet4+0x319 internal/poll/fd_unix.go:329 # 0x5e7b10 net.(*netFD).readMsgInet4+0x30 net/fd_posix.go:84 # 0x6036a6 net.(*UDPConn).readMsg+0x186 net/udpsock_posix.go:101 # 0x601ddd net.(*UDPConn).ReadMsgUDPAddrPort+0x3d net/udpsock.go:203 # 0x601ce4 net.(*UDPConn).ReadMsgUDP+0x24 net/udpsock.go:191 # 0x84b206 github.com/miekg/dns.ReadFromSessionUDP+0x86 github.com/miekg/dns@v1.1.59/udp.go:43 # 0x839544 github.com/miekg/dns.(*Server).readUDP+0x104 github.com/miekg/dns@v1.1.59/server.go:699 # 0x836752 github.com/miekg/dns.defaultReader.ReadUDP+0x12 github.com/miekg/dns@v1.1.59/server.go:174 # 0x838241 github.com/miekg/dns.(*Server).serveUDP+0x241 github.com/miekg/dns@v1.1.59/server.go:517 # 0x836daf github.com/miekg/dns.(*Server).ListenAndServe+0x52f github.com/miekg/dns@v1.1.59/server.go:346 # 0xe634e8 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:487 1 @ 0x476d0e 0x438e17 0x476005 0x4bb387 0x4c0755 0x4c0743 0x5e9569 0x60077e 0x5ff950 0x6a44c7 0x837c07 0x83706d 0xe634e9 0x47ed61 # 0x476004 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4bb386 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4c0754 internal/poll.(*pollDesc).waitRead+0x294 internal/poll/fd_poll_runtime.go:89 # 0x4c0742 internal/poll.(*FD).Accept+0x282 internal/poll/fd_unix.go:620 # 0x5e9568 net.(*netFD).accept+0x28 net/fd_unix.go:172 # 0x60077d net.(*TCPListener).accept+0x1d net/tcpsock_posix.go:159 # 0x5ff94f net.(*TCPListener).Accept+0x2f net/tcpsock.go:372 # 0x6a44c6 crypto/tls.(*listener).Accept+0x26 crypto/tls/tls.go:67 # 0x837c06 github.com/miekg/dns.(*Server).serveTCP+0x106 github.com/miekg/dns@v1.1.59/server.go:461 # 0x83706c github.com/miekg/dns.(*Server).ListenAndServe+0x7ec github.com/miekg/dns@v1.1.59/server.go:332 # 0xe634e8 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:487 1 @ 0x476d0e 0x438e17 0x476005 0x4bb387 0x4c0755 0x4c0743 0x5e9569 0x60077e 0x5ff950 0x7324cc 0xe63445 0x47ed61 # 0x476004 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4bb386 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4c0754 internal/poll.(*pollDesc).waitRead+0x294 internal/poll/fd_poll_runtime.go:89 # 0x4c0742 internal/poll.(*FD).Accept+0x282 internal/poll/fd_unix.go:620 # 0x5e9568 net.(*netFD).accept+0x28 net/fd_unix.go:172 # 0x60077d net.(*TCPListener).accept+0x1d net/tcpsock_posix.go:159 # 0x5ff94f net.(*TCPListener).Accept+0x2f net/tcpsock.go:372 # 0x7324cb net/http.(*Server).Serve+0x30b net/http/server.go:3330 # 0xe63444 github.com/0xERR0R/blocky/server.(*Server).Start.func2+0x144 github.com/0xERR0R/blocky/server/server.go:507 1 @ 0x476d0e 0x438e17 0x476005 0x4bb387 0x4c0755 0x4c0743 0x5e9569 0x60077e 0x5ff950 0x837c07 0x836c28 0xe634e9 0x47ed61 # 0x476004 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4bb386 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4c0754 internal/poll.(*pollDesc).waitRead+0x294 internal/poll/fd_poll_runtime.go:89 # 0x4c0742 internal/poll.(*FD).Accept+0x282 internal/poll/fd_unix.go:620 # 0x5e9568 net.(*netFD).accept+0x28 net/fd_unix.go:172 # 0x60077d net.(*TCPListener).accept+0x1d net/tcpsock_posix.go:159 # 0x5ff94f net.(*TCPListener).Accept+0x2f net/tcpsock.go:372 # 0x837c06 github.com/miekg/dns.(*Server).serveTCP+0x106 github.com/miekg/dns@v1.1.59/server.go:461 # 0x836c27 github.com/miekg/dns.(*Server).ListenAndServe+0x3a7 github.com/miekg/dns@v1.1.59/server.go:318 # 0xe634e8 github.com/0xERR0R/blocky/server.(*Server).Start.func1+0x28 github.com/0xERR0R/blocky/server/server.go:487 1 @ 0x476d0e 0x452745 0xe1192d 0x47ed61 # 0xe1192c github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).periodicCleanUp+0xec github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:101 1 @ 0x476d0e 0x452745 0xe1248a 0x47ed61 # 0xe12489 github.com/0xERR0R/blocky/resolver.(*QueryLoggingResolver).writeLog+0xe9 github.com/0xERR0R/blocky/resolver/query_logging_resolver.go:197 1 @ 0x476d0e 0x452745 0xe1dcb2 0x47ed61 # 0xe1dcb1 github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xf1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x476d0e 0x452745 0xe1eff2 0x47ed61 # 0xe1eff1 github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xf1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x476d0e 0x452745 0xe22852 0x47ed61 # 0xe22851 github.com/0xERR0R/blocky/cache/expirationcache.periodicCleanup[...]+0xf1 github.com/0xERR0R/blocky/cache/expirationcache/expiration_cache.go:104 1 @ 0x476d0e 0x452745 0xe64f2e 0x47ed61 # 0xe64f2d github.com/0xERR0R/blocky/server.registerPrintConfigurationTrigger.func1+0x8d github.com/0xERR0R/blocky/server/server_config_trigger.go:19 1 @ 0x476d0e 0x452745 0xe6a456 0x47ed61 # 0xe6a455 github.com/0xERR0R/blocky/cmd.startServer.func1+0x95 github.com/0xERR0R/blocky/cmd/serve.go:63 1 @ 0x497685 0x495a38 0x4bc6ae 0x4bc696 0x4bc531 0x5e75a5 0x5f7605 0x727dd7 0x47ed61 # 0x497684 syscall.Syscall+0x24 syscall/syscall_linux.go:73 # 0x495a37 syscall.read+0x37 syscall/zsyscall_linux_amd64.go:736 # 0x4bc6ad syscall.Read+0x2ad syscall/syscall_unix.go:183 # 0x4bc695 internal/poll.ignoringEINTRIO+0x295 internal/poll/fd_unix.go:745 # 0x4bc530 internal/poll.(*FD).Read+0x130 internal/poll/fd_unix.go:161 # 0x5e75a4 net.(*netFD).Read+0x24 net/fd_posix.go:55 # 0x5f7604 net.(*conn).Read+0x44 net/net.go:189 # 0x727dd6 net/http.(*connReader).backgroundRead+0x36 net/http/server.go:690