On Sat, Mar 07, 2009 at 11:18:57PM +0000, Tim Bunce wrote:
> >
> > NYTPROF=savesrc=1:use_db_sub=1:compress=0 perl -d:NYTProf -e 'use warnings;'
> > fwrite error 2: No such file or directory at
> > /usr/local/perl58-i/lib/site_perl/5.8.6/darwin-thread-multi-2level/Devel/NYTProf.pm
> > line 39.
> > BEGIN failed--compilation aborted at
> > /usr/local/perl58-i/lib/5.8.6/warnings.pm line 134.
> >
> > It's very odd that changing any of those three options makes the problem
> > go away. Very odd. I'll go dig...
>
> Um, nasty memory corruptions, with assorted symptoms including core dumps.
> I thought it was just with old perls (perl 5.8.x where x <= 8, and perl
> 5.10.y where y==0) as it occurs readily with them, but I've just
> reproduced it with 5.8.9 (though sadly not as a core dump).
>
> So suspicion now falls on compress=0...
Um, no, there's something else going on, maybe. I think an underlying
issue is that the source code may not have been fully loaded at the
moment NYTProf allocated the new fid and tries to copy the source.
Another issue is that it looks like NYTProf is recursing into itself
when croak("fwrite error ...") is called.
Fun!
Tim.
--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---