Skip to content
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

Rework / fix numerous bugs in rust_kernel::fail #2671

Closed
graydon opened this issue Jun 21, 2012 · 1 comment
Closed

Rework / fix numerous bugs in rust_kernel::fail #2671

graydon opened this issue Jun 21, 2012 · 1 comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.

Comments

@graydon
Copy link
Contributor

graydon commented Jun 21, 2012

The last person in there was not too happy with it.

@bblum
Copy link
Contributor

bblum commented Jul 18, 2012

Running this enough times will eventually hang, as one task "escapes":

fn foo() {
    task::yield();
    task::spawn(foo);
}

fn main() {
    let b = task::builder();
    task::unsupervise(b);
    task::run(b, foo);
    for iter::repeat(1000) { task::yield(); }
    fail;
}

bblum added a commit that referenced this issue Jul 20, 2012
@bblum bblum closed this as completed in 3dc52da Jul 20, 2012
RalfJung added a commit to RalfJung/rust that referenced this issue Nov 17, 2022
RalfJung added a commit to RalfJung/rust that referenced this issue Nov 20, 2022
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
Co-authored-by: Celina G. Val <celinval@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.
Projects
None yet
Development

No branches or pull requests

2 participants