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

ICE: "Abort trap: 6" compiling the folowing code #8112

Closed
UtherII opened this issue Jul 29, 2013 · 3 comments
Closed

ICE: "Abort trap: 6" compiling the folowing code #8112

UtherII opened this issue Jul 29, 2013 · 3 comments

Comments

@UtherII
Copy link

UtherII commented Jul 29, 2013

#[crate_type = "lib"];
extern mod std;

struct Tree {
    version : ~str,
    root : ~Node    
}

struct Node {
    parent : Option<Node>,
    childrens : ~[Node]
}

fn parse(in : ~Reader) -> Result<~Tree,~str> {
    let out = Err(~"Not implemented yet");
    out
}
@jdm
Copy link
Contributor

jdm commented Jul 29, 2013

Likely #4363.

@UtherII
Copy link
Author

UtherII commented Aug 13, 2013

Tried again with recent master. The code still crash but now, the error message is : "Bus error: 10"

@thestinger
Copy link
Contributor

This is a duplicate of #4363, as the crash is caused by a stack overflow. Rust's runtime does not implement stack safety (or segmented stacks) yet.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 13, 2022
…s, r=flip1995

Allow primitive types in disallowed_methods

Fixes rust-lang#8079

changelog: `disallowed_methods`: Now can disallow methods of primitive types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants