goroutine 60349418 [running]: runtime/pprof.writeGoroutineStacks({0x7f437df7cf40, 0xc0002a8050}) runtime/pprof/pprof.go:693 +0x70 runtime/pprof.writeGoroutine({0x7f437df7cf40, 0xc0002a8050}, 0xc00210c5d0) runtime/pprof/pprof.go:682 +0x2b runtime/pprof.(*Profile).WriteTo(0x11e7980, {0x7f437df7cf40, 0xc0002a8050}, 0xc) runtime/pprof/pprof.go:331 +0x14b net/http/pprof.handler.ServeHTTP({0xc0012e66cd, 0x0}, {0x7f437dfcfef0, 0xc0002a8050}, 0x18) net/http/pprof/pprof.go:253 +0x49a net/http/pprof.Index({0x7f437dfcfef0, 0xc0002a8050}, 0xc0007b6200) net/http/pprof/pprof.go:371 +0x12e gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke(0x1b76c30, {0xc0007b8200, 0x2, 0x11bafe0}) gopkg.in/macaron.v1@v1.3.9/macaron.go:50 +0x86 github.com/go-macaron/inject.(*injector).fastInvoke(0xc0001618e8, {0x7f437dd94d68, 0x1b76c30}, {0x1cff3a0, 0x1175ce0}, 0x2) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 +0x95 github.com/go-macaron/inject.(*injector).Invoke(0x1cff3a0, {0x1175ce0, 0x1b76c30}) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 +0xfd gopkg.in/macaron%2ev1.(*Context).run(0xc002b123f0) gopkg.in/macaron.v1@v1.3.9/context.go:121 +0x73 gopkg.in/macaron%2ev1.(*Context).Next(...) gopkg.in/macaron.v1@v1.3.9/context.go:112 gopkg.in/macaron%2ev1.Recovery.func1(0x20, 0x1143e80) gopkg.in/macaron.v1@v1.3.9/recovery.go:161 +0x67 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke(0x122f640, {0xc0007b8020, 0x122f640, 0xaaaaaaaaa}) gopkg.in/macaron.v1@v1.3.9/logger.go:40 +0x65 github.com/go-macaron/inject.(*injector).fastInvoke(0x0, {0x7f437e412418, 0x1b765a8}, {0x1cff3a0, 0x1175be0}, 0x2) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 +0x95 github.com/go-macaron/inject.(*injector).Invoke(0xc000050800, {0x1175be0, 0x1b765a8}) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 +0xfd gopkg.in/macaron%2ev1.(*Context).run(0xc002b123f0) gopkg.in/macaron.v1@v1.3.9/context.go:121 +0x73 gopkg.in/macaron%2ev1.(*Router).Handle.func1({0x1ccca90, 0xc0024a0000}, 0x1281f6b, 0xc0030ec570) gopkg.in/macaron.v1@v1.3.9/router.go:187 +0x285 gopkg.in/macaron%2ev1.(*Router).ServeHTTP(0xc0007dcea0, {0x1ccca90, 0xc0024a0000}, 0xc0007b6200) gopkg.in/macaron.v1@v1.3.9/router.go:303 +0x16d gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP(0xc0002ce280, {0x1ccca90, 0xc0024a0000}, 0xc0007b6200) gopkg.in/macaron.v1@v1.3.9/macaron.go:220 +0x165 net/http.serverHandler.ServeHTTP({0xc0022dd570}, {0x1ccca90, 0xc0024a0000}, 0xc0007b6200) net/http/server.go:2879 +0x43b net/http.initALPNRequest.ServeHTTP({{0x1cd4678, 0xc000835230}, 0xc0018f2380, {0xc001fbcfc0}}, {0x1ccca90, 0xc0024a0000}, 0xc0007b6200) net/http/server.go:3480 +0x245 net/http.(*http2serverConn).runHandler(0x0, 0xc0022dd7d0, 0x78696d, 0xc0020c9320) net/http/h2_bundle.go:5849 +0x78 created by net/http.(*http2serverConn).processHeaders net/http/h2_bundle.go:5579 +0x510 goroutine 1 [IO wait]: internal/poll.runtime_pollWait(0x7f437e60f718, 0x72) runtime/netpoll.go:234 +0x89 internal/poll.(*pollDesc).wait(0xc0020a3280, 0x3e000, 0x0) internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Accept(0xc0020a3280) internal/poll/fd_unix.go:402 +0x22c net.(*netFD).accept(0xc0020a3280) net/fd_unix.go:173 +0x35 net.(*TCPListener).accept(0xc00000fcb0) net/tcpsock_posix.go:140 +0x28 net.(*TCPListener).Accept(0xc00000fcb0) net/tcpsock.go:262 +0x3d crypto/tls.(*listener).Accept(0xc00000fec0) crypto/tls/tls.go:66 +0x2d net/http.(*Server).Serve(0xc001fbcfc0, {0x1ccbb60, 0xc00000fec0}) net/http/server.go:3002 +0x394 net/http.(*Server).ServeTLS(0xc001fbcfc0, {0x1ccc940, 0xc00000fcb0}, {0xc0000a0f79, 0x10}, {0xc0003af481, 0x1d}) net/http/server.go:3074 +0x3fe net/http.(*Server).ListenAndServeTLS(0xc001fbcfc0, {0xc0000a0f79, 0x13}, {0xc0003af481, 0x1d}) net/http/server.go:3229 +0x12f gogs.io/gogs/internal/cmd.runWeb(0xc0001ac2c0) gogs.io/gogs/internal/cmd/web.go:738 +0xfb9 github.com/urfave/cli.HandleAction({0x1121b40, 0x1b748f8}, 0x3) github.com/urfave/cli@v1.22.4/app.go:526 +0xa8 github.com/urfave/cli.Command.Run({{0x1282c0b, 0x3}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x129bc04, 0x10}, {0x0, ...}, ...}, ...) github.com/urfave/cli@v1.22.4/command.go:174 +0x652 github.com/urfave/cli.(*App).Run(0xc0002d9a40, {0xc0000a6000, 0x2, 0x2}) github.com/urfave/cli@v1.22.4/app.go:279 +0x80c main.main() gogs.io/gogs/gogs.go:40 +0x405 goroutine 7 [select, 3 minutes]: unknwon.dev/clog/v2.New.func1() unknwon.dev/clog/v2@v2.1.2/logger.go:183 +0xe5 created by unknwon.dev/clog/v2.New unknwon.dev/clog/v2@v2.1.2/logger.go:180 +0x575 goroutine 8 [chan receive, 54360 minutes]: gogs.io/gogs/internal/email.processMailQueue() gogs.io/gogs/internal/email/message.go:206 +0x5f created by gogs.io/gogs/internal/email.NewContext gogs.io/gogs/internal/email/message.go:229 +0x65 goroutine 9 [select, 748358 minutes]: database/sql.(*DB).connectionOpener(0xc000222ea0, {0x1cd45d0, 0xc0002cc5c0}) database/sql/sql.go:1196 +0x93 created by database/sql.OpenDB database/sql/sql.go:794 +0x188 goroutine 10 [select, 748358 minutes]: database/sql.(*DB).connectionOpener(0xc000223450, {0x1cd45d0, 0xc0002cc640}) database/sql/sql.go:1196 +0x93 created by database/sql.OpenDB database/sql/sql.go:794 +0x188 goroutine 67 [select, 5 minutes]: github.com/gogs/cron.(*Cron).run(0xc000100190) github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 +0x5a5 created by github.com/gogs/cron.(*Cron).Start github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:150 +0x65 goroutine 68 [chan receive, 748358 minutes]: gogs.io/gogs/internal/db.SyncMirrors() gogs.io/gogs/internal/db/mirror.go:318 +0x5c created by gogs.io/gogs/internal/db.InitSyncMirrors gogs.io/gogs/internal/db/mirror.go:453 +0x25 goroutine 69 [chan receive, 67 minutes]: gogs.io/gogs/internal/db.DeliverHooks() gogs.io/gogs/internal/db/webhook.go:788 +0x27d created by gogs.io/gogs/internal/db.InitDeliverHooks gogs.io/gogs/internal/db/webhook.go:808 +0x25 goroutine 70 [chan receive, 67 minutes]: gogs.io/gogs/internal/db.TestPullRequests() gogs.io/gogs/internal/db/pull.go:877 +0x19e created by gogs.io/gogs/internal/db.InitTestPullRequests gogs.io/gogs/internal/db/pull.go:895 +0x25 goroutine 60349448 [IO wait]: internal/poll.runtime_pollWait(0x7f437d733f10, 0x72) runtime/netpoll.go:234 +0x89 internal/poll.(*pollDesc).wait(0xc002b36200, 0xc0007a5500, 0x0) internal/poll/fd_poll_runtime.go:84 +0x32 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:89 internal/poll.(*FD).Read(0xc002b36200, {0xc0007a5500, 0x9d0, 0x9d0}) internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc002b36200, {0xc0007a5500, 0xc0007a5505, 0x1a}) net/fd_posix.go:56 +0x29 net.(*conn).Read(0xc002336010, {0xc0007a5500, 0xc000164908, 0xc000164928}) net/net.go:183 +0x45 crypto/tls.(*atLeastReader).Read(0xc00201a150, {0xc0007a5500, 0x0, 0x412a2d}) crypto/tls/conn.go:777 +0x3d bytes.(*Buffer).ReadFrom(0xc0018f25f8, {0x1ca8740, 0xc00201a150}) bytes/buffer.go:204 +0x98 crypto/tls.(*Conn).readFromUntil(0xc0018f2380, {0x1caa0e0, 0xc002336010}, 0x9d0) crypto/tls/conn.go:799 +0xe5 crypto/tls.(*Conn).readRecordOrCCS(0xc0018f2380, 0x0) crypto/tls/conn.go:606 +0x112 crypto/tls.(*Conn).readRecord(...) crypto/tls/conn.go:574 crypto/tls.(*Conn).Read(0xc0018f2380, {0xc001fbc2d8, 0x9, 0x2}) crypto/tls/conn.go:1277 +0x16f io.ReadAtLeast({0x7f437dfcfeb0, 0xc0018f2380}, {0xc001fbc2d8, 0x9, 0x9}, 0x9) io/io.go:328 +0x9a io.ReadFull(...) io/io.go:347 net/http.http2readFrameHeader({0xc001fbc2d8, 0x9, 0xc002444f40}, {0x7f437dfcfeb0, 0xc0018f2380}) net/http/h2_bundle.go:1555 +0x6e net/http.(*http2Framer).ReadFrame(0xc001fbc2a0) net/http/h2_bundle.go:1813 +0x95 net/http.(*http2serverConn).readFrames(0xc002136300) net/http/h2_bundle.go:4415 +0x91 created by net/http.(*http2serverConn).serve net/http/h2_bundle.go:4521 +0x585 goroutine 60349433 [select]: net/http.(*http2serverConn).serve(0xc002136300) net/http/h2_bundle.go:4529 +0x8ed net/http.(*http2Server).ServeConn(0xc000a358c0, {0x1cea550, 0xc0018f2380}, 0xc000923b48) net/http/h2_bundle.go:4131 +0xa71 net/http.http2ConfigureServer.func1(0xc001fbcfc0, 0x1cea550, {0x1cac140, 0xc00097e3a0}) net/http/h2_bundle.go:3957 +0xe6 net/http.(*conn).serve(0xc0003325a0, {0x1cd4678, 0xc0020c9320}) net/http/server.go:1839 +0x6b8 created by net/http.(*Server).Serve net/http/server.go:3034 +0x4e8