Good morning,

        I've been trying to hunt down a nasty bug that causes apache2/mod_perl
to run away at 99% cpu usage.  strace -p reveals that once it starts
acting up, the process is calling the mremap() function in a tight
loop.  Last night, I disabled mod_perl to see if it would fix the
problem, but unfortunately it seems like that's not what's causing it. 
Now, rather than hanging indefinitely, the spawned perl process must be
killed off by the apache parent; however, the machine still gets up to
full cpu and memory usage.

Each time the process dies it dumps core, and I've read it in using 'gdb
/usr/bin/perl core' and ran a backtrace (that's about the limit of my
gdb debugging knowledge).  Output is below.  Is there any way I can get
more information about what specific perl code is being called here, or
where in the source the problem is originating?  Anyone's input or
insight will be appreciated, I'm at wit's end trying to solve this.

Relevant Information and the backtrace are at:
http://files.l8nite.net/help.html

I also have some backtrace logs of the server with mod_perl running if
they would help.

Thanks!
Shaun Guth

__END__

#0  0x080d4658 in Perl_sv_pos_b2u ()
#1  0x080e5148 in Perl_pp_substcont ()
#2  0x080ba147 in Perl_runops_standard ()
#3  0x08062e1e in Perl_call_sv ()
#4  0x08062d53 in Perl_call_sv ()
#5  0x4025c8a8 in call_coderef ()
   from
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/Template/Stash/XS/XS.so
#6  0x4025ccd2 in scalar_op ()
   from
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/Template/Stash/XS/XS.so
#7  0x4025e153 in dotop ()
   from
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/Template/Stash/XS/XS.so
#8  0x4025ec7d in do_getset ()
   from
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/Template/Stash/XS/XS.so
#9  0x4025d429 in XS_Template__Stash__XS_get ()
   from
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/Template/Stash/XS/XS.so
#10 0x080c0136 in Perl_pp_entersub ()
#11 0x080ba147 in Perl_runops_standard ()
#12 0x0806256c in perl_run ()
#13 0x08062336 in perl_run ()
#14 0x0805ef28 in main ()
#15 0x400b4767 in __libc_start_main () from /lib/libc.so.6



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to