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

Threads which have blocked Fibers are not killable #841

halorgium opened this Issue Jul 1, 2013 · 4 comments


None yet
3 participants

halorgium commented Jul 1, 2013

It seems that a Thread which is running a Fiber and that Fiber is blocked on a Queue#pop is unkillable via Thread#kill.


@headius mentioned that it should be possible to kill the Thread's current Fiber.
@dbussink wrote a rubyspec for this recently. rubinius/rubinius@9efac8a

/cc @tarcieri rubinius/rubinius#2392


This comment has been minimized.

halorgium commented Jul 1, 2013

This is somewhat related to the "Thread.current does not remain consistent between Fibers" bug.

I have been toying with killing all the Threads which are backing the Fibers.


This comment has been minimized.

halorgium commented Jul 2, 2013

Killing the Thread.current which is for the Fiber before killing the root Fiber's Thread allows the Thread to die.


This comment has been minimized.


MSNexploder commented Jul 14, 2016

Repro works just as expected on JRuby

@enebo enebo added this to the JRuby milestone May 17, 2017


This comment has been minimized.


enebo commented May 17, 2017

Confirmed this is working in 9.x and 1.7.x is EOL. Resolving against a release so it shows up.

@enebo enebo closed this May 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment