Hi,
This piece of code,
#![feature(phase)]
#[phase(plugin)]
extern crate green;
use std::io::timer;
use std::task::TaskBuilder;
green_start!(main)
fn main() {
for _ in range(0, 10000i) {
TaskBuilder::new().stack_size(20*1024).spawn(proc() {
timer::sleep(20000)
});
}
}
fails with,
task '<unknown>' has overflowed its stack
Illegal instruction (core dumped)
Changing the stack size to 21K works. Why does such a trivial task overflow
20K of stack?
--
Chandra Sekar.S
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev