From: Daniel Mendler Date: 2010-09-21T06:41:26+09:00 Subject: [ruby-core:32487] [Ruby 1.8-Bug#3853][Open] Multiple IO problems when threading is used Bug #3853: Multiple IO problems when threading is used http://redmine.ruby-lang.org/issues/show/3853 Author: Daniel Mendler Status: Open, Priority: Normal Category: core, Target version: Ruby 1.8.7 ruby -v: ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] * File.read(path) sometimes returns empty string although file is not empty * File.read(path, File.size(path)) somtimes returns nil although file is not empty It seems as if the file reached eof. This happens only when threading is used. There seems to be some kind of race condition. Ruby version is 1.8.7-p302 (on x86_64-linux and x86-linux). This problem doesn't exist on 1.9 (tested with 1.9.1p429). ---------------------------------------- http://redmine.ruby-lang.org