Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 32231
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.19
Fixed in: (no value)



Subject: 64bit Template->new() returns undef, seamingly pointless tweak fixes it
I suspect this is an odd library issue anomally based on: - its 'silent/no error' behavior is erratically low level - its always seen (so far for me anyway) on 64 bit - to get an object created requires a seemingly pointless call (but one that effects/is affected by low level library issues) [as is] [root@set cptt]# perl -Mstrict -we 'use Template ();print "OBJECT: " . Template->new() , "\n";' Use of uninitialized value in concatenation (.) or string at -e line 1. OBJECT: [root@set cptt]# but change (Template::Base::new()) return $self->_init($cfg) ? $self : $class->error($self->error); to $self->_init($cfg); return $self->_init($cfg) ? $self : $class->error($self->error); and it works: [root@set cptt]# perl -Mstrict -we 'use Template ();print "OBJECT: " . Template->new() , "\n";' OBJECT: Template=HASH(0x17b7b8d0) [root@set cptt]# [notes] Doing this (changing "fix" context to non void) does not work: my $rc = $self->_init($cfg); return $rc ? $self : $class->error($self->error); base _init() doesn't do anything but return the object, maybe a subclass is acting up somewhere?
Here's the error message in $Template::ERROR failed to create context: failed to create context: failed to load Template/Stash/XS.pm: Couldn't load Template::Stash::XS 2.19: Can't locate loadable object for module Template::Stash::XS in @INC have to force reinstall of Template to get fresh rebuilt Template::Stash::XS
On Thu Jan 10 12:50:12 2008, DMUEY wrote: Show quoted text
> have to force reinstall of Template to get fresh rebuilt > Template::Stash::XS
Has that solved the problem? You would certainly need to install it fresh on a new system to get the XS stash built properly. A
On Wed Aug 06 04:44:19 2008, ABW wrote: Show quoted text
> On Thu Jan 10 12:50:12 2008, DMUEY wrote:
> > have to force reinstall of Template to get fresh rebuilt > > Template::Stash::XS
> > Has that solved the problem? You would certainly need to install it > fresh on a new system to get the XS stash built properly.
It appears so, I've just tried it on a few systems and it was fine. However these systems all have a hook that changes Template::Stash::XS to use XSLoader instead of DynaLoader to lower memory consumption and then rebuilds it. So perhaps its masking the problem? Unfortunately I don't have access to any 64 bit boxes that do not have this mechanism in place.
On Wed Aug 06 10:16:38 2008, DMUEY wrote: Show quoted text
> It appears so, I've just tried it on a few systems and it was fine.
OK, I'll close the bug for now. Thx