On Tue, 3 Oct 2000, Bruce W. Hoylman wrote:
>
> Ciao!
>
> With the latest modperl from CVS, all tests pass during build/test
> phase. However it coredumps when used with my http.conf/startup.pl
> files. An earlier CVS release of modperl (modperl_20000911162240)
> functions as expected. Both modperl revisions have the perl_util.c
> patch applied and perl 5.6 has been patched based on information from
> p5p regarding cop.h and threads. These patches solved an earlier
> SIGSEGV problem (similiar to this one?).
this looks exactly like the problem that should be solved by the patch i
sent you originally, can you try this?
--- 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"));