gogs: Huge diff causes out of memory
After requesting a huge diff the server returns 500 errors. I’m guessing the data is never freed.
$ ./gogs web
2015/10/15 15:25:19 [T] Custom path: /home/gogs/custom
2015/10/15 15:25:19 [T] Log path: /home/gogs/log
2015/10/15 15:25:19 [I] Gogs: Go Git Service 0.6.16.1008 Beta
2015/10/15 15:25:19 [I] Log Mode: File(Info)
2015/10/15 15:25:19 [I] Cache Service Enabled
2015/10/15 15:25:19 [I] Session Service Enabled
2015/10/15 15:25:19 [I] Run Mode: Production
2015/10/15 15:25:19 [T] Doing: CheckRepoStats
2015/10/15 15:25:20 [I] Listen: http://0.0.0.0:3000
[Macaron] Started GET /webhat/jobs/commit/638b05b8b81e8cab485bb9e67d9ef39b22a20739 for X.X.X.X
2015/10/15 15:25:53 [W] Diff data too large
[Macaron] Started GET / for X.X.X.X
[Macaron] Completed / 200 OK in 1.847545929s
[Macaron] Started GET /avatars/2 for X.X.X.X
[Macaron] [Static] Serving /2
[Macaron] Completed /avatars/2 304 Not Modified in 977.191µs
[Macaron] Started GET /avatars/4 for X.X.X.X
[Macaron] [Static] Serving /4
[Macaron] Completed /avatars/4 304 Not Modified in 143.42µs
[Macaron] Started GET /webhat/jobs for X.X.X.X
2015/10/15 15:26:29 [...s/middleware/repo.go:321 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
[Macaron] Completed /webhat/jobs 500 Internal Server Error in 105.414694ms
[Macaron] Started GET /js/gogs.js?v=0.6.16.1008%20Beta for X.X.X.X
[Macaron] Started GET /css/gogs.css?v=0.6.16.1008%20Beta for X.X.X.X
[Macaron] [Static] Serving /js/gogs.js
[Macaron] Completed /js/gogs.js?v=0.6.16.1008%20Beta 304 Not Modified in 5.32421ms
[Macaron] [Static] Serving /css/gogs.css
[Macaron] Completed /css/gogs.css?v=0.6.16.1008%20Beta 304 Not Modified in 3.723538ms
[Macaron] Started GET /img/500.png for X.X.X.X
[Macaron] [Static] Serving /img/500.png
[Macaron] Completed /img/500.png 200 OK in 20.761721ms
[Macaron] Started GET / for X.X.X.X
[Macaron] Completed / 200 OK in 571.088665ms
[Macaron] Started GET /webhat/jobs/src/master for X.X.X.X
[Macaron] Completed /webhat/jobs/src/master 500 Internal Server Error in 373.698742ms
2015/10/15 15:26:42 [...s/middleware/repo.go:321 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
[Macaron] Started GET /css/gogs.css?v=0.6.16.1008%20Beta for X.X.X.X
[Macaron] Started GET /js/gogs.js?v=0.6.16.1008%20Beta for X.X.X.X
[Macaron] [Static] Serving /css/gogs.css
[Macaron] Completed /css/gogs.css?v=0.6.16.1008%20Beta 304 Not Modified in 2.670188ms
[Macaron] [Static] Serving /js/gogs.js
[Macaron] Completed /js/gogs.js?v=0.6.16.1008%20Beta 304 Not Modified in 3.38677ms
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 20 (12 by maintainers)
Commits related to this issue
- #1790 fast return for too large diff — committed to gogs/gogs by unknwon 9 years ago
@webhat no further information means cannot debug the problem. 😳