Project

General

Profile

Actions

Bug #4223

closed

GC.stress = true で謎の ArgumentError

Added by metanest (Makoto Kishimoto) almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-dev:42907]

Description

=begin
手元の環境で、trunk の r29690 以降で、次のようなスクリプトが、

foo.rb

GC.stress = true
t = Time.local(2000)
File.utime(t + 1, t + 2, "foo.rb")

こんな感じに謎の ArgumentError になります

$ ruby19 -v foo.rb
ruby 1.9.3dev (2010-12-29 trunk 30417) [x86_64-freebsd8.2]
foo.rb:4:in utime': time out of system range (ArgumentError) from foo.rb:4:in '
=end


Files

patch-bug4223.txt (253 Bytes) patch-bug4223.txt metanest (Makoto Kishimoto), 07/07/2011 09:39 PM
patch-bug4223.txt (611 Bytes) patch-bug4223.txt metanest (Makoto Kishimoto), 07/13/2011 09:48 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0