-
Notifications
You must be signed in to change notification settings - Fork 150
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
cargo add: Segfault with libgit2 1.4.1 #641
Comments
I'm getting the same segfault with fw so this might be an issue with the git2 crate. |
I can reproduce on arch with libgit2 1:1.4.1-1 from the repo or with a local build of libgit2 from HEAD (eca9e1cf), and cargo-edit from
|
Look like git2-rs is working on updating to 1.4.1 rust-lang/git2-rs#811 |
I actually can't reproduce this with cargo-edit built from current HEAD (1ae4c68).
No more segfault now. |
I can confirm. Building the master branch fixes it for me too. |
I can confirm as well, I have investigated this issue and notified upstream in rust-lang/git2-rs/issues/813. |
Is there any workaround for this issue? |
Installing with |
As an update, upstreaming cargo-add into cargo is now in the Final Comment Period. It'll then have to go through the regular release process before its in people's hands. |
@epage Are you planning to release a new crate version with git2 updated from 0.13=>0.14? (this change is in master) There are other crates which have a cargo-edit dependency (e.g. rustsec) which cannot be updated to git2 0.14 until there is a released version of cargo-add that specifies git2 0.14. See also #554 |
I don't think I have release privileges for cargo-edit. |
ArchLinux user, I got this too: Message: Process 208951 (cargo-upgrade) of user 1000 dumped core.
Module linux-vdso.so.1 with build-id 51db189818659c9fea8a9001ec3fc23c6cf4996f
Module libpthread.so.0 with build-id 7fa8b52fae071a370ba4ca32bf9490a30aff31c4
Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
Module libssh2.so.1 with build-id a4adfe44cc7ebd295b3b783361acc3dcfcea1d50
Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
Module libhttp_parser.so.2.9 with build-id a7b44d494c1e52a62efd933ab2f7b37dae9482e1
Module ld-linux-x86-64.so.2 with build-id c09c6f50f6bcec73c64a0b4be77eadb8f7202410
Module libc.so.6 with build-id 85766e9d8458b16e9c7ce6e07c712c02b8471dbc
Module libm.so.6 with build-id 596b63a006a4386dcab30912d2b54a7a61827b07
Module libgcc_s.so.1 with build-id 5d817452a709ca3a213341555ddcf446ecee37fa
Module libcrypto.so.1.1 with build-id f94a24f9ce8f3f394c3df23f7d436796797d4459
Module libssl.so.1.1 with build-id 54f796076979dc9b6ff9ac3c39e250db86652924
Module libgit2.so.1.4 with build-id c0d036dddc2044070404f7ae5e65b4464588f4ca
Module cargo-upgrade with build-id 8464ee8fe179016cb63bb395fb1cc7b7cabf7efd
Stack trace of thread 208951:
#0 0x00007f826520ffc0 n/a (libgit2.so.1.4 + 0xa3fc0)
#1 0x00007f8265211aae git_remote_fetch (libgit2.so.1.4 + 0xa5aae)
#2 0x00005641a47e5f1c n/a (cargo-upgrade + 0x100f1c)
#3 0x00005641a47da6fb n/a (cargo-upgrade + 0xf56fb)
#4 0x00005641a47a7308 n/a (cargo-upgrade + 0xc2308)
#5 0x00005641a4738a2c n/a (cargo-upgrade + 0x53a2c)
#6 0x00005641a473d6ef n/a (cargo-upgrade + 0x586ef)
#7 0x00005641a474c993 n/a (cargo-upgrade + 0x67993)
#8 0x00005641a474c989 n/a (cargo-upgrade + 0x67989)
#9 0x00005641a48cc3de n/a (cargo-upgrade + 0x1e73de)
#10 0x00005641a473e032 n/a (cargo-upgrade + 0x59032)
#11 0x00007f8264b14310 __libc_start_call_main (libc.so.6 + 0x2d310)
#12 0x00007f8264b143c1 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2d3c1)
#13 0x00005641a472c2b5 n/a (cargo-upgrade + 0x472b5)
ELF object binary architecture: AMD x86-64
|
@killercup mind doing a release or giving me privileges to do one? |
@epage i tried adding you but i'm getting a 503 from crates.io. I'll retry in a couple minutes Edit: Oh, seems like you have a pending invite even though I got an error! |
@epage did the invite work for you? |
Yes, and thanks for the followup, I never got a notification about the invite or your previous post. |
Since git2 vendoring is listed as the fix and that is now released in cargo-edit as the default, I'm going to close this. |
Hi, I just installed
cargo-edit
on Archlinux withcargo install cargo-edit
.Whenever I try to use
cargo add
in this wayThat's what I get:
This is the relevant section of the core dump:
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).
The text was updated successfully, but these errors were encountered: