goroutine 427684 [running]: runtime/pprof.writeGoroutineStacks({0x7efc6bd20670, 0xc00032f8b0}) runtime/pprof/pprof.go:756 +0x6b runtime/pprof.writeGoroutine({0x7efc6bd20670?, 0xc00032f8b0?}, 0x47?) runtime/pprof/pprof.go:745 +0x25 runtime/pprof.(*Profile).WriteTo(0x4b03750?, {0x7efc6bd20670?, 0xc00032f8b0?}, 0xc?) runtime/pprof/pprof.go:371 +0x14b net/http/pprof.handler.ServeHTTP({0xc0016d43d1, 0x9}, {0x7efc6bd3afe0, 0xc00032f8b0}, 0xc000689900) net/http/pprof/pprof.go:272 +0x52a net/http/pprof.Index({0x7efc6bd3afe0, 0xc00032f8b0}, 0xc000689900?) net/http/pprof/pprof.go:389 +0xda gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke(0x3c59170?, {0xc00242f280?, 0x2?, 0x17d0e80?}) gopkg.in/macaron.v1@v1.5.1/macaron.go:48 +0xd0 github.com/go-macaron/inject.(*injector).fastInvoke(0xc00215a258?, {0x7efc6bc6ccb8?, 0x3c59170?}, {0x3e60810?, 0x17d0e80?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 +0x8f github.com/go-macaron/inject.(*injector).Invoke(0xc00215a258, {0x17d0e80, 0x3c59170}) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 +0x12c gopkg.in/macaron%2ev1.(*Context).run(0xc00164c2d0) gopkg.in/macaron.v1@v1.5.1/context.go:124 +0x65 gopkg.in/macaron%2ev1.(*Context).Next(0xc000808a20?) gopkg.in/macaron.v1@v1.5.1/context.go:114 +0x17 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2(0x20?, 0x178a9e0?) gopkg.in/macaron.v1@v1.5.1/recovery.go:161 +0x45 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke(0x193fa00?, {0xc00242f1c0?, 0x193fa00?, 0x3e60810?}) gopkg.in/macaron.v1@v1.5.1/logger.go:40 +0x58 github.com/go-macaron/inject.(*injector).fastInvoke(0xc00215a258?, {0x7efc6bd3af40?, 0x3c57a78?}, {0x3e60810?, 0x17d0e00?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 +0x8f github.com/go-macaron/inject.(*injector).Invoke(0xc00215a258, {0x17d0e00, 0x3c57a78}) github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 +0x12c gopkg.in/macaron%2ev1.(*Context).run(0xc00164c2d0) gopkg.in/macaron.v1@v1.5.1/context.go:124 +0x65 gopkg.in/macaron%2ev1.(*Router).Handle.func1({0x3e3fa78?, 0xc00164a3c0?}, 0x3e26658?, 0xc002020060) gopkg.in/macaron.v1@v1.5.1/router.go:187 +0x23a gopkg.in/macaron%2ev1.(*Router).ServeHTTP(0xc000826360, {0x3e3fa78, 0xc00164a3c0}, 0xc000689900) gopkg.in/macaron.v1@v1.5.1/router.go:304 +0x162 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP(0xc0007fc280, {0x3e3fa78, 0xc00164a3c0}, 0xc000689900) gopkg.in/macaron.v1@v1.5.1/macaron.go:218 +0x153 net/http.serverHandler.ServeHTTP({0xc0007d2e40?}, {0x3e3fa78?, 0xc00164a3c0?}, 0x1?) net/http/server.go:3340 +0x8e net/http.(*conn).serve(0xc0000cf680, {0x3e435d8, 0xc0020ab500}) net/http/server.go:2109 +0x665 created by net/http.(*Server).Serve in goroutine 1 net/http/server.go:3493 +0x485 goroutine 1 [IO wait]: internal/poll.runtime_pollWait(0x7efc6c2cea00, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc00207b080?, 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(0xc00207b080) internal/poll/fd_unix.go:613 +0x28c net.(*netFD).accept(0xc00207b080) net/fd_unix.go:161 +0x29 net.(*TCPListener).accept(0xc000a3db00) net/tcpsock_posix.go:159 +0x1b net.(*TCPListener).Accept(0xc000a3db00) net/tcpsock.go:380 +0x30 net/http.(*Server).Serve(0xc000618400, {0x3e3fd20, 0xc000a3db00}) net/http/server.go:3463 +0x30c net/http.(*Server).ListenAndServe(0xc000618400) net/http/server.go:3389 +0x72 net/http.ListenAndServe(...) net/http/server.go:3704 gogs.io/gogs/internal/cmd.runWeb(0xc0003df8c0) gogs.io/gogs/internal/cmd/web.go:748 +0x1175 github.com/urfave/cli.HandleAction({0x1759380?, 0x3c57ac8?}, 0x3?) github.com/urfave/cli@v1.22.17/app.go:524 +0x9f github.com/urfave/cli.Command.Run({{0x19bb50a, 0x3}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x19d75d1, 0x10}, {0x0, ...}, ...}, ...) github.com/urfave/cli@v1.22.17/command.go:175 +0x656 github.com/urfave/cli.(*App).Run(0xc000103c00, {0xc00011cc40, 0x2, 0x2}) github.com/urfave/cli@v1.22.17/app.go:277 +0xb1b main.main() gogs.io/gogs/gogs.go:35 +0x3cc goroutine 6 [select, 6044 minutes]: unknwon.dev/clog/v2.New.func1() unknwon.dev/clog/v2@v2.2.0/logger.go:202 +0xce created by unknwon.dev/clog/v2.New in goroutine 1 unknwon.dev/clog/v2@v2.2.0/logger.go:199 +0x58b goroutine 8 [chan receive, 6044 minutes]: gogs.io/gogs/internal/email.processMailQueue() gogs.io/gogs/internal/email/message.go:201 +0x5b created by gogs.io/gogs/internal/email.NewContext in goroutine 1 gogs.io/gogs/internal/email/message.go:224 +0x65 goroutine 9 [select, 6044 minutes]: database/sql.(*DB).connectionOpener(0xc0005c88f0, {0x3e43610, 0xc000454690}) database/sql/sql.go:1261 +0x87 created by database/sql.OpenDB in goroutine 1 database/sql/sql.go:841 +0x130 goroutine 10 [select, 6044 minutes]: database/sql.(*DB).connectionOpener(0xc0005c8f70, {0x3e43610, 0xc0004549b0}) database/sql/sql.go:1261 +0x87 created by database/sql.OpenDB in goroutine 1 database/sql/sql.go:841 +0x130 goroutine 40 [select, 5 minutes]: github.com/gogs/cron.(*Cron).run(0xc00032f590) github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 +0x565 created by github.com/gogs/cron.(*Cron).Start in goroutine 1 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:150 +0x59 goroutine 41 [chan receive, 6044 minutes]: gogs.io/gogs/internal/database.SyncMirrors() gogs.io/gogs/internal/database/mirror.go:390 +0x50 created by gogs.io/gogs/internal/database.InitSyncMirrors in goroutine 1 gogs.io/gogs/internal/database/mirror.go:530 +0x1a goroutine 42 [chan receive, 6044 minutes]: gogs.io/gogs/internal/database.DeliverHooks() gogs.io/gogs/internal/database/webhook.go:810 +0x258 created by gogs.io/gogs/internal/database.InitDeliverHooks in goroutine 1 gogs.io/gogs/internal/database/webhook.go:830 +0x1a goroutine 43 [chan receive, 6044 minutes]: gogs.io/gogs/internal/database.TestPullRequests() gogs.io/gogs/internal/database/pull.go:866 +0x118 created by gogs.io/gogs/internal/database.InitTestPullRequests in goroutine 1 gogs.io/gogs/internal/database/pull.go:884 +0x1a goroutine 427818 [IO wait]: internal/poll.runtime_pollWait(0x7efc6bd5a600, 0x72) runtime/netpoll.go:351 +0x85 internal/poll.(*pollDesc).wait(0xc00167a780?, 0xc0007d2e61?, 0x0) internal/poll/fd_poll_runtime.go:84 +0x27 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc00167a780, {0xc0007d2e61, 0x1, 0x1}) internal/poll/fd_unix.go:165 +0x279 net.(*netFD).Read(0xc00167a780, {0xc0007d2e61?, 0xc0006ecbd0?, 0x0?}) net/fd_posix.go:68 +0x25 net.(*conn).Read(0xc001648368, {0xc0007d2e61?, 0x0?, 0x0?}) net/net.go:196 +0x45 net/http.(*connReader).backgroundRead(0xc0007d2e40) net/http/server.go:702 +0x33 created by net/http.(*connReader).startBackgroundRead in goroutine 427684 net/http/server.go:698 +0xb6 goroutine 427680 [select]: database/sql.(*DB).connectionCleaner(0xc0005c8f70, 0xc000a3d880?) database/sql/sql.go:1104 +0x9c created by database/sql.(*DB).startCleanerLocked in goroutine 427684 database/sql/sql.go:1091 +0x105