> Hi:
> I am trying to profile a mod_perl app running Apache/2.2.14 (Ubuntu)
> with Perl 5.10.1 and Devel::NYTProf 4.0.5 which I built locally.
> 
> For some reason when I upgraded to this version, NYTProf makes a call
> finish_profile() after one of the initialization hooks completes
> (probably PerlOpenLogsHandler) but then leaves the NYTP_file pointer
> "out" set to NULL even though the program is still running. A few
> seconds later, when Apache loads the PerlPostConfigHandler, it
> segfaults at FileHandle.xs:504 trying to write into the profile file,
> which has now been closed.
> 
> I pored over the docs but don't see any mention of this. The system
> seemed to be working okay with the Ubuntu package libdevel-nytprof-
> perl (version 3) and I'm not aware of anything else that changed...
> 
> To try to make sure I'm running without threads, I am using
> "apache2ctl -X"; I also have ThreadsPerChild and MaxClients set to 1
> but to seemingly no avail. This worked with v3 and is now segfaulting.
> 
> Am I missing something here?

> Follow-on to my previous (sorry for the new thread; it's still being
> moderated),

Google groups moderation seems somewhat broken. When 'allowing' a
held message and senderm the original doesn't get passed through.
So I'm replying to the text of the moderation emails.

> but when I start NYTProf the Apache logs include the following:
> 
> NYTPROF env var not set, so defaulting to NYTPROF='file=/tmp/nytprof.
> 10649.out' at /usr/local/lib/perl/5.10.1/Devel/NYTProf/Apache.pm line
> 24.
> Attempt to free non-existent shared string 'strict::import', Perl
> interpreter: 0x7f5f86c28710.
> Attempt to free non-existent shared string
> 'Log::Log4perl::Appender::new', Perl interpreter: 0x7f5f86c28710.
> Attempt to free non-existent shared string
> 'Log::Log4perl::Logger::level', Perl interpreter: 0x7f5f86c28710.
> Attempt to free non-existent shared string
> 'Log::Log4perl::Appender::layout', Perl interpreter: 0x7f5f86c28710.
> Attempt to free non-existent shared string 'Config::FETCH', Perl
> interpreter: 0x7f5f86c28710.
> ...
> Scalars leaked: -98
> 
> Not sure whether this is related but wanted to be complete in my
> report.

Please try installing slightly older versions (4.04, 4.03 etc.) to
pinpoint the version that triggers the problem.

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]

Reply via email to