mod_perl2 (ModPerl::Registry) crashes httpd if request-object is used in a subroutine

2004-01-08 Thread Alexander Bergolth
Hi! I'm suffering from the following problem: When I'm using the request-object in a subroutine without having passed it to the sub as a parameter, the apache child processes die with a segmentation fault when being reused. If httpd is started with prefork and StartServers 8, the first 8 request

Re: mod_perl2 (ModPerl::Registry) crashes httpd if request-object is used in a subroutine

2004-01-08 Thread Alexander Bergolth
On 01/08/04 19:15, Perrin Harkins wrote: Alexander Bergolth wrote: When I'm using the request-object in a subroutine without having passed it to the sub as a parameter, the apache child processes die with a segmentation fault when being reused. Well, it probably shouldn't segfault, but

Re: mod_perl2 (ModPerl::Registry) crashes httpd if request-object is used in a subroutine

2004-01-09 Thread Alexander Bergolth
On 01/08/2004 10:14 PM, Perrin Harkins wrote: On Thu, 2004-01-08 at 15:43, Alexander Bergolth wrote: Why do I create a closure? If i'd create a closure I would have to store a reference to an _anonymous sub No, that's a common misconception. Closures and anonymous subs are two totall