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

rustc segfaults on Beaglebone #36465

Closed
japaric opened this issue Sep 14, 2016 · 1 comment
Closed

rustc segfaults on Beaglebone #36465

japaric opened this issue Sep 14, 2016 · 1 comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state

Comments

@japaric
Copy link
Member

japaric commented Sep 14, 2016

# omitted: install https://static.rust-lang.org/dist/2016-09-13/rustc-nightly-arm-unknown-linux-gnueabihf.tar.gz

$ gdb rustc
(gdb) run -V
Starting program: rustc -V
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb2ef57b4 in __pthread_initialize_minimal_internal () from /usr/lib/libpthread.so.0
#2  0xb2ef4d54 in _init () from /usr/lib/libpthread.so.0
#3  0xb6fdf2e8 in call_init.part () from /lib/ld-linux-armhf.so.3
#4  0xb6fdf4b8 in _dl_init () from /lib/ld-linux-armhf.so.3
#5  0xb6fcfbc4 in _dl_start_user () from /lib/ld-linux-armhf.so.3

The armv7-unknown-linux-gnueabihf variant also segfaults.

1.9.0, 1.10.0 and 1.11.0 also segfault in their both (arm and armv7) variants and there is no official rustc-1.8.0 release for ARM.

The unofficial 1.8.0 rustc release (for armv7) from the RustBuild project does work.

Hello world cross compiled for armv7 using rustc-1.8.0 works fine.

Meta

Tested on a fresh Arch Linux ARM install.

Note that the Beaglebone only has 256 MB. But I created a 512MB swapfile and flushed all the caches before testing all this. Unsure if the low amount of RAM contributes to the problem.

cc @petevine

@japaric japaric added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state labels Sep 14, 2016
@japaric
Copy link
Member Author

japaric commented Sep 14, 2016

Ah this is the same #35843.

@japaric japaric closed this as completed Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-Arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
Projects
None yet
Development

No branches or pull requests

1 participant