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

Segfault on Linux 4.4.9 armv6l #439

Closed
mrhmouse opened this issue May 11, 2016 · 18 comments
Closed

Segfault on Linux 4.4.9 armv6l #439

mrhmouse opened this issue May 11, 2016 · 18 comments

Comments

@mrhmouse
Copy link

The following segfaults on my Raspberry Pi:

~$ curl https://sh.rustup.rs -sSfo rustup.sh
~$ chmod +x ./rustup.sh
~$ ./rustup.sh
info: downloading installer
./rustup.sh: line 220:   575 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.PpNF2ChKzq/rustup-init

This worked until attempting to run rustup update today. Unfortunately, I don't know the version of rustup that was being used previously.

@mrhmouse
Copy link
Author

GitHub refuses to let me upload a zip file (suggesting I try a zip file instead...), so here's the dumped core. I had to upload it as a zip file with the txt extension.

@brson
Copy link
Contributor

brson commented May 13, 2016

Thank you for the report and the dump.

@flounders
Copy link

I've having a similar if not the same issue on Arch Linux Arm with Raspberry Pi Model 2 B (armv7l).

$ curl https://sh.rustup.rs -sSf | sh             
info: downloading installer
sh: line 225:   342 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.dVnwFS3Xew/rustup-init

@brson
Copy link
Contributor

brson commented Jul 19, 2016

Perhaps this is related to missing NEON instructions. There was a PR today to install the armv6 toolchain if armv7 without NEON is detected.

@flounders
Copy link

I just tried running running rustup-init.sh from master a few minutes ago, and got pretty much the same error:

$ ./rustup-init.sh
info: downloading installer
./rustup-init.sh: line 238: 12686 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.ybqeQhziBv/rustup-init

@brson
Copy link
Contributor

brson commented Jul 26, 2016

Thanks for checking @flounders.

@brson
Copy link
Contributor

brson commented Aug 11, 2016

#651 This PR updates the build machine toolchain from something ancient to the current stable compiler. Might fix things.

@ghost
Copy link

ghost commented Aug 18, 2016

Both arm and armv7 nightlies segfault on my Rpi2. I don't think this is related to rustup.

@belst
Copy link

belst commented Aug 19, 2016

also have the same problem as op

Linux rpi3 4.4.17-2-ARCH #1 SMP Tue Aug 16 19:17:53 MDT 2016 armv7l GNU/Linux

@ghost
Copy link

ghost commented Aug 19, 2016

Compiling from source also produces an unusable rustc. Errors are identical to rust-lang/rust#33928

@ghost
Copy link

ghost commented Aug 21, 2016

Works fine on Jessie Lite btw, just tested out of curiosity. Is everyone here using Arch Linux?

@flounders
Copy link

I am using Arch Arm. I haven't been able to test anything recently as I just moved and don't have internet at my place, currently at work.

@mrhmouse
Copy link
Author

I was on Arch Arm, but my SD card has died so I'm unable to test until I get a replacement.

@ghost
Copy link

ghost commented Aug 22, 2016

Here's what eventually worked for me:

$ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
$ sudo patchelf --add-needed /usr/lib/libpthread.so.0 $(which rustc)
$ sudo patchelf --add-needed /lib/ld-linux-armhf.so.3 $(which cargo)

@enricostano
Copy link

Works fine on Jessie Lite btw, just tested out of curiosity. Is everyone here using Arch Linux?

Linux alarmpi 4.4.17-2-ARCH #1 Tue Aug 16 19:37:06 MDT 2016 armv6l GNU/Linux

same problem here, the patchelf workaround works though.

@ghost
Copy link

ghost commented Oct 7, 2016

Same for me, patchelf fixed it for me too.
Linux pie 4.4.23-1-ARCH #1 SMP Fri Sep 30 19:06:51 MDT 2016 armv7l GNU/Linux

@flounders
Copy link

Sorry for not testing this sooner. I tried what the ghost user suggested on Aug 22, and it works for me as well.

Linux alarmpi 4.4.39-1-ARCH #1 SMP Sun Dec 18 18:25:13 MST 2016 armv7l GNU/Linux

@kinnison
Copy link
Contributor

Is this still an issue?

@kinnison kinnison closed this as completed Dec 3, 2020
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

6 participants