-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"task ... ran out of stack" error #6049
Comments
rustsqlite's unit test
|
Okay, I reproduced this on a different machine (also fedora 17 x86_64), and I cut the test case down. I'm a little surprised by how simple it ended up being:
I ran gdb on it; I set a breakpoint in rust_task::fail per pcwalton's suggestion. The backtrace from there contains a few hundred thousand calls to rand::next, but I went all the way to the bottom of the backtrace, and this is what it looks like:
rustc for this is a slightly newer version from incoming: rustc 0.6 (0604468 2013-04-25 12:42:41 -0700) |
I also reproduce this. My test case is almost the same as skinner's. use core::hashmap::{ HashMap };
fn main() {
let mut map = HashMap::new();
map.insert(1u, 1u);
}
use core::rand::{ IsaacRng, RngUtil };
fn main() {
let r = @IsaacRng::new();
io::println(fmt!("%u", r.gen()));
} But following code doesn't cause stack overflow ( use core::rand::{ IsaacRng, RngUtil };
fn main() {
let r = IsaacRng::new();
io::println(fmt!("%u", r.gen()));
} My machine information is below.
|
See also #6061 |
Fix clippy hard-code slice::Iter path r? `@ghost` changelog: none
I get a "task .. ran out of stack" error with this program:
I was originally trying to work around the lack of flow-sensitivity in borrowck, so the code is a little contorted from what would be natural. But I imagine that the "out of stack" error is a separate issue.
rustc is:
rustc 0.6 (ee3789b 2013-04-24 13:33:29 -0700)
host: x86_64-unknown-linux-gnu
running on Fedora 17.
The text was updated successfully, but these errors were encountered: