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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Member

sfackler commented Jun 14, 2015

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

Nominating.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Jun 15, 2015

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
You can’t perform that action at this time.