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

Segmentation fault on safe test panic #26298

Closed
wthrowe opened this issue Jun 14, 2015 · 2 comments
Closed

Segmentation fault on safe test panic #26298

wthrowe opened this issue Jun 14, 2015 · 2 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

Comments

@wthrowe
Copy link
Contributor

wthrowe commented Jun 14, 2015

This is as minimal an example as I've been able to reduce this to so far:

fn f(_: Vec<u32>, _: &Vec<u32>) {
    panic!();
}

fn identity(r: &Vec<u32>) -> &Vec<u32> { r }

#[test]
fn t() {
    f(vec![0], identity(&Vec::new()));
}
$ rustc --version
rustc 1.0.0 (built 2015-05-22)
$ rustc --test foo.rs
$ ./foo 

running 1 test
Segmentation fault
$ 
@sfackler
Copy link
Member

Looks like heap corruption. Valgrind output and backtrace: https://gist.github.com/sfackler/4ecc56dc1324ae07a2ce

Nominating.

@sfackler sfackler added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. I-nominated labels Jun 14, 2015
@alexcrichton
Copy link
Member

Confirmed dupe of #25089 (fixed by #26062)

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.
Projects
None yet
Development

No branches or pull requests

3 participants