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

mod_perl - core dumps 'resolved'



After finally getting a -current system up and running, I have been able to
look at the recent mod_perl problems.

I do not know enough about perl internals to know what has changed with
5.8.0 and I am not sure if there is any interaction with propolice changes,
but the quick fix is to use a PERL_DESTRUCT_LEVEL to -1, not 0.

Edit the patches/patch-src_modules_perl_mod_perl_c file and change the = 0
to = -1:

$OpenBSD: patch-src_modules_perl_mod_perl_c,v 1.1 2001/09/05 09:26:43 peter
Exp $
--- src/modules/perl/mod_perl.c.orig    Wed Sep  5 09:19:45 2001
+++ src/modules/perl/mod_perl.c Wed Sep  5 09:19:55 2001
@@ -485,7 +485,7 @@ static void mp_dso_unload(void *data)
     array_header *librefs;

     librefs = xs_dl_librefs((pool *)data);
-    perl_destruct_level = 2;
+    perl_destruct_level = -1;
     perl_shutdown(NULL, NULL);
     unload_xs_so(librefs);
 }


I ask anyone who knows more about perl internals to think about why this may
be, and why on OpenBSD specifically ?

Peter