#1 ✓invalid
macournoyer

Uncaught ThreadError

Reported by macournoyer | 2008-01-19 16:06:41 UTC | in 0.6.2

Calling unlock twice on a mutex raises an ThreadError which crashes Thin.

See http://www.ruby-forum.com/topic/...

Not sure we can do anything about this.

Comments and changes to this ticket

  • Kevin Williams

    Kevin Williams 2008-01-19 19:36:19 UTC

    • Milestone cleared.
    • State changed from “new” to “open”
  • Kevin Williams

    Kevin Williams 2008-01-21 11:03:00 UTC

    could we catch the ThreadError and see which thread threw the error? If not the thread Thin cares about, ignore it?

    just thinking out loud

  • macournoyer

    macournoyer 2008-01-21 13:37:45 UTC

    weird thing is the error is not caught by the rescue Object => e in Connection#process

    how come?

  • macournoyer

    macournoyer 2008-01-21 23:51:28 UTC

    • State changed from “open” to “invalid”

    I can reproduce the error, but in my case, it's caught by the rescue block and the server keeps running.

  • steve ross

    steve ross 2008-01-22 11:43:14 UTC

    Here's the pertinent part of the stack trace:

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/rack/adapter/rails.rb:52:in `serve_rails'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/rack/adapter/rails.rb:67:in `call'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/thin/connection.rb:30:in `process'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/thin/connection.rb:16:in `receive_data'

    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:1056:in `event_callback'

    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:224:in `run_machine'

    /usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/lib/eventmachine.rb:224:in `run'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/thin/server.rb:55:in `listen!'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/lib/thin/server.rb:44:in `start!'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/bin/thin:85:in `start'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/bin/thin:116:in `send'

    /usr/local/lib/ruby/gems/1.8/gems/thin-0.5.3/bin/thin:116

    /usr/local/bin/thin:19:in `load'

  • macournoyer

    macournoyer 2008-01-22 12:20:21 UTC

    • State changed from “invalid” to “open”

    I'll try that thx

  • Kevin Williams

    Kevin Williams 2008-01-26 11:29:14 UTC

    • Milestone set to “0.6.2”
  • macournoyer

    macournoyer 2008-01-26 17:16:53 UTC

    • State changed from “open” to “invalid”

    I tried reproducing in any way I could, the error is always caught by Thin's rescue block.

    Plz reopen if you can reproduce

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages