goroutine 16645 [running]: runtime/pprof.writeGoroutineStacks({0x7f51c9dabd28, 0xc003314050}) runtime/pprof/pprof.go:694 +0x70 runtime/pprof.writeGoroutine({0x7f51c9dabd28?, 0xc003314050?}, 0xc002087890?) runtime/pprof/pprof.go:683 +0x2b runtime/pprof.(*Profile).WriteTo(0x11d4de0?, {0x7f51c9dabd28?, 0xc003314050?}, 0xc?) runtime/pprof/pprof.go:332 +0x14b net/http/pprof.handler.ServeHTTP({0xc001c2c071, 0x9}, {0x7f51c9dabcf8, 0xc003314050}, 0x0?) net/http/pprof/pprof.go:253 +0x4a5 net/http/pprof.Index({0x7f51c9dabcf8?, 0xc003314050}, 0xc0007d0500) net/http/pprof/pprof.go:371 +0x13e gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke(0x1b7c300, {0xc0008342a0, 0x2, 0x11a76a0?}) gopkg.in/macaron.v1@v1.3.9/macaron.go:50 +0x86 github.com/go-macaron/inject.(*injector).fastInvoke(0xc0025cb6e8?, {0x7f51c9e1b3b8?, 0x1b7c300?}, {0x1cddd30?, 0x1161d60?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 +0x95 github.com/go-macaron/inject.(*injector).Invoke(0x1cddd30?, {0x1161d60?, 0x1b7c300}) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 +0xfd gopkg.in/macaron%2ev1.(*Context).run(0xc000144900) 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?, 0x112f6a0?) gopkg.in/macaron.v1@v1.3.9/recovery.go:161 +0x67 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke(0x121e820?, {0xc000834060?, 0x121e820?, 0xc0025cb850?}) gopkg.in/macaron.v1@v1.3.9/logger.go:40 +0x65 github.com/go-macaron/inject.(*injector).fastInvoke(0x16?, {0x7f51c9dabc58?, 0x1b7bc70?}, {0x1cddd30?, 0x1161c60?}, 0x2?) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 +0x95 github.com/go-macaron/inject.(*injector).Invoke(0xc002154800?, {0x1161c60?, 0x1b7bc70}) github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 +0xfd gopkg.in/macaron%2ev1.(*Context).run(0xc000144900) gopkg.in/macaron.v1@v1.3.9/context.go:121 +0x73 gopkg.in/macaron%2ev1.(*Router).Handle.func1({0x1cd5208?, 0xc0002ce0e0?}, 0x127218d?, 0xc002280150) gopkg.in/macaron.v1@v1.3.9/router.go:187 +0x285 gopkg.in/macaron%2ev1.(*Router).ServeHTTP(0xc000095800, {0x1cd5208, 0xc0002ce0e0}, 0xc0007d0500) gopkg.in/macaron.v1@v1.3.9/router.go:303 +0x16d gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP(0xc000249080, {0x1cd5208, 0xc0002ce0e0}, 0xc0007d0500) gopkg.in/macaron.v1@v1.3.9/macaron.go:220 +0x165 net/http.serverHandler.ServeHTTP({0xc002280090?}, {0x1cd5208, 0xc0002ce0e0}, 0xc0007d0500) net/http/server.go:2916 +0x43b net/http.(*conn).serve(0xc001f9a000, {0x1cd5d68, 0xc0020872f0}) net/http/server.go:1966 +0x5d7 created by net/http.(*Server).Serve net/http/server.go:3071 +0x4db goroutine 1 [IO wait]: internal/poll.runtime_pollWait(0x7f51f436d8a8, 0x72) runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc002075400?, 0xc00003c000?, 0x0) internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc002075400) internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc002075400) net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00202a210) net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00202a210) net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc00200afc0, {0x1cd4ff8, 0xc00202a210}) net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc00200afc0) net/http/server.go:2968 +0x7d net/http.ListenAndServe(...) net/http/server.go:3222 gogs.io/gogs/internal/cmd.runWeb(0xc0001222c0) gogs.io/gogs/internal/cmd/web.go:710 +0xcbd github.com/urfave/cli.HandleAction({0x110cbc0?, 0x1b79fb8?}, 0x3?) github.com/urfave/cli@v1.22.4/app.go:526 +0xa8 github.com/urfave/cli.Command.Run({{0x1272e2e, 0x3}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x128c1be, 0x10}, {0x0, ...}, ...}, ...) github.com/urfave/cli@v1.22.4/command.go:174 +0x652 github.com/urfave/cli.(*App).Run(0xc000251a40, {0xc00009e000, 0x2, 0x2}) github.com/urfave/cli@v1.22.4/app.go:279 +0x91b 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 +0xdc created by unknwon.dev/clog/v2.New unknwon.dev/clog/v2@v2.1.2/logger.go:180 +0x573 goroutine 9 [select, 717 minutes]: database/sql.(*DB).connectionOpener(0xc0002cdc70, {0x1cd5cc0, 0xc0002462c0}) database/sql/sql.go:1226 +0x8d created by database/sql.OpenDB database/sql/sql.go:794 +0x18d goroutine 10 [select, 717 minutes]: database/sql.(*DB).connectionOpener(0xc0002f9110, {0x1cd5cc0, 0xc000246440}) database/sql/sql.go:1226 +0x8d created by database/sql.OpenDB database/sql/sql.go:794 +0x18d goroutine 37 [select, 9 minutes]: github.com/gogs/cron.(*Cron).run(0xc000080190) github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 +0x596 created by github.com/gogs/cron.(*Cron).Start github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:150 +0x65 goroutine 38 [chan receive, 717 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 39 [chan receive, 298 minutes]: gogs.io/gogs/internal/db.DeliverHooks() gogs.io/gogs/internal/db/webhook.go:800 +0x265 created by gogs.io/gogs/internal/db.InitDeliverHooks gogs.io/gogs/internal/db/webhook.go:820 +0x25 goroutine 40 [chan receive, 717 minutes]: gogs.io/gogs/internal/db.TestPullRequests() gogs.io/gogs/internal/db/pull.go:877 +0x1a5 created by gogs.io/gogs/internal/db.InitTestPullRequests gogs.io/gogs/internal/db/pull.go:895 +0x25 goroutine 16646 [IO wait]: internal/poll.runtime_pollWait(0x7f51f436d218, 0x72) runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000772000?, 0xc0022800a1?, 0x0) internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Read(0xc000772000, {0xc0022800a1, 0x1, 0x1}) internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc000772000, {0xc0022800a1?, 0x415900?, 0xc001f96b40?}) net/fd_posix.go:55 +0x29 net.(*conn).Read(0xc0022fe000, {0xc0022800a1?, 0x7b83c5?, 0xc0020693e0?}) net/net.go:183 +0x45 net/http.(*connReader).backgroundRead(0xc002280090) net/http/server.go:672 +0x3f created by net/http.(*connReader).startBackgroundRead net/http/server.go:668 +0xca