Project

General

Profile

This project is closed and read-only.

Actions

Backport #3853

closed

Multiple IO problems when threading is used

Backport #3853: Multiple IO problems when threading is used

Added by Anonymous about 16 years ago. Updated about 7 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

Updated by shyouhei (Shyouhei Urabe) about 16 years ago Actions #1

  • Status changed from Open to Feedback

=begin
This can be a real bug but we cannot check it without a reproducible code snippet.
=end

Updated by Anonymous about 16 years ago Actions #2

=begin
Well, until now I couldn't reproduce it in a simple snippet but it happens quite often in my application. I hoped that someone might have observed something similar. I try to create a snippet.
=end

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #3

  • Target version deleted (Ruby 1.8.7)
  • ruby -v deleted (ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux])
  • Tracker changed from Bug to Backport
  • Project changed from 2 to 5
  • Description updated (diff)
  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom