# Webrick, cross-thread violation on rb\_thread\_schedule()

**URL:** <https://www.ruby-forum.com/t/webrick-cross-thread-violation-on-rb-thread-schedule/93739>\
**Category:** Ruby\
**Created:** [April 7, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/webrick-cross-thread-violation-on-rb-thread-schedule/93739 "2006-04-07T20:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [April 7, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/webrick-cross-thread-violation-on-rb-thread-schedule/93739/1 "2006-04-07T20:38:42Z")

</div>

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](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)
