perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: A2::SL -- sanity check please
Date Fri, 25 Aug 2006 15:24:37 GMT

> in the 2.x series,
>         ### XXX: mp1 / mp2 API difference

yucko?  who came up with that great idea?

;)


> SECOND, the second time you call
> 
> @handlers = @{ $r->get_handlers('PerlCleanupHandler') || [] };
>         is( scalar @handlers, 1,
>             'there is one PerlCleanupHandler after add_cleanup_handler()' );
> 
> IT SEGFAULTS!

verified.  yucko.

> (gdb) bt
> #0  0x28426ad1 in strlen () from /lib/libc.so.6
> #1  0x287e2fbb in Perl_newSVpv (s=0x0, len=0) at sv.c:6885
>  av_push(av, newSVpv(handler->name, 0));
> 
> #2  0x2871a67e in modperl_handler_perl_get_handlers (handp=0x82c6e6c, p=0x82c6018) at
modperl_handler.c:584
> #3  0x288fbeb2 in mpxs_Apache2__RequestRec_get_handlers (r=0x82c6050, name=0x8a82880
"PerlCleanupHandler")
>     at
> /usr/home/pgollucci/dev/compile/freebsd-6.1-stable/3.4.4/mod_perl/r436693-5.8.8-2.2.3-prefork/xs/Apache2/RequestUtil/Apache2__RequestUtil.h:48
> #4  0x288fdc08 in XS_Apache2__RequestRec_get_handlers (cv=0x8a7b570) at RequestUtil.xs:146

looks the same as mine.

I wonder if the root cause isn't trying to push an anonymous subroutine
onto the stack in SizeLimit.pm?  reaching back into the depths of my
memory, anyonymous subs seem to have just started working one day, well
before anyone implemented them...

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message