-
Notifications
You must be signed in to change notification settings - Fork 904
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
Segfault on NetBSD when run from $PATH #388
Comments
Here's a VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "kja/netbsd-7-amd64"
config.vm.hostname = "rustup-issue-388"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.name = "rustup-issue-388"
vb.cpus = 1
vb.memory = 4*1024
end
config.vm.provision :shell, privileged: false, inline: <<-SHELL
wget --no-check-certificate https://static.rust-lang.org/rustup/dist/x86_64-unknown-netbsd/rustup-init
chmod +x rustup-init
./rustup-init -y --default-toolchain=nightly
SHELL
end Assuming you have Vagrant and VirtualBox installed, save this as |
Sorry I haven't looked into this. I'm not a NetBSD user so it's just a low priority for me. Help wanted. |
Hello, i use NetBSD i could try to help you. I could do some tests. |
@erde74 Thank you! Have you reproduced this? One thing you might try to do is build it locally in debug mode and see if you can figure out with a debugger where the crash is happening. |
do you mean rustup.rs or rustc and cargo? i tried to build rustup.rs and it works like expected. i need to mention if i modify my path from export PATH="$PATH:$HOME/.cargo/bin" to export PATH="$HOME/.multirust/toolchains/stable-x86_64-unknown-netbsd/bin:$PATH" and now it works. |
Hello,
after
it seems to work like it should. |
@erde74 Thank you for the investigation! Perhaps there's a problem with our build environment. It looks like we're using Ubuntu's NetBSD toolchain on @alexcrichton's docker image. Not sure what Ubuntu that's based off of. We could possibly try to reproduce it there, possibly adjust the build settings on the bots for either rustc or gcc to add debug info, reduce optimizations see if we can stir up more information. |
Since rustup seems to work when run directly on NetBSD, and the rustc LLVM backend is the same regardless of host platform, I might guess that the crash is in OpenBSD, the only C program that's part of the build, that uses the Ubuntu NetBSD cross compiler. |
In #635 @Boddlnagg discovered that our builds are using an ancient toolchain. Upgrading that may fix this problem. |
Toolchain upgrade: #651 |
i got this now, while running rustup if i do "/home/stefan/.cargo/bin/rustup" it works #0 0x00007f7fff935370 in ?? () |
I have seen the same problem, but it seems to be solved on the current master (fcc0396). |
When running
rustup
without an explicit path, I get a segmentation fault:It works when run with an explicit path:
The same is true for the tools installed by
rustup
:This is on a fresh install of NetBSD 7.0 on a virtual machine:
The backtrace ends at a NULL pointer:
I installed from the
rustup-init
binary in the README, because NetBSD doesn't seem to be supported bycurl https://sh.rustup.rs -sSf | sh
:The text was updated successfully, but these errors were encountered: