mirror of
https://github.com/go-gitea/git.git
synced 2026-07-18 20:44:38 -04:00
[GH-ISSUE #125] Gitea crashes in "code.gitea.io/git/commit_info.go:218 +0x288" #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ganto on GitHub (Jun 19, 2018).
Original GitHub issue: https://github.com/go-gitea/git/issues/125
I have a self-hosted gitea instance (currently v1.4.2) where I'm trying to import all my old git repositories. However, I found one that can crash the gitea instance when accessing it through the Web interface:
This only happens with this individual repository, so there must be somehow an issue with parsing the git metadata. A regular git client can handle the repository without issue.
I could reproduce the issue on
try.gitea.iowhere I created the commitsegv repository a few minutes ago. If you want to check the logs: Jun 19, 2018 ~08:10h CEST.The git repository which is able to crash gitea is also available here. To reproduce the bug, enter the URL in a new gitea migrate screen and after the repository is migrated, try to access the Web interface.
If you need more information, please let me know.
@ganto commented on GitHub (Jun 19, 2018):
After building gitea locally on my machine and starting it directly from the build directory, the following message was giving additional hints to nail down the culprit:
This part of the repository was originally converted to git from svn and for an unknown reason is missing the name portion in the author and committer fields.
I'm not super fluent in reading go code, but might it be, that this module is not able to handle this case?
Gitea crashes in "code.gitea.io/git/commit_info.go:218 +0x288"to [GH-ISSUE #125] Gitea crashes in "code.gitea.io/git/commit_info.go:218 +0x288"