Skip to content

Segfault on NetBSD when run from $PATH #388

Closed
@dcuddeback

Description

@dcuddeback

When running rustup without an explicit path, I get a segmentation fault:

$ rustup --version
Segmentation fault (core dumped)
$ which rustup
/home/david/.cargo/bin/rustup
$ echo $PATH
/home/david/.cargo/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin

It works when run with an explicit path:

$ ~/.cargo/bin/rustup --version
rustup 0.1.8 (3cb86ed 2016-04-28)

The same is true for the tools installed by rustup:

$ ~/.cargo/bin/rustc --version
rustc 1.10.0-nightly (8da2bcac5 2016-04-28)
$ rustc --version
Segmentation fault (core dumped)
$ which rustc
/home/david/.cargo/bin/rustc

This is on a fresh install of NetBSD 7.0 on a virtual machine:

$ uname -a
NetBSD netbsd-7-dev 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64

The backtrace ends at a NULL pointer:

$ gdb -q ~/.cargo/bin/rustup rustup.core -ex bt
Reading symbols from /home/david/.cargo/bin/rustup...done.
[New process 1]
Core was generated by `rustup'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f7ffffde370 in ?? ()
#0  0x00007f7ffffde370 in ?? ()
#1  0x000000000062856a in ?? ()
#2  0x0000000000a09a90 in ?? ()
#3  0x00007f7ffffde404 in ?? ()
#4  0x0000000000000000 in ?? ()

I installed from the rustup-init binary in the README, because NetBSD doesn't seem to be supported by curl https://sh.rustup.rs -sSf | sh:

wget --no-check-certificate https://static.rust-lang.org/rustup/dist/x86_64-unknown-netbsd/rustup-init
chmod +x rustup-init
./rustup-init --default-toolchain=nightly -y

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions