rust-lang / rust-lang/git2-rs

Too many open files issue from libgit2

Open
#626 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.1k
Forks
450
Avg merge
11m
Merged PRs (30d)
1

Description

My program, that uses git2 crushes ~every week because of leaking descriptors. This is probably caused by https://github.com/libgit2/libgit2/issues/2758, which was fixed a while ago.

Is it possible to fix the rust binding too? (If I understand right, this requires an update of the libgit2 dependency)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the libgit2 dependency declaration in the Rust binding and read libgit2 issue 2758 to confirm the fixed version and compatibility requirements. Verify the updated binding no longer exposes the reported descriptor leak and that the existing checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.