-
Notifications
You must be signed in to change notification settings - Fork 96
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
Segmentation fault on version v0.10.2 with no reason #307
Comments
I also ran into this issue. This is probably an incompatibility in git2-rs with the libgit2 system library (which will be addressed in the next release). In my case the segmentation fault happened because I had libgit2 1.4.1 installed. Rebuilding cargo-outdated without libgit2 or after downgrading libgit2 to 1.3 solved this issue for me. It should also be possible to enable the vendored-libgit2 feature of git2-rs instead of relying on it being compatible (and always up to date) with an external library? |
Can confirm what @stefan0xC wrote. :) I downgraded libgit2 to 1.3.0 and now it's working! :) Thanks @stefan0xC ! |
There has been a new git2-rs release shortly after I linked the issue that is compatible with libgit2 1.4.1 so downgrading is not necessary anymore. However, you'd need to run |
You are right, after upgrading to 1.4.1 and installing the unlocked cargo-outdated version, it's now working. :) |
Can you try again with v0.11.0? |
When I run
|
I think the reason for this is that the The other dependency which depends on libgit2 is
Then I guess we'll have to wait for upstream releases. (This is quite a PITA, as it also affects other cargo plugins like |
Does somebody know what's the relevant commit/change in git2 0.13 -> 0.14, git2-curl 0.14 -> 0.15.0, libgit2-sys 0.12 -> 0.13? Can this be backported? |
Can confirm, it's still broken with |
See also [1][2]. Fixes #307. [1] rust-lang/git2-rs#813 [2] rust-lang/cargo#10446
It's been over a month and it's still a problem on Manjaro. Is there a way to use cargo-outdated without getting a segfault? |
A possible workaround appears to be Meanwhile another affected project, cargo-edit, has now been released with vendored libgit2. |
@niklasf Thanks for the workaround! I must ask, why does one command affect the way another command behaves? Does it alter the environment in some way? |
It is because running |
Heyho, when I try to run
cargo outdated
on my project:https://gitlab.com/kerkmann/clappy/-/tree/dcf932e26c4157d3a0598a54f35545ca8e1a051b
I just receive an segmentation fault. :(
The last lines of the debug log is:
Appended the entire log. :)
debug.log
The text was updated successfully, but these errors were encountered: