Skip to content
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 segfaults #674

Closed
0xdeafbeef opened this issue Mar 18, 2022 · 1 comment
Closed

Cargo add segfaults #674

0xdeafbeef opened this issue Mar 18, 2022 · 1 comment

Comments

@0xdeafbeef
Copy link

❯ cargo add clap --features derive
    Updating 'https://github.com/rust-lang/crates.io-index' index
[1]    2426640 segmentation fault (core dumped)  cargo add clap --features derive

coredump info:

  Message: Process 2426640 (cargo-add) of user 1000 dumped core.
                
                Module /home/odm3n/.cargo/bin/cargo-add with build-id 1e1fac2e5049da9d
                Module linux-vdso.so.1 with build-id 6318c4a6aee96a4b3563df9857aef147f8c4bc48
                Module libdl.so.2 with build-id bb9bd2657bfba9f60bd34d2050cc63a7eb024bc4
                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 4c926b672d97886b123e03a008387aecf0786de4
                Module libssl.so.1.1 with build-id 1024424ab33a3767da03f4fdb1fc1b02479f160f
                Module libgit2.so.1.4 with build-id c0d036dddc2044070404f7ae5e65b4464588f4ca
                Stack trace of thread 2426640:
                #0  0x00007f120a643fc0 n/a (libgit2.so.1.4 + 0xa3fc0)
                #1  0x00007f120a645aae git_remote_fetch (libgit2.so.1.4 + 0xa5aae)
                #2  0x000055cc36601a7e n/a (/home/odm3n/.cargo/bin/cargo-add + 0x30da7e)
                #3  0x0000000000000001 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

Kernel: 5.15.28-1

cargo install cargo-edit --locked -f doesn't resolve the problem

cargo install cargo-edit --git https://github.com/killercup/cargo-edit.git fixes it

@0xdeafbeef
Copy link
Author

Duplicate of #641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant