Open Da5hes opened 8 months ago
while trying miri on my repo i encountered the following error: can't call foreign function gnu_get_libc_version on OS linux
gnu_get_libc_version
linux
The actual issue here is posix_spawn -- there's little point in supporting gnu_get_libc_version as you'd just be stuck with the next error. Miri just doesn't support the Command API currently.
posix_spawn
Command
while trying miri on my repo i encountered the following error: can't call foreign function
gnu_get_libc_version
on OSlinux
Details:
``` running 23 tests test core::reconciler::replica::tests::test_disown_missing_owners ... error: unsupported operation: can't call foreign function `gnu_get_libc_version` on OS `linux` --> /home/da5h/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:766:48 | 766 | let version_cstr = unsafe { CStr::from_ptr(gnu_get_libc_version()) }; | ^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `gnu_get_libc_version` on OS `linux` | = 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 `std::sys::pal::unix::os::glibc_version` at /home/da5h/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/os.rs:766:48: 766:70 = note: inside `std::sys::pal::unix::process::process_inner::