On Wed, Nov 26, 2008 at 11:41:51PM -0800, Fayland Lam wrote:
> 
> well, I tested in another server box which runs centos 5. and it
> works.
> the perl version is 5.8.8
> 
> I think the bug is related to 5.8.6(5.8.5 too) or just with centos 4.X

NEXT uses caller() so it's probably this item from the docs:

    =head2 For perl versions before 5.8.8 it may change what caller() returns

    For example, the Readonly module croaks with an "Invalid tie" when profiled 
with
    perl versions before 5.8.8. That's because L<Readonly> explicitly checking 
for
    certain values from caller().

I'll update it to mention NEXT as well.

Tim.


> Thanks.
> 
> On Nov 27, 3:00 pm, "Fayland Lam" <[EMAIL PROTECTED]> wrote:
> > well, run -d:NYTProf with normal test.pl is fine. while there is an
> > error when I run it with Catalyst.
> > $ catalyst MyApp
> > $ perl -Ilib -d:NYTProf script/myapp_server.pl
> > Use of uninitialized value in string eq at /usr/lib/perl5/5.8.6/NEXT.pm 
> > line 40.
> > Can't call NEXT::config from (eval) at
> > /home/fayland/perl5/lib/perl5/Catalyst.pm line 683
> > Compilation failed in require at script/myapp_server.pl line 53.
> >
> > my OS is Centos 4.2 and perl version is  v5.8.6
> > $ perl -MV=Catalyst,NEXT,Devel::NYTProf
> > Catalyst
> >         /home/fayland/perl5/lib/perl5/Catalyst.pm: 5.7015
> > NEXT
> >         /usr/lib/perl5/5.8.6/NEXT.pm: 0.60
> > Devel::NYTProf
> >         
> > /home/fayland/perl5/lib/perl5/i386-linux-thread-multi/Devel/NYTProf.pm:
> > 2.07
> >
> > anyone gets any tip? what else do you need to continue debug.
> > the interesting things is it works fine in my Win32 box which run 5.10.0
> >
> > Thanks.
> >
> > --
> > Fayland Lam //http://www.fayland.org/
> > Foorum based on Catalyst //http://www.foorumbbs.com/
> > 

--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to