You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Jefffrey (via GitHub)" <gi...@apache.org> on 2023/12/02 05:30:20 UTC
Re: [I] Get MIRI running against parquet crate [arrow-rs]
Jefffrey commented on issue #614:
URL: https://github.com/apache/arrow-rs/issues/614#issuecomment-1837048410
Small update, I tried running MIRI:
```sh
arrow-rs$ MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test -p parquet
```
Got error:
```
test arrow::array_reader::list_array::tests::test_nested_lists ... error: unsupported operation: non-default mode 0o600 is not supported
--> /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1133:36
|
1133 | let fd = cvt_r(|| unsafe { open64(path.as_ptr(), flags, opts.mode as c_int) })?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ non-default mode 0o600 is not supported
|
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
= note: BACKTRACE:
= note: inside closure at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1133:36: 1133:84
= note: inside `std::sys::unix::cvt_r::<i32, {closure@std::sys::unix::fs::File::open_c::{closure#0}}>` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/mod.rs:328:19: 328:22
= note: inside `std::sys::unix::fs::File::open_c` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1133:18: 1133:87
= note: inside closure at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1121:41: 1121:65
= note: inside `std::sys::common::small_c_string::run_with_cstr::<std::sys::unix::fs::File, {closure@std::sys::unix::fs::File::open::{closure#0}}>` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/common/small_c_string.rs:43:18: 43:22
= note: inside `std::sys::common::small_c_string::run_path_with_cstr::<std::sys::unix::fs::File, {closure@std::sys::unix::fs::File::open::{closure#0}}>` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/common/small_c_string.rs:22:5: 22:58
= note: inside `std::sys::unix::fs::File::open` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1121:9: 1121:66
= note: inside `std::fs::OpenOptions::_open` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/fs.rs:1128:9: 1128:42
= note: inside `std::fs::OpenOptions::open::<&std::path::Path>` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/fs.rs:1124:9: 1124:34
= note: inside `tempfile::file::imp::unix::create_named` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:30:5: 30:28
= note: inside `tempfile::file::imp::unix::create_unlinked` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:43:13: 43:56
= note: inside closure at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:80:16: 80:38
= note: inside `tempfile::util::create_helper::<std::fs::File, {closure@tempfile::file::imp::unix::create_unix::{closure#0}}>` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/util.rs:33:22: 33:29
= note: inside `tempfile::file::imp::unix::create_unix` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:75:5: 81:6
= note: inside closure at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:62:21: 62:37
= note: inside `std::result::Result::<std::fs::File, std::io::Error>::or_else::<std::io::Error, {closure@tempfile::file::imp::unix::create::{closure#0}}>` at /home/jeffrey/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1378:23: 1378:28
= note: inside `tempfile::file::imp::unix::create` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/imp/unix.rs:53:5: 66:11
= note: inside `tempfile::tempfile_in::<std::path::PathBuf>` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/mod.rs:102:5: 102:30
= note: inside `tempfile::tempfile` at /home/jeffrey/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.8.0/src/file/mod.rs:61:5: 61:33
note: inside `arrow::array_reader::list_array::tests::test_nested_lists`
--> parquet/src/arrow/array_reader/list_array.rs:550:20
|
550 | let file = tempfile::tempfile().unwrap();
| ^^^^^^^^^^^^^^^^^^^^
note: inside closure
--> parquet/src/arrow/array_reader/list_array.rs:524:27
|
523 | #[test]
| ------- in this procedural macro expansion
524 | fn test_nested_lists() {
| ^
= note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error: aborting due to 1 previous error; 3 warnings emitted
```
Seems like MIRI doesn't support `tempfile`, see https://github.com/rust-lang/miri/pull/2720
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org