From: "drbrain (Eric Hodel)" Date: 2013-02-17T17:41:12+09:00 Subject: [ruby-core:52364] [ruby-trunk - Bug #7870] Time.now == "" causes an infinite loop Issue #7870 has been updated by drbrain (Eric Hodel). Fog breaks due to this change (it is how I discovered it): https://github.com/fog/fog/blob/master/lib/fog/core/attributes.rb#L53-L62 This compares a Time with the empty string leading to the infinite loop. Fog provides an API for cloud services such as Amazon AWS, OpenStack, etc. It is fairly popular. ---------------------------------------- Bug #7870: Time.now == "" causes an infinite loop https://bugs.ruby-lang.org/issues/7870#change-36414 Author: drbrain (Eric Hodel) Status: Open Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: core Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2013-02-08) [x86_64-darwin12.2.1] =begin This is a regression from 1.9. 2.0.0 branch: $ ./ruby20 -v ../branches/ruby_2_0_0/test.rb ruby 2.0.0dev (2013-02-08) [x86_64-darwin12.2.1] ../branches/ruby_2_0_0/test.rb:1: warning: possibly useless use of == in void context ../branches/ruby_2_0_0/test.rb:1: stack level too deep (SystemStackError) 1.9: $ ruby19 -v test.rb ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1] test.rb:1: warning: possibly useless use of == in void context This also reproduces in trunk. =end -- http://bugs.ruby-lang.org/