FS#73976 - [cargo-outdated] Rebuild to avoid segfault

Attached to Project: Community Packages
Opened by Danilo (danilo) - Sunday, 27 February 2022, 18:09 GMT
Last edited by Orhun Parmaksız (orhun) - Saturday, 16 April 2022, 23:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To kpcyrd (kpcyrd)
Orhun Parmaksız (orhun)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

cargo-outdated currently segfaults when running in a project with git dependencies, if libgit2 1.4 is installed:

https://github.com/kbknapp/cargo-outdated/issues/307

Top three lines in the coredump stacktrace:

Stack trace of thread 12556:
#0 0x00007f36bad7efc0 n/a (libgit2.so.1.4 + 0xa3fc0)
#1 0x00007f36bad80aae git_remote_fetch (libgit2.so.1.4 + 0xa5aae)
#2 0x0000557cd57eeb11 n/a (cargo-outdated + 0x24bb11)

Solution: Rebuild the crate with latest dependencies.

Additional info:
* package version(s): cargo-outdated 0.10.2-4 and libgit2 1.4.2-1

Steps to reproduce:

Run `cargo outdated` in a project with git dependencies.
This task depends upon

Closed by  Orhun Parmaksız (orhun)
Saturday, 16 April 2022, 23:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  upstream released a new version with the fix (0.11.1-1)
Comment by Danilo (danilo) - Wednesday, 02 March 2022, 09:54 GMT
Actually, rebuilding won't help, see https://github.com/kbknapp/cargo-outdated/issues/307#issuecomment-1056717619.

This affects the 0.11 release as well. We'll have to wait for an upstream fix.
Comment by Orhun Parmaksız (orhun) - Wednesday, 02 March 2022, 21:06 GMT
There is a related bug report in cargo: https://github.com/rust-lang/cargo/issues/10446 (edit: thanks for reporting it there :D)

As you said, rebuilding won't help here. Other cargo-* plugins are potentially affected by this issue as well.

Loading...