Skip to content
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

verify_timebase test failing on i386 architecture #254

Open
tenzap opened this issue Jan 21, 2024 · 3 comments
Open

verify_timebase test failing on i386 architecture #254

tenzap opened this issue Jan 21, 2024 · 3 comments

Comments

@tenzap
Copy link
Contributor

tenzap commented Jan 21, 2024

While attempting to build symphonia-core on Debian on i386 architecture we are facing this error.
There is no such error on the other architectures (the test passes).

A 2nd run leads to the same problem.

Command:
RUST_BACKTRACE=1 /usr/bin/cargo -Zavoid-dev-deps test --verbose --verbose -j6 --target i686-unknown-linux-gnu --all

Full log: https://buildd.debian.org/status/fetch.php?pkg=rust-symphonia-core&arch=i386&ver=0.5.2-1%2Bb1&stamp=1705866665&raw=1

---- units::tests::verify_timebase stdout ----
thread 'units::tests::verify_timebase' panicked at 'assertion failed: `(left == right)`
  left: `4503599627370496`,
 right: `4503599627370497`', src/units.rs:257:9
stack backtrace:
   0: rust_begin_unwind
             at /usr/src/rustc-1.70.0/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /usr/src/rustc-1.70.0/library/core/src/panicking.rs:67:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /usr/src/rustc-1.70.0/library/core/src/panicking.rs:228:5
   4: symphonia_core::units::tests::verify_timebase
             at /usr/share/cargo/registry/symphonia-core-0.5.2/src/units.rs:257:9
   5: symphonia_core::units::tests::verify_timebase::{{closure}}
             at /usr/share/cargo/registry/symphonia-core-0.5.2/src/units.rs:236:26
   6: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    units::tests::verify_timebase

---- units::tests::verify_timebase stdout ----
thread 'units::tests::verify_timebase' panicked at 'assertion failed: `(left == right)`
  left: `4503599627370496`,
 right: `4503599627370497`', src/units.rs:257:9
stack backtrace:
   0: rust_begin_unwind
             at /usr/src/rustc-1.70.0/library/std/src/panicking.rs:578:5
   1: core::panicking::panic_fmt
             at /usr/src/rustc-1.70.0/library/core/src/panicking.rs:67:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /usr/src/rustc-1.70.0/library/core/src/panicking.rs:228:5
   4: symphonia_core::units::tests::verify_timebase
             at /usr/share/cargo/registry/symphonia-core-0.5.2/src/units.rs:257:9
   5: symphonia_core::units::tests::verify_timebase::{{closure}}
             at /usr/share/cargo/registry/symphonia-core-0.5.2/src/units.rs:236:26
   6: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
   7: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    units::tests::verify_timebase
@pdeljanov
Copy link
Owner

Hmm, I wasn't able to reproduce this using a virtual machine and a Debian i386 image. I'm running on an Intel 4790k.

However, I was using the official Rust build. @dedobbin maybe you could try reproducing on your end?

@tenzap
Copy link
Contributor Author

tenzap commented Feb 14, 2024

Maybe this is a debian specific issue then, because the rustc distributed in Debian is compiled on i386 with this patch applied:

https://salsa.debian.org/rust-team/rust/-/blob/debian/sid/debian/patches/d-rustc-i686-baseline.patch?ref_type=heads

@pdeljanov
Copy link
Owner

Oh I see. I wouldn't be surprised if the issue is related to rust-lang/rust#114479. I see that some tests are also disabled in this patch for similar reasons presumably.

I tried to emulate by running with RUSTFLAGS="-C target-cpu=pentiumpro" cargo +1.70.0-i686-unknown-linux-gnu tests, but still no repro on my end.

@pdeljanov pdeljanov added this to the v0.5.4 milestone Feb 16, 2024
@pdeljanov pdeljanov removed this from the v0.5.4 milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants