Closed
Description
openedon Mar 17, 2013
Following program segfaults using rust 0.5 on Fedora 17:
extern mod std;
use core::task::;
use std::;
fn main() {
let value = 0;
let marc = arc::MutexARC(value);
for int::range(0, 5) |_| {
do spawn {
do marc.access |v| { *v += 1; }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels