I'm trying to generate a report from a data file created under
mod_perl.  When running

nytprofhtml -f nytprofile.dat.5728 -o profile -l /usr/local/apache/
libs -d

(and leaving out various options, except for -f) I get the following:

[harley...@harleypig docs]$ nytprofhtml -f nytprofile.dat.5728 -o
profile -l /usr/local/apache/libs -d
Generating report...
Reading nytprofile.dat.5728
Segmentation fault

Running strace gives this (just the last few lines):

open("nytprofile.dat.5728", O_RDONLY)   = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=763714, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2abb7b677000
read(4, "NYTProf 2 1\n# Perl profile datab"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

and stepping through the code gets me to Devel::NYTProf::Data::new,
line 78:

         my $profile = load_profile_data_from_file($file);

where it hangs and I have to manually kill the process.

I did find the thread found at
http://groups.google.com/group/develnytprof-dev/browse_frm/thread/95b1d3bd50b4d6bc?tvc=1&q=segmentation+fault
but nothing suggested has worked for me.

I've tried various combinations of the NYTPROF line in my conf file:

PerlSetEnv NYTPROF usecputime=1:use_db_sub=1:leave=0:savesrc=1:file=/
usr/local/apache/libs/docs/nytprofile.dat

is my current line.

--~--~---------~--~----~------------~-------~--~----~
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