Skip to content

bump git2/libgit2-sys locked dependencies #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

karlding
Copy link
Contributor

There is a double free in libgit2 that is fixed somewhere between v1.0.0 and v1.1.0. This means that the transitive libgit2-sys dependency needs to be after 0.12.14+1.1.0.

This manifests itself via the following error message on certain repositories:

$ git absorb
free(): double free detected in tcache 2
Aborted (core dumped)

Bump git2 to the latest version, which also updates the transitive libgit2-sys (and libgit2) dependency.

Fixes #69

There is a double free in libgit2 that is fixed somewhere between
v1.0.0 and v1.1.0. This means that the transitive libgit2-sys
dependency needs to be after 0.12.14+1.1.0.

This manifests itself via the following error message on certain
repositories:

    $ git absorb
    free(): double free detected in tcache 2
    Aborted (core dumped)

Bump git2 to the latest version, which also updates the transitive
libgit2-sys (and libgit2) dependency.

Fixes tummychow#69
@tummychow tummychow merged commit 20c5c85 into tummychow:master Nov 17, 2022
@tummychow
Copy link
Owner

very interesting, thanks for going to the trouble of bisecting the upstream crate version. libgit2/libgit2#5600 corroborates your analysis. (and, since you asked, there is unfortunately no better way i know of to debug an issue like this. i would say you did all the expected steps - retrieved a core dump from the reproducing repo, opened a debugger on the core dump, convinced yourself that it was upstream, and bisected your way through the versions). i will tag a release for this one since it's a pretty severe error for those that encounter it

@karlding karlding deleted the fix_double_free branch November 27, 2022 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

double free detected in tcache 2
2 participants