perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raf <ra...@joshua.dreamthought.com>
Subject DateTime with Apache::SmallProf
Date Tue, 23 Jan 2007 17:40:26 GMT
Apologies for the X-post.  It seemed appropriate.

I'm trying to profile a web environment (Apache 1.3.33/Perl 5.8.7/mp 1.29)
with Apache::SmallProf, however I seem to be getting some odd behaviour
from DateTime when smallprof is enabled.

We have a module using DateTime.pm, which is used in a CGI script, eval'ed
by Apache::Registry.  It appears that DateTime throws a locale error on
the 'use DateTime' which gets propogated back through our module and onto
Registry.  However this 'only' occurs when Apache::DB and
Apache::Smallprof are enabled.

I've snooped in DateTime and am not sure how SmallProf is causing this
error, so I'm hoping that someone else may be familiar with the
symptoms?

The error:

[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
You cannot replace an existing locale ('') unless you also specify the
'replace' parameter as true
[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.7/DateTime/Locale.pm line 162.
[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.8.7/i686-linux/DateTime.pm line 47.
[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.7/i686-linux/DateTime.pm line 47.
[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
Compilation failed in require at /etc/perl/bvsm.pm line 16.
[Tue Jan 23 17:57:26 2007] bvsm.pm: [Tue Jan 23 17:57:26 2007] bvsm.pm:
BEGIN failed--compilation aborted at /etc/perl/bvsm.pm line 16.
[Tue Jan 23 17:57:26 2007] bvsm.pm: Compilation failed in require at (eval
195)[/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache/Registry.pm:183]
line 4.
BEGIN failed--compilation aborted at (eval
195)[/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache/Registry.pm:183]
line 4.



Any suggestions would be appreicated.

Thanks,

Raf


Mime
View raw message