perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject [PATCH]Re: segfault analysis
Date Mon, 07 May 2007 15:40:14 GMT
On Sunday 06 May 2007 19:11, Torsten Foertsch wrote:
> I am in the middle of the analysis of a segfault. The segfault happens in a
> $r->push_handlers(PerlFixupHandler=>sub{}). Unfortunately it happens not
> for every request but after 13. Finally, I think I have tracked it down to
> something to talk about.

The attached patch fixes that. The problem was that with an already 
initialized rcfg (ravp && *ravp == true) but no handler configured in dcfg a 
pointer allocated from r->pool was saved in dcfg.

That happens if there is no handler configured at startup time but more than 
one for the same phase at request time.

Torsten

Mime
View raw message