From: Ingmar Stieger Date: 2011-01-26T02:50:35+09:00 Subject: [ruby-core:34852] [Ruby 1.9-Bug#3840] Ruby 1.9.2p0 crashes using Rails 3.0 on repeated browser refresh Issue #3840 has been updated by Ingmar Stieger. I have exactly the same problem as Sean, and the call to rb_io_check_closed(fptr) does not help. In my case, the crash happens on 2-3 page reloads, so almost instantly. What does help is this crude fix: --- a/transcode.c 2010-06-17 09:55:46 +0000 +++ b/transcode.c 2011-01-25 17:08:01 +0000 @@ -1446,6 +1446,12 @@ unsigned char empty_buf; unsigned char *empty_ptr = &empty_buf; + if (!ec) + { + rb_raise(rb_eUndefinedConversionError, "ec is null (ing)"); + return(econv_undefined_conversion); + } + ec->started = 1; if (!input_ptr) { This results in the following console message: [2011-01-25 18:13:17] ERROR Encoding::UndefinedConversionError: ec is null (ing) c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/rack/log_tailer.rb:23:in `read' c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/rack/log_tailer.rb:23:in `tail!' c:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.1/lib/rails/rack/log_tailer.rb:15:in `call' c:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call' c:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service' c:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' c:/Ruby192/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' c:/Ruby192/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' At least it does not crash any more, though I am not sure what the side effects of this might be. Any ideas for a real solution ? Ingmar ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3840 ---------------------------------------- http://redmine.ruby-lang.org