When using MN threads (such as running the test in a ractor), this test failed because it was raising a SystemStackError: stack level too deep. This is because the machine stack is smaller under MN threads than on the native main thread.
waiting_fd
IO#close
fiber_interrupt
rb_gc_impl_copy_finalizer
StringIO