#1 ✓invalid
macournoyer

Uncaught ThreadError

Reported by macournoyer | January 19th, 2008 @ 04:06 PM | 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 January 19th, 2008 @ 07:36 PM

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

    Kevin Williams January 21st, 2008 @ 11:03 AM

    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 January 21st, 2008 @ 01:37 PM

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

    how come?

  • macournoyer

    macournoyer January 21st, 2008 @ 11:51 PM

    • 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 January 22nd, 2008 @ 11:43 AM

    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 January 22nd, 2008 @ 12:20 PM

    • State changed from “invalid” to “open”

    I'll try that thx

  • Kevin Williams

    Kevin Williams January 26th, 2008 @ 11:29 AM

    • Milestone set to 0.6.2
  • macournoyer

    macournoyer January 26th, 2008 @ 05:16 PM

    • 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