kbknapp / cargo-outdated

A cargo subcommand for displaying when Rust dependencies are out of date
MIT License
1.23k stars 96 forks source link

cargo-oudated SIGSEGV on stable-x86_64-unknown-linux-musl #305

Closed kolbma closed 2 years ago

kolbma commented 2 years ago

When trying to run cargo outdated on stable-x86_64-unknown-linux-musl on Alpine Linux 3.15 there is a SIGSEGV. Installation was without problems.

stat("/home/rocket/.cargo/bin/cargo-outdated", {st_mode=S_IFREG|0755, st_size=11303328, ...}) = 0
readlink("/proc/self/exe", "/home/rocket/.rustup/toolchains/"..., 256) = 74
readlink("/home", 0x7ffc041b719f, 4027) = -1 EINVAL (Invalid argument)
readlink("/home/rocket", 0x7ffc041b719f, 4034) = -1 EINVAL (Invalid argument)
readlink("/home/rocket/.rustup", 0x7ffc041b719f, 4042) = -1 EINVAL (Invalid argument)
readlink("/home/rocket/.rustup/toolchains", 0x7ffc041b719f, 4053) = -1 EINVAL (Invalid argument)
readlink("/home/rocket/.rustup/toolchains/stable-x86_64-unknown-linux-musl", 0x7ffc041b719f, 4086) = -1 EINVAL (Invalid argument)
readlink("/home/rocket/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin", 0x7ffc041b719f, 4090) = -1 EINVAL (Invalid argument)
readlink("/home/rocket/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/cargo", 0x7ffc041b719f, 4096) = -1 EINVAL (Invalid argument)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1b9e48bc8a}, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1b9e48bc8a}, 8) = 0
execve("/home/rocket/.cargo/bin/cargo-outdated", ["/home/rocket/.cargo/bin/cargo-ou"..., "outdated"], 0x7f1b9e373a40 /* 27 vars */) = 0
mmap(NULL, 736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb5179ee000
arch_prctl(ARCH_SET_FS, 0x7fb5179ee200) = 0
set_tid_address(0x7fb517ac93e0)         = 17432
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV +++
Segmentation fault
kolbma commented 2 years ago

I close it here... see https://github.com/rust-lang/rust/issues/93084 for workaround