Actions
Bug #21400
closedrb_bug() hit when killing current root fiber on non-main thread
Description
This following code hits an rb_bug
:
Thread.new { Fiber.current.kill }.join
Normally fibers gracefully handle this case by terminating and switching to another fiber, but if there is no other fiber it raises the FIBER_FATAL_FIBER_KILLED
error and this is not caught by the starting thread, resulting in a bug.
Actions
Like0
Like0Like0