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

Dead fiber that should not be dead #4864

Open
headius opened this Issue Nov 22, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@headius
Member

headius commented Nov 22, 2017

For the issue in #4838, @satosho provided a script that tests aliveness of various forms of Fiber.

That issue was fixed, but in the process, I occasionally saw the following error running @satosho's script:

FiberError: dead fiber called
          resume at org/jruby/ext/fiber/ThreadFiber.java:66
  block in check at blah.rb:6
           times at org/jruby/RubyFixnum.java:299
            each at org/jruby/RubyEnumerator.java:323
             map at org/jruby/RubyEnumerable.java:830
           check at blah.rb:4
          <main> at blah.rb:14

As there was a race in aliveness-checking before, there may be a race when a fiber starts and very quickly terminates.

@headius headius added the core label Nov 22, 2017

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