Subject: | Eval deaths reported to sig die handlers in _load_subclass |
Date: | Mon, 10 Aug 2009 09:57:45 +1000 |
To: | bug-DateTime-TimeZone [...] rt.cpan.org |
From: | Jim In Aus <jiminaus [...] gmail.com> |
I'm using DateTime-TimeZone-0.93 with perl 5.8.9 on Mac OS X 10.5.8.
My code has installed a $SIG{'__DIE__'} handler to log deaths in an
automatic, unattended process. I'm getting the message "Can't locate
DateTime/TimeZone/Local/darwin.pm" twice and then "BEGIN failed--
compilation aborted at (eval 1354) line 2". These are coming from
the eval in the sub _load_subclass of DateTime::TimeZone::Local when
it (unsuccessfully) tries to load a platform specific subclass for my
platform (Mac OS X = darwin).
I've submitted a patch which localises $SIG{'__DIE__'} and stops these
eval deaths from being reported to programs which have a
$SIG{'__DIE__'} handler installed.
I've confirmed the same problem and solution using DateTime-
TimeZone-0.93 with perl 5.8.8 on RHEL (unknown version).
Message body is not shown because sender requested not to inline it.