Jani M. wrote:
Jani M. wrote:
After a few moments of trial and error, I tracked the problem down to
$r->push_handlers(PerlFixupHandler => \&fixup_handler). The segfaults
start even if this is the only thing the original postreadrequesthandler
does, and even if the fixuphandler does absolutely nothing. If I set the
same fixuphandler in the server config file, and don't use
push_handlers, the problem goes away.
So you push this fixup handler in the postreadrequesthandler? There is
a known issue with this which sounds like it could be related:
http://marc.info/?l=apache-modperl&m=115812572132632&w=2
I have dug into the issue somewhat but have been caught up in a tuit
drought lately and haven't made much progress on it. The gist of it is,
if you push a handler onto a different phase, any existing handlers for
that phase are removed and replaced with the new pushed handler. I
haven't tried this under threads but have been able to replicate the
issue in a reproducible test case (see mail thread).