Skip to content

Backtraces broken on s390x #53372

Closed
Closed
@cuviper

Description

@cuviper

run-pass/backtrace.rs and run-pass/backtrace-debuginfo.rs are both broken on s390x since Rust 1.28. When std is built without debuginfo, the tests hang with their backtracing processes stuck in a loop. With std debuginfo, it fails with <unknown> output like:

thread 'main' panicked at 'bad output: thread 'main' panicked at 'explicit panic', [...]/rust/src/test/run-pass/backtrace.rs:25:9
stack backtrace:
   0: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
   1: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
   2: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
   3: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
   4: std::panicking::rust_panic_with_hook
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
  10: rust_metadata_std_afee429493f25d7710e1d9899ebe9736
  11: __rust_maybe_catch_panic
  12: std::rt::lang_start_internal
  13: <unknown>
  14: __libc_start_main
  15: <unknown>
', [...]/rust/src/test/run-pass/backtrace.rs:60:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

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 that s390x-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-SystemZTarget: SystemZ processors (s390x)T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions