Skip to content

cannot allocate memory after opening truncated diff (possible memory leak) #2669

Closed
@mrexodia

Description

@mrexodia

Description

Log

2017/10/06 21:18:00 [I] Log Mode: File(Info)
2017/10/06 21:18:01 [I] XORM Log Mode: File(Info)
2017/10/06 21:18:01 [I] Cache Service Enabled
2017/10/06 21:18:01 [I] Session Service Enabled
2017/10/06 21:18:01 [I] Mail Service Enabled
2017/10/06 21:18:01 [I] Register Mail Service Enabled
2017/10/06 21:18:01 [I] Notify Mail Service Enabled
2017/10/06 21:18:01 [I] Git Version: 2.1.4
2017/10/06 21:18:01 [I] SQLite3 Supported
2017/10/06 21:18:01 [I] Run Mode: Production
2017/10/06 21:18:04 [I] Listen: http://0.0.0.0:3000
2017/10/06 21:35:22 [...ules/context/repo.go:318 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
2017/10/06 21:35:26 [...ules/context/repo.go:318 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
2017/10/06 21:36:37 [...ules/context/repo.go:318 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
2017/10/06 21:36:38 [...ules/context/repo.go:318 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory
2017/10/06 21:36:39 [...ules/context/repo.go:318 func1()] [E] GetTags: fork/exec /usr/bin/git: cannot allocate memory

Screenshots

Here is a video showing exactly how I reproduced the problem on a just-started gitea instance. I tried this about 4 times and it happens every time. It might be possible to reproduce on a system with more memory by cloning this repo multiple times and opening the offending diff a bunch of times as well, but I didn't test this yet.

https://youtu.be/RynWvzilbaQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions