Daniel Berger
2006-Apr-07 18:37 UTC
[Rails] webrick, cross-thread violation on rb_thread_schedule()
Hi all, Anyone else seen this? Although it happened while serving Rails, I figured a core dump caused by webrick should be posted to ruby-talk as well. It happened after I hit Ctrl-C to kill the webrick server, after a failed attempt to invoke a web service through a web page. Below are the last two log entries from the development.log file. Any ideas? Dan >/opt/bin/ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options ^C[2006-04-07 12:22:23] INFO WEBrick 1.3.1 [2006-04-07 12:22:23] INFO ruby 1.8.4 (2005-12-24) [sparc-solaris2.10] [2006-04-07 12:22:23] INFO WEBrick::HTTPServer#start: pid=29446 port=3000 127.0.0.1 - - [07/Apr/2006:12:22:49 MDT] "GET /ws/invoke HTTP/1.1" 404 598 - -> /ws/invoke /opt/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/webrick_server.rb:62: [BUG] cross-thread violation on rb_thread_schedule() ruby 1.8.4 (2005-12-24) [sparc-solaris2.10] Abort (core dumped) Last log entries: ActionController::RoutingError (Recognition failed for "/ws/invoke"): /opt/lib/ruby/gems/18/gems/actionpack-1120/lib/action_controller/routingrb:488:in `recognition_failed'' /opt/lib/ruby/gems/18/gems/actionpack-1120/lib/action_controller/routingrb:478:in `recognize!'' /opt/lib/ruby/gems/18/gems/rails-110/lib/dispatcherrb:38:in `dispatch'' /opt/lib/ruby/gems/18/gems/rails-110/lib/webrick_serverrb:115:in `handle_dispatch'' /opt/lib/ruby/gems/18/gems/rails-110/lib/webrick_serverrb:81:in `service'' /opt/lib/ruby/18/webrick/httpserverrb:104:in `service'' /opt/lib/ruby/18/webrick/httpserverrb:65:in `run'' /opt/lib/ruby/18/webrick/serverrb:173:in `start_thread'' /opt/lib/ruby/18/webrick/serverrb:162:in `start_thread'' /opt/lib/ruby/18/webrick/serverrb:95:in `start'' /opt/lib/ruby/18/webrick/serverrb:92:in `start'' /opt/lib/ruby/18/webrick/serverrb:23:in `start'' /opt/lib/ruby/18/webrick/serverrb:82:in `start'' /opt/lib/ruby/gems/18/gems/rails-110/lib/webrick_serverrb:67:in `dispatch'' /opt/lib/ruby/gems/18/gems/rails-110/lib/commands/servers/webrickrb:59 /opt/lib/ruby/site_ruby/18/rubygems/custom_requirerb:21:in `require'' /opt/lib/ruby/gems/18/gems/activesupport-130/lib/active_support/dependenciesrb:136:in `require'' /opt/lib/ruby/gems/18/gems/rails-110/lib/commands/serverrb:30 /opt/lib/ruby/site_ruby/18/rubygems/custom_requirerb:21:in `require'' /opt/lib/ruby/gems/18/gems/activesupport-130/lib/active_support/dependenciesrb:136:in `require'' script/server:3 Rendering /opt/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/templates/rescues/layout.rhtml (404 Pag e Not Found)