-
Notifications
You must be signed in to change notification settings - Fork 126
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
Crash with LTO on aarch64-unknown-linux-gnu #379
Comments
Curious ... it seems the problem is in using |
Turns out the buggy code is behind a feature after the v0.7.0 tag! What do you think about releasing a 0.7.1 that includes commit 6e96c3b ? Then we can just opt out of that feature until the bug is fixed (if we need it at all...?) Now I know how you can easily test this yourself:
|
Could you perhaps test if use std::io::Write;
fn main() {
let mut v = Vec::new();
write!(v, "{}", 0_u128);
println!("{}", std::str::from_utf8(&v).unwrap());
} is enough to trigger the issue on |
It became "thin" in commit d18ebe6. Fixes segfaults on aarch64-unknown-linux-gnu (ron-rs/ron#379) Also drop redundant default overrides from profiles. for issue #422
434: Make some changes to support aarch64-unknown-linux-gnu r=epgts a=epgts - Change `lto` back to default of `false`. - It became "thin" in commit d18ebe6 . - Fixes segfaults on aarch64-unknown-linux-gnu (ron-rs/ron#379) - Change stats_agg::tests::pg_stats_agg_fuzz to allow more variance. - aarch64 varies a lot more on "covar_pop" and "covar_samp". We investigated a bit and found that the postgresql equivalents we were comparing against varied further from amd64 behavior than toolkit's. Possibly differences between gcc and llvm code-gen? - Also drop redundant default overrides from profiles in Cargo.toml . for issue #422 Co-authored-by: Eric Gillespie <epg@timescale.com>
I think the proposed solution can only serve as a workaround, the issue should be fixed in rustc's linker. |
@epgts Does this issue still persist with Rust 1.64 and ron 0.8? |
See epgts/rontest@b1fde44#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542 for simple reproduction recipe. Works reliably on amd64, crashes reliably on aarcy64.
Configuration:
Backtrace:
The text was updated successfully, but these errors were encountered: