On Tue, 4 Sep 2001, Kenny Smith wrote:

> Hi all,
>
> I've been working on this for awhile, and I still haven't been able to
> figure it out.
>
> Here's the script I'm executing:

Wow, that's a lot of code.  Can you boil it down to something smaller that
still causes the problem?

>    if ( ! defined ( $main::dbh ) ) {
>       $DB_INFO = eval { do '/usr/www/anathema/lib/db.lib' } ;
>       $main::dbh = DBI->connect( "DBI:mysql:$DB_INFO->{'NAME'}" ,
>                                  $DB_INFO->{'USERNAME'} ,
>                                  $DB_INFO->{'PASSWORD'} ) ;
>    }

Yikes!  Use Apache::DBI.  If this code ever gets run at server startup
you'll end up with all your servers trying to share the same handle.

> httpd in realloc(): warning: modified (chunk-) pointer.
> Out of memory!

Don't blame me - I'm not calling realloc!  HTML::Template is a Perl-only
module.  There's something wrong with your Apache/mod_perl, most likely.

> I'm running apache (1.3.19) in single process mode, as the debugging docs
> suggest for mod_perl (1.25). I'm using perl 5.005_03 and H:T 2.3.

5.005_03 is obsolete.  Try rebuilding with Perl 5.6.1 installed - it could
fix your problem.  Also, you didn't say how your Apache was built.  Try
building Apache without DSO support - everything static.  It's faster and
a lot less crash-prone.

Have you read the mod_perl debugging docs yet?  You can find them at
http://perl.apache.org.  There's all kinds of helpful tips there.  Also,
the mod_perl list might have some better answers for you.

-sam



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to