Repository navigation
Closed
Labels
bugSquash those bugsdevelopment-processInternal changes; PRs with this label are excluded from changelogsecurity
Description
Describe the bug
Ever since we have enabled MIRI checks on CI in #323 (epic thanks to @roee88 ) we have started to see intermittent failures of the check
To Reproduce
Run CI checks on a PR
Here are some example failures
https://github.com/apache/arrow-rs/runs/2656075800
https://github.com/apache/arrow-rs/runs/2658362992
An excerpt from
https://github.com/alamb/arrow-rs/runs/2659329294?check_suite_focus=true
test array::array_primitive::tests::test_time32_millisecond_array_from_vec ... ok
test array::array_primitive::tests::test_time32second_fmt_debug ... ok
thread 'main' panicked at 'invalid time', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono-0.4.19/src/naive/time.rs:412:67
stack backtrace:
0: 0xa9fa3ef - std::backtrace_rs::backtrace::miri::trace_unsynchronized::<&mut [closure@std::sys_common::backtrace::_print_fmt::{closure#1}]>
at /usr/share/rust/.rustup/toolchains/nightly-2021-03-24-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/../../backtrace/src/backtrace/miri.rs:65:18
1: 0xaa266e9 - std::backtrace_rs::backtrace::miri::trace::<&mut [closure@std::sys_common::backtrace::_print_fmt::{closure#1}]>
at /usr/share/rust/.rustup/toolchains/nightly-2021-03-24-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/../../backtrace/src/backtrace/miri.rs:51:14
2: 0xa9dc49b - std::backtrace_rs::backtrace::trace_unsynchronized::<[closure@std::sys_common::backtrace::_print_fmt::{closure#1}]>
at /usr/share/rust/.rustup/toolchains/nightly-2021-03-24-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
3: 0x298f21f - std::sys_common::backtrace::_print_fmt
at /usr/share/rust/.rustup/toolchains/nightly-2021-03-24-x86_64-unknown-linux-g
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSquash those bugsdevelopment-processInternal changes; PRs with this label are excluded from changelogsecurity
Activity
alamb commentedon May 24, 2021
🤔
roee88 commentedon May 26, 2021
I see that it's (almost?) always in bit_length_test_string. Did you consider skipping this test? Should we open an issue in miri to help us debug this? It might reveal something important about this test.
alamb commentedon May 26, 2021
@roee88 I did not -- I tried to skip
array::array_primitive::tests::test_time32second_invalid_negin #346 but that did not seem to help. I don't have much time to devote to this issue at the moment (most of my arrow bandwidth is going towards getting the releases in shape) so any help here would be most appreciatedroee88 commentedon May 26, 2021
I think that the issue description here is wrong and this is expected for test_time32second_invalid_neg.
I did a quick memory usage check and identifier the following:
I tested ignoring bit_length_test_string and github actions checks pass (5 re-runs). I think it might be worth to ignore all three though. Some questions:
I will submit a PR based on the answers.
alamb commentedon May 26, 2021
Thank you @roee88
jorgecarleitao commentedon May 26, 2021
Just to understand, the memory consumption is only when running the test via MIRI, right?
alamb commentedon May 26, 2021
I don't know but it sounds like it is worth more investigation
I think we should disable the test under MIRI
If there is some bug or improvement you can articulate, I ams ure the MIRI developers would appreciate a ticket