Description
Running Fedora 32 with selinux set to non-enforcing, building a project with OpenCV.
I am building a rather weird docker setup, but what I ran into was hanging during build stage of opencv-rust, around here.
I expected to see this happen: build succeed rather quickly
Instead, this happened: execution froze on fs::copy call, and cpu got stuck running almost full speed.
My project was mounted using -v $PWD/project:/project:Z
(name changed), opencv was manually cloned (for debugging) into the root of the docker image, at /opencv-rust
.
Copies from /opencv-rust
to /project
don't work (example: /opencv-rust/bindings/cpp/opencv_4/aruco.cpp
=> /project/target/release/build/opencv-50ff47d79816a5ea/out/aruco.cpp
)
File copies from /project
to /opencv-rust
work just fine (example: /project/target/release/build/opencv-50ff47d79816a5ea/out/xobjdetect_types.hpp
=> /opencv-rust/bindings/cpp/opencv_4/xobjdetect_types.hpp
)
It appears to be an issue in the implementation of Linux's fs::copy, as implementing the more generic version above does not freeze the operation.
Meta
rustc --version --verbose
:
rustc 1.45.2 (d3fb005a3 2020-07-31)
binary: rustc
commit-hash: d3fb005a39e62501b8b0b356166e515ae24e2e54
commit-date: 2020-07-31
host: x86_64-unknown-linux-gnu
release: 1.45.2
LLVM version: 10.0