perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [mp2] pools that go out of scope aren't a problem anymore?
Date Mon, 06 Dec 2004 15:45:09 GMT
Philippe M. Chiasson wrote:

>>> This is a problem with persistence, not "ownership", and affects the
>>> entirety of mp2's object system.  In other words, there's no reason 
>>> to single out pools in your example, the bug could just as easily been
>>> my $r;
>>>    sub handler {
>>>        $r ||= shift;
>>>        my $pool = $r->pool; #bam!
>>>    }
> I agree. I think it's important to make sure that whatever perl code our 
> users
> end up writing, that they are not able to segfault the server. 
> Preventing/detecting
> this particular kind of problem will be tricky though.

The penalty of doing that will be too big for the normal uses. So 
hopefully we won't have to deal with that too much. And in the worst case, 
we will try to resolve the issue if we will have it.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message