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

Rustup-init 0.6.5 for ARMv7 causes segmentation fault #838

Closed
wafrelka opened this issue Nov 25, 2016 · 7 comments
Closed

Rustup-init 0.6.5 for ARMv7 causes segmentation fault #838

wafrelka opened this issue Nov 25, 2016 · 7 comments
Labels

Comments

@wafrelka
Copy link

wafrelka commented Nov 25, 2016

I couldn't tell where to report, so I report the issue here.

Rustup-init v0.6.5 for ARMv7 (https://static.rust-lang.org/rustup/dist/armv7-unknown-linux-gnueabihf/rustup-init) causes segfault on Raspberry Pi 2.
I suspect this is caused by rust-lang/rust#35843, because patchelf --add-needed /lib/ld-linux-armhf.so.3 rustup-init fixes the issue.

Would you recompile the binary with the latest rustc?

@wafrelka wafrelka changed the title Rustup-init for ARMv7 causes segmentation fault Rustup-init 0.6.5 for ARMv7 causes segmentation fault Nov 25, 2016
@Darkeye9
Copy link

Darkeye9 commented Dec 7, 2016

Yeah you solved my day! I don't know why this wouldn't show up on google, I had to search "armv7" on the issues to reach it...

@brson
Copy link
Contributor

brson commented Dec 15, 2016

Thanks for the report!

Here's a PR to upgrade the toolchain #859

@brson brson added the bug label Dec 15, 2016
bors added a commit that referenced this issue Dec 16, 2016
Upgrade build toolchain

Upgrade to a newer Rust. I kind of want this to land after 1.0, but whatever.

May fix #838
@caizixian
Copy link

Rustup-init v1.0.0 https://static.rust-lang.org/rustup/dist/arm-unknown-linux-gnueabihf/rustup-init still causes segfault on Raspberry Pi 2.

So I end up using the package provided by Arch Linux ARM

https://archlinuxarm.org/packages/armv7h/rustup/files/PKGBUILD

@Darkeye9
Copy link

Darkeye9 commented Jan 6, 2017

Yes, as Rustup has entered 1.0 version, Arch Linux at least has included it into the official repos, yay! ^^

@causal-agent
Copy link

causal-agent commented Mar 19, 2017

This is still happening for me on armv7-unknown-linux-gnueabihf:

info: downloading installer
./rustuprs.sh: line 318:  7382 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.aL86YoECb6/rustup-init

Backtrace:

Program received signal SIGILL, Illegal instruction.
0x2a20e768 in _armv7_tick ()
(gdb) bt
#0  0x2a20e768 in _armv7_tick ()
#1  0x2a0440b2 in OPENSSL_cpuid_setup ()
#2  0x2a3519e4 in __libc_csu_init ()
#3  0xb6e1a84c in __libc_start_main () from /usr/lib/libc.so.6
#4  0x2a0441c2 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

This is an HP Chromebook 11 (CB11) running Arch Linux ARM:

Linux tuesday 3.8.11-4-ARCH #1 SMP Sat Oct 22 11:59:55 MDT 2016 armv7l GNU/Linux
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 48.00
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc0f
CPU revision	: 4

processor	: 1
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 48.00
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc0f
CPU revision	: 4

Hardware	: SAMSUNG EXYNOS5 (Flattened Device Tree)
Revision	: 0000
Serial		: 0000000000000000

@causal-agent
Copy link

According to this Raspbian issue, it's totally normal for OpenSSL to cause SIGILL and I need to continue past them to find the real error!

@Diggsey
Copy link
Contributor

Diggsey commented May 4, 2017

This seems to be a dupe of #439

@Diggsey Diggsey closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants