[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mod_perl core dumps



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