[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mod_perl core dumps
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Re: mod_perl core dumps
- From: Pavel Korovin <pvk_(_at_)_tsinet_(_dot_)_ru>
- Date: Wed, 5 Sep 2001 01:18:48 +0400
- Cc: dougm_(_at_)_perl_(_dot_)_apache_(_dot_)_org
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org, dougm_(_at_)_perl_(_dot_)_apache_(_dot_)_org
The bug (?) causing the crash was introduced in mod_perl-1.25_01.
Actually, I'm not shure this is a bug, but the problem was found in
src/modules/perl/mod_perl.c, line 483:
static void mp_dso_unload(void *data)
{
array_header *librefs;
librefs = xs_dl_librefs((pool *)data);
perl_destruct_level = 2;
perl_shutdown(NULL, NULL);
unload_xs_so(librefs);
}
If you comment out the line
perl_destruct_level = 2;
apache will not crash and everything's ok.
It seems that problem is not OpenBSD-related, check out the following URL:
http://marc.theaimsgroup.com/?l=apache-modperl&m=99670484010498&w=2
Setting PERL_DESTRUCT_LEVEL to 2, as recommended, won't help.
Sorry for lame report, lack of coding skills can't allow me to write something
better.
--
Pavel Korovin
Visit your host, monkey.org