From: Nobuyoshi Nakada Date: 2010-05-06T18:36:20+09:00 Subject: [ruby-core:30050] Re: years in Time.utc Hi, At Thu, 6 May 2010 04:46:45 +0900, Benoit Daloze wrote in [ruby-core:30031]: > Just playing in irb, remembering that 1.9.2 is supposed to manage any > Time and got a weird problem: > > irb for ruby-1.9.2-r27602 > > Time.new -20000 > => -20000-01-01 00:00:00 +0000 # immediate > > Time.new -20001 > => -20001-01-01 00:00:00 +0000 # immediate > > Time.new -20002 # Seems to be an infinite loop, it takes 100% during at least 60s > ^C^C^CKilled > > Any idea why does it get stuck like that ? Following code also freezes on x86_64 but works fine on i386. Do you know how to report the bug to apple? #include int main(void) { time_t t = -693369331200L; localtime(&t); return 0; } -- Nobu Nakada