Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Uncaught ThreadError

#1

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.

Reported by macournoyer · January 19th, 2008 @ 04:06 PM

State: invalid
Milestone: 0.6.2
Assigned to: macournoyer macournoyer

Activity

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

    January 19th, 2008 @ 07:36 PM

  2. Kevin Williams
    Kevin Williams

    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

    January 21st, 2008 @ 11:03 AM

  3. macournoyer
    macournoyer

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

    how come?

    January 21st, 2008 @ 01:37 PM

  4. macournoyer
    macournoyer
    • 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.

    January 21st, 2008 @ 11:51 PM

  5. steve ross
    steve ross

    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'

    January 22nd, 2008 @ 11:43 AM

  6. macournoyer
    macournoyer
    • State changed from invalid to open

    I'll try that thx

    January 22nd, 2008 @ 12:20 PM

  7. Kevin Williams
  8. macournoyer
    macournoyer
    • 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

    January 26th, 2008 @ 05:16 PM

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.