Skip to content

Segmentation fault on safe test panic #26298

Closed
@wthrowe

Description

@wthrowe

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
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions