Skip to content

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

@WeepingClown13

Description

@WeepingClown13

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions