Skip to content
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

Error causing the thin to die when using with neverblock #3

Open
modsaid opened this issue Mar 17, 2010 · 1 comment
Open

Error causing the thin to die when using with neverblock #3

modsaid opened this issue Mar 17, 2010 · 1 comment

Comments

@modsaid
Copy link
Collaborator

modsaid commented Mar 17, 2010

Occasionally with a very low frequency (once every 2-3 months). The thin process die with following exception in Neverblock code

/usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:38:in `initialize': undefined method `call' for nil:NilClass (NoMethodError)
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:37:in `loop'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:37:in `initialize'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block.rb:19:in `initialize'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block.rb:19:in `new'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block.rb:19:in `initialize'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:36:in `new'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:36:in `initialize'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/neverblock-0.1.6.1/lib/never_block/pool/fiber_pool.rb:35:in `times'
 ... 12 levels...
from /usr/local/ruby/lib/ruby/gems/1.8/gems/thin-1.0.0/lib/thin/runner.rb:139:in `run!'
from /usr/local/ruby/lib/ruby/gems/1.8/gems/thin-1.0.0/bin/thin:6
from /usr/local/ruby/lib/ruby/gems/1.8/bin/thin:19:in `load'
from /usr/local/ruby/lib/ruby/gems/1.8/bin/thin:19
>> Exiting!
@oldmoe
Copy link
Owner

oldmoe commented Mar 18, 2010

Apparently, a fiber was resumed in the wrong place, is this code using the Neverblock socket features?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants