This fixes the segfault I was getting (although that by no means makes this patch correct -- I'd appreciate a comment on whether I hit the right spot, or if there's some nuance to mod_perl's startup I don't know about).
-- Stephen Clouse <[EMAIL PROTECTED]> Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. <http://www.theiqgroup.com/>
Index: src/modules/perl/modperl_interp.c
===================================================================
RCS file: /home/cvspublic/modperl-2.0/src/modules/perl/modperl_interp.c,v
retrieving revision 1.53
diff -u -r1.53 modperl_interp.c
--- src/modules/perl/modperl_interp.c 22 Oct 2002 03:56:30 -0000 1.53
+++ src/modules/perl/modperl_interp.c 13 Nov 2002 06:50:55 -0000
@@ -323,6 +323,9 @@
if (scfg && (is_startup || !scfg->threaded_mpm)) {
MP_TRACE_i(MP_FUNC, "using parent interpreter at %s\n",
is_startup ? "startup" : "request time (non-threaded MPM)");
+ if (!scfg->mip) {
+ modperl_init_vhost(s,p,NULL);
+ }
interp = scfg->mip->parent;
}
else {
msg03425/pgp00000.pgp
Description: PGP signature
