-
Notifications
You must be signed in to change notification settings - Fork 161
cargo add: Segfault with libgit2 1.4.1 #641
Copy link
Copy link
Closed
Description
Hi, I just installed cargo-edit on Archlinux with cargo install cargo-edit.
Whenever I try to use cargo add in this way
cargo add scraper # example library
That's what I get:
Updating 'https://github.com/rust-lang/crates.io-index' index
Segmentation fault (core dumped
This is the relevant section of the core dump:
Core was generated by `/home/paolo/.cargo/bin/cargo-add add scraper'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f82d2038fc0 in ?? () from /usr/lib/libgit2.so.1.4
(gdb) bt
#0 0x00007f82d2038fc0 in ?? () from /usr/lib/libgit2.so.1.4
#1 0x00007f82d203aaae in git_remote_fetch () from /usr/lib/libgit2.so.1.4
#2 0x0000555c2c59788c in git2::remote::Remote::fetch ()
#3 0x0000555c2c58c9db in crates_index::bare_index::BareIndexRepo::retrieve ()
It looks like the segfault comes from libgit2.so - although other libraries linking with it are working fine (that's why I'm reporting it here).
The libgit2 version on Archlinux is 1:1.4.1-1 (that's today's update, that broke cargo-edit).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels