Skip to content

de::tests::test_any_number_precision and de::tests::test_value_special_floats fail on riscv64. #592

@plugwash

Description

@plugwash

Ron 0.12.0 was recently uploaded to debian and we observed failures in our CI on riscv64 (tests passed on all other tested architectures)

https://ci.debian.net/packages/r/rust-ron/testing/riscv64/66493262/

6181s ---- de::tests::test_any_number_precision stdout ----
6181s 
6181s thread 'de::tests::test_any_number_precision' panicked at src/de/tests.rs:655:5:
6181s assertion `left == right` failed
6181s   left: F64(F64(NaN))
6181s  right: F32(F32(NaN))
6181s stack backtrace:
6181s    0: __rustc::rust_begin_unwind
6181s              at /usr/src/rustc-1.90.0/library/std/src/panicking.rs:697:5
6181s    1: core::panicking::panic_fmt
6181s              at /usr/src/rustc-1.90.0/library/core/src/panicking.rs:75:14
6181s    2: core::panicking::assert_failed_inner
6181s    3: core::panicking::assert_failed
6181s              at /usr/src/rustc-1.90.0/library/core/src/panicking.rs:403:5
6181s    4: ron::de::tests::check_de_any_number
6181s              at ./src/de/tests.rs:655:5
6181s    5: ron::de::tests::test_any_number_precision
6181s              at ./src/de/tests.rs:675:5
6181s    6: ron::de::tests::test_any_number_precision::{{closure}}
6181s              at ./src/de/tests.rs:663:31
6181s    7: core::ops::function::FnOnce::call_once
6181s              at /usr/src/rustc-1.90.0/library/core/src/ops/function.rs:253:5
6181s    8: core::ops::function::FnOnce::call_once
6181s              at /usr/src/rustc-1.90.0/library/core/src/ops/function.rs:253:5
6181s note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
6181s 
6181s ---- de::tests::test_value_special_floats stdout ----
6181s 
6181s thread 'de::tests::test_value_special_floats' panicked at src/de/tests.rs:711:5:
6181s assertion `left == right` failed
6181s   left: Ok(Number(F64(F64(NaN))))
6181s  right: Ok(Number(F32(F32(NaN))))
6181s stack backtrace:
6181s    0: __rustc::rust_begin_unwind
6181s              at /usr/src/rustc-1.90.0/library/std/src/panicking.rs:697:5
6181s    1: core::panicking::panic_fmt
6181s              at /usr/src/rustc-1.90.0/library/core/src/panicking.rs:75:14
6181s    2: core::panicking::assert_failed_inner
6181s    3: core::panicking::assert_failed
6181s              at /usr/src/rustc-1.90.0/library/core/src/panicking.rs:403:5
6181s    4: ron::de::tests::test_value_special_floats
6181s              at ./src/de/tests.rs:711:5
6181s    5: ron::de::tests::test_value_special_floats::{{closure}}
6181s              at ./src/de/tests.rs:700:31
6181s    6: core::ops::function::FnOnce::call_once
6181s              at /usr/src/rustc-1.90.0/library/core/src/ops/function.rs:253:5
6181s    7: core::ops::function::FnOnce::call_once
6181s              at /usr/src/rustc-1.90.0/library/core/src/ops/function.rs:253:5
6181s note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I bisected the issue and the first "bad" commit was b7acecb

The failing testcases seem to be newly added in that commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions