-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Release build fails with SIGSEGV #20
Comments
Building with rust 1.11.0 works. Let me know if I should file an issue with rust.
|
Definitely a compiler bug. It goes away with this commit 3a2ea4b so I have a lead. |
@dtolnay Thanks. I filed an issue before I read your response. It is here: rust-lang/rust#36875 |
Narrowed down further: e8b4e20. |
I can't work on this right now but I will do my best to release a workaround later tonight. |
I released a workaround in 0.8.1. The following code triggered the bug: pub fn str_chars(s: &str) -> Vec<char> {
s.chars().collect()
} The following workaround avoided the bug: pub fn str_chars(s: &str) -> Vec<char> {
let mut result = Vec::new();
for ch in s.chars() {
result.push(ch);
}
result
} |
When building with the
cargo build --release
, the build fails with(signal: 11, SIGSEGV: Invalid memory reference)
. Building withcargo build
(no--release
flag) works. Here is the full output, along with the rust version:The text was updated successfully, but these errors were encountered: