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 you can't do that. You are creating a closure which will permanently keep a copy of the very first $r that existed in that process, but $r is really an apache structure that gets freed after each request. If you need a copy of $r but don't want to pass it, and you are running in pre-fork MPM, you can use the Apache->request() call.


- Perrin


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to