Segfault when calling index.AddAll
#917
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#917
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
We have experienced
index.AddAll
causing segfaults. The exact same code depending on the machine it is running on and the repository it is adding files to, may consistently result in asegfault
from a background thread:signal: segmentation fault (core dumped)
.In other cases, it may not happen as consistently or not happen at all.
The code extract below is what led to the segfault:
235edabafd/controllers/imageupdateautomation_controller.go (L627)
Versions:
github.com/libgit2/git2go/v33 v33.0.9
libgit2 v1.3.1
Relates to https://github.com/fluxcd/image-automation-controller/issues/339