Project

General

Profile

Actions

Bug #21400

closed

rb_bug() hit when killing current root fiber on non-main thread

Added by luke-gru (Luke Gruber) 2 days ago. Updated 1 day ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:122458]

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 #2

Updated by Anonymous 1 day ago

  • Status changed from Open to Closed

Applied in changeset git|54ef6c312a2154f26e971af9e4a483d5d377730e.


[Bug #21400] Fix rb_bug() when killing current root fiber in non-main thread (#13526)

Fixes the following:

Thread.new { Fiber.current.kill }.join
Actions

Also available in: Atom PDF

Like0
Like0Like0