Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal runtime error: IO Safety violation: owned file descriptor already closed #1

Open
WeepingClown13 opened this issue Nov 22, 2024 · 0 comments · May be fixed by #2
Open

fatal runtime error: IO Safety violation: owned file descriptor already closed #1

WeepingClown13 opened this issue Nov 22, 2024 · 0 comments · May be fixed by #2

Comments

@WeepingClown13
Copy link

Test seems to trip up IO Safety checks and panics during runtime.

$ cargo test
    Updating crates.io index
     Locking 3 packages to latest compatible versions
   Compiling libc v0.2.164
   Compiling cfg-if v1.0.0
   Compiling close_fds v0.3.2 (/home/weepingclown/debian/rust/close_fds)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.07s
     Running unittests src/lib.rs (target/debug/deps/close_fds-bcdb5059bd770ffc)

running 12 tests
test iterfds::dirfd::tests::test_parse_int_bytes ... ok
test iterfds::tests::test_fused_open ... ok
test iterfds::tests::test_size_hint_open ... ok
test iterfds::tests::test_fused_possible ... ok
test iterfds::tests::test_size_hint_possible ... ok
test util::tests::test_apply_range ... ok
test util::tests::test_check_should_keep_not_sorted ... ok
test util::tests::test_check_should_keep_sorted ... ok
test util::tests::test_inspect_keep_fds ... ok
test util::tests::test_is_fd_valid ... ok
test util::tests::test_set_cloexec ... ok
test util::tests::test_simplify_keep_fds ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/test_close_fds.rs (target/debug/deps/test_close_fds-e076487d25d6bddc)

running 2 tests
test run_no_fds_tests ... ok
fatal runtime error: IO Safety violation: owned file descriptor already closed
error: test failed, to rerun pass `--test test_close_fds`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant