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

i686 musl cannot panic #39053

Closed
alexcrichton opened this issue Jan 14, 2017 · 2 comments
Closed

i686 musl cannot panic #39053

alexcrichton opened this issue Jan 14, 2017 · 2 comments

Comments

@alexcrichton
Copy link
Member

e.g. for a simple program like:

fn main() {
   panic!("hello");
}

it runs as:

$ rustc foo.rs --target i686-unknown-linux-musl && ./foo
thread 'main' panicked at 'hello', foo.rs:2
note: Run with `RUST_BACKTRACE=1` for a backtrace.
fatal runtime error: failed to initiate panic, error 5
zsh: abort (core dumped)  ./foo

cc @japaric

@japaric
Copy link
Member

japaric commented Jan 14, 2017

duplicate of #35599

It's catch_unwind what doesn't work (start uses catch_unwind to catch any panic that may occur in main)

@alexcrichton
Copy link
Member Author

Indeed!

alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 16, 2017
This commit expands the existing x86_64-musl entry in the Travis matrix to also
build/test i586-unknown-linux-gnu and i686-unknown-linux-musl.

cc rust-lang#38531
Closes rust-lang#39053
alexcrichton added a commit to alexcrichton/rust that referenced this issue Jan 20, 2017
travis: Add i586 linux and i686 musl

This commit expands the existing x86_64-musl entry in the Travis matrix to also
build/test i586-unknown-linux-gnu and i686-unknown-linux-musl.

cc rust-lang#38531
Closes rust-lang#35599
Closes rust-lang#39053
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

2 participants