Skip to content

rusti segfaults for trivial programs #4407

Closed
@wting

Description

@wting

rustc v0.6:

$ rusti
rusti>  fn foo() { for 5.times { io::println("hi"); } }
[1]    11363 segmentation fault (core dumped)  rusti
$ rusti
rusti> let x = 1;
<anon>:35:4: 35:7 warning: unused variable: `x`
<anon>:35 let x = 1;
              ^~~
[1]    11937 segmentation fault (core dumped)  rusti

I was able to reproduce this today by using ctrl+c to exit rusti. Subsequent rusti runs segfaulted regardless of the statement.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions