Issue we are facing with Profinling our Mod Perl App

--0015176f0ca811e98804a2747f3d
Content-Type: text/plain; charset=ISO-8859-1

Hi,

We are using the standard CPAN module, Devel::NYTProf::Apache for profiling
our mod_perl App. We have set it up as follows :

1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf file.
2) Restarted Apache with a Single Process with the command line option -X.
Then, Apache 'Segfaults' (Segmentation fault).

As a result I used Core dumping with Apache and checked with 'gdb' but
nothing useful found(Perhaps there is more to check that I am not aware at
the moment).

Note also that,

1) we restarted Apache normally(with more than one child processes), then it
just 'runs' as usual and when I checked the
Exit Status, it was normal(0), but there was no httpd processes running.

2) I checked with both NYTPROF variable set and without setting it(in which
case it will default to /tmp/nytprof.$$.out).

3) checked with various trace levels, when it is zero it segfaults asap, if
it is 1 it prints some then segfaults and if it is 2 it prints some more
then segfaults, etc etc. ( I checked upto level 3 of trace so far.)

Thanks and Regards
Mohammed.

--0015176f0ca811e98804a2747f3d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>We are using the standard CPAN module, Devel::NYTProf::Apache fo=
r profiling our mod_perl App. We have set it up as follows :<br>
<br>1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf=
file.<br>2) Restarted Apache with a Single Process with the command line o=
ption -X. Then, Apache 'Segfaults' (Segmentation fault).<br><br>

As a result I used Core dumping with Apache and checked with 'gdb' =
but
nothing useful found(Perhaps there is more to check that I am not aware
at the moment).<br><br>Note also that,<br><br>1) we restarted Apache normal=
ly(with more than one child processes), then it just 'runs' as usua=
l and when I checked the<br>
=A0=A0 Exit Status, it was normal(0), but there was no httpd processes runn=
ing.<br><br>2) I checked with both NYTPROF variable set and without setting=
it(in which case it will default to<span> /tmp/</span>nytprof<span>.</span=
>$$<span>.</span>out).<br>

<br>3) checked with various trace levels, when it is zero it segfaults
asap, if it is 1 it prints some then segfaults and if it is 2 it prints
some more then segfaults, etc etc. ( I checked upto level 3 of trace so
far.)<br>
<br>Thanks and Regards<br>Mohammed.<br>

--0015176f0ca811e98804a2747f3d--
Mohammed Shakir [ Mi, 04 Mai 2011 16:58 ] [ ID #2059136 ]

Re: Issue we are facing with Profinling our Mod Perl App

Hi,

> 1) Inserted "PerlModule Devel::NYTProf::Apache" in httpd.conf file.
> 2) Restarted Apache with a Single Process with the command line option -X.
> Then, Apache 'Segfaults' (Segmentation fault).

Does your app work under -X without NYTProf?

My first suggestion would be to use the most up-to-date versions of
NYTProf, apache, perl, and mod_perl that you can. If the problem
persists, you'll probably need to contact the author of Devel::NYTProf
and provide a backtrace.

- Perrin
Perrin Harkins [ Do, 05 Mai 2011 22:43 ] [ ID #2059137 ]

Re: Issue we are facing with Profinling our Mod Perl App

On Thu, 05 May 2011 00:58:58 +1000, Mohammed Shakir <shak380 [at] gmail.com>
wrote:

> We are using the standard CPAN module, Devel::NYTProf::Apache for
> profiling our mod_perl App. We have set it up as follows :
>
> [...]
>
> Then, Apache 'Segfaults' (Segmentation fault).

Hi Mohammed,

you don't seem to mention your OS or Apache version or
Perl version, so this might be totally unrelated,
but...

Make sure you have Class::XSAccessor at least v1.11.
For more details:

http://my.opera.com/cstrep/blog/ubuntu-10-10-modperl-and-apa che-segfaulting

--
Cosimo
Cosimo Streppone [ Fr, 06 Mai 2011 02:47 ] [ ID #2059216 ]
Webserver » gmane.comp.apache.mod-perl » Issue we are facing with Profinling our Mod Perl App

Vorheriges Thema: APR::Table sporadic error
Nächstes Thema: [mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4