-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE when compiling with -Z ast_json #14940
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
Comments
Could you provide a gdb stack trace as well? |
Sure! First time using gdb, I hope this is correct:
|
On windows I've seen I/O errors when you're reading into a very large buffer, so this may be triggering errors when you're writing a very large buffer. Does this program fail for you? use std::io::stdio;
fn main() {
let mut out = stdio::stdout();
out.write(['a' as u8, ..128 * 1024]).unwrap();
} |
Yes, yes it does!
|
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jun 17, 2014
This just takes a similar approach to reading stdin on windows by artificially limiting the size of the buffers going in and out. Closes rust-lang#14940
bors
added a commit
that referenced
this issue
Jun 17, 2014
This just takes a similar approach to reading stdin on windows by artificially limiting the size of the buffers going in and out. Closes #14940
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Sep 8, 2014
I've found that 64k is still too much and continue to see the errors as reported in rust-lang#14940. I've locally found that 32k fails, and 24k succeeds, so I've trimmed the size down to 8192 which libuv happens to use as well. It sounds like the limit can still be hit with many threads in play, but I have yet to reproduce this, so I figure we can wait until that's hit (if it's possible) and then take action.
bors
added a commit
that referenced
this issue
Sep 8, 2014
… r=brson I've found that 64k is still too much and continue to see the errors as reported in #14940. I've locally found that 32k fails, and 24k succeeds, so I've trimmed the size down to 10000 which the included links in the added comment end up recommending. It sounds like the limit can still be hit with many threads in play, but I have yet to reproduce this, so I figure we can wait until that's hit (if it's possible) and then take action.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling https://github.com/schmee/rust/blob/counted-set/src/libcollections/counted_set.rs on Windows 7 with
rustc counted_set.rs -Z ast-json
orrustc counted_set.rs -Z ast-json-noexpand
results in the following ICE:Version:
The text was updated successfully, but these errors were encountered: