Project

General

Profile

Actions

Bug #2370

closed

Forked process generates spurious signal errors

Added by orem (Chris Schlaeger) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-11-10 trunk 25704) [x86_64-linux]
Backport:
[ruby-core:26744]

Description

=begin
The attached test program demonstrates the problem. About 25% percent of the time the forked-off program terminates with a signal error.

For best results the first parameter of the doRun() call should be set to a value slightly higher than the number of CPU cores in the system.

time ruby19 ruby-signal-bug.rb
Ok: 1513 Errors: 487

real 1m21.352s
user 1m3.712s
sys 0m20.913s

The terminated processes are killed during the IO operation and leave test*.txt files of varying size in the current directory.
The program works fine with ruby 1.8.7 PL27.
=end


Files

ruby-signal-bug.rb (779 Bytes) ruby-signal-bug.rb orem (Chris Schlaeger), 11/15/2009 05:11 PM
BatchProcessor.rb (11.9 KB) BatchProcessor.rb orem (Chris Schlaeger), 11/15/2009 05:11 PM
Actions #1

Updated by mame (Yusuke Endoh) over 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r25771.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0