Mon Apr 09 19:29:47 2018me [...] mikeely.org - Ticket created
Subject:
next_time hangs on impossible date (such as 31Feb)
Date:
Mon, 9 Apr 2018 16:29:36 -0700
To:
bug-Algorithm-Cron [...] rt.cpan.org
From:
Mike Ely <me [...] mikeely.org>
Test case:
my $now = time;
my $ln = "* * 31 2 *";
my $cron = Algorithm::Cron->new( base => 'local', crontab => "$ln" );
my $nextrun = $cron->next_time( $now );
Executing this spins exactly one CPU at 100% and strace repeats with:
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0