Skip to content

git2 repository update lead to read zlib stream error when fetch repo #8258

Closed
rust-lang/git2-rs
#567
@jongwu

Description

@jongwu

Problem
there maybe a bug in the latest cargo dependency repo of git2 which will lead to "error reading from the zlib stream" when fetch a certain repo (I don't know which of its group) in cargo build.
I have not detected why these happen, but I confirm that it is the git2 repo(0.12, 0.12+) in cargo dependency cause the error.
Steps
I have just one example to reproduce the error.

  1. go get github.com/kata-containers/kata-containers
  2. cd $(GOPATH)/github.com/kata-containers/kata-containers/ && git checkout 7087b5f43c86367f78d28
  3. make
    be patient, then you will get the error log.

Possible Solution(s)
I'm not familiar with libgit2, so I can't tell why this happen, only, I can tell the error come from git_packfile_stream_read in the libgit2/src/pack.c

Notes

Output of cargo version:

I have tested cargo 1.43.1 even the latest cargo from source code (13bded9)

@wycats @halorgium @alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions