On Wed, 19 Jul 2000, Michael J Schout wrote:

> I have been trying to get CGI::Application to work under mod_perl today.  So
> far with no success.
> 
> Finally I removed everything except CGI::Application from the config files, and
> the server dumps core on startup. 
> 
> I have a very stripped odwn httpd.conf that basically loads the bare minimum
> apache modules, then does "PerlModule CGI::Appliation".
> 
> Starting httpd dumps core when it tries to start up.
> 
> Running it through the debugger produces this:

i think this is one of the bugs fixed by the Perl patch (which will be 
in 5.6.1), see:
[EMAIL PROTECTED]">http://forum.swarthmore.edu/epigone/modperl/dilkhumyox/[EMAIL PROTECTED]

the patch below to mod_perl might also fix it.

--- perl_util.c~        Tue Jun 13 10:25:38 2000
+++ perl_util.c Tue Jun 13 11:16:45 2000
@@ -547,12 +547,14 @@
 {
     dTHR;
     SV *sv = sv_newmortal();
+    COP *old_cop = curcop;
     dTHRCTX;
 
     sv_setpvn(sv, "require ", 8);
     MP_TRACE_d(fprintf(stderr, "loading perl module '%s'...", name)); 
     sv_catpv(sv, name);
     perl_eval_sv(sv, G_DISCARD);
+    curcop = old_cop;
     if(s) {
        if(perl_eval_ok(s) != OK) {
            MP_TRACE_d(fprintf(stderr, "not ok\n"));

Reply via email to