Project

General

Profile

Actions

Backport #3853

closed

Multiple IO problems when threading is used

Added by Anonymous over 13 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
[ruby-core:32487]

Description

=begin

  • 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).
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0