mozilla/rust — Issue #1923: Race condition in task killing
Author: brson
Created: 2012-03-04 05:24:43+00:00
State: open
Labels: A-runtime, I-wrong

If you run this enough times it will eventually fail:

```
fn main() {
iter::repeat(100u) {||
let builder = task::mk_task_builder();
task::unsupervise(builder);
task::run(builder) {||
let po = comm::port();
let ch = comm::chan(po);
task::spawn {||
comm::send(ch, ());
}
task::spawn {||
fail;
}
comm::recv(po);
}
}
}
```

```
rust: fatal, 'task->get_state() == src' failed, ../src/rt/rust_task_thread.cpp:338
```