-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Backtraces broken on s390x #53372
Comments
#53377 fixes the backtrace when In GDB, it looks like the unwinder gets to the I'm bisecting for that hang now. |
Bisecting pointed me at #50188 (cc @alexcrichton), which added
By default GDB backtrace stops at crate
Maybe Rust's |
This shim is generated elsewhere in the compiler so this commit adds support to ensure it goes through similar paths as the rest of the compiler to set llvm function attributes like target features. cc rust-lang#53372
…rister Set more llvm function attributes for __rust_try This shim is generated elsewhere in the compiler so this commit adds support to ensure it goes through similar paths as the rest of the compiler to set llvm function attributes like target features. cc #53372
std: stop backtracing when the frames are full This is a defensive measure to mitigate the infinite unwind loop seen in #53372. That case will still repeatedly unwind `__rust_try`, but now it will at least stop when `cx.frames` is full. r? @alexcrichton
run-pass/backtrace.rs
andrun-pass/backtrace-debuginfo.rs
are both broken on s390x since Rust 1.28. Whenstd
is built without debuginfo, the tests hang with their backtracing processes stuck in a loop. Withstd
debuginfo, it fails with<unknown>
output like:I believe the problem is this part of #50955:
https://github.com/rust-lang/rust/pull/50955/files#diff-df8879cba69175008878e97cee6d7d91R113
where
target.contains("64")
doesn't identify thats390x-unknown-linux-gnu
is a 64-bit platform.See also rust-lang/backtrace-rs#122. I plan to update that here when it's published, and make a similar fix in
rust/src/libstd/build.rs
.The text was updated successfully, but these errors were encountered: