httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <>
Subject Re: log_transaction called without corresponding request (no fixups call)
Date Fri, 26 Aug 2011 22:28:50 GMT
On 8/26/2011 2:45 PM, Yonts, Richard wrote:
> I just finished debugging some code where I was getting segmentationfaults.  It turned
> that my log_transaction hook ASSUMED that there would always be a corresponding request
> before it got called.  In fixups, I create a request configuration block and initialize
> some data.  In log_transaction it uses that data.  However, I discovered that there are
> some cases where fixups wasNOT called but log_transaction was.  To work around, I simply
> return DECLINED if there is a NULL request config block.  However, I am puzzled as to
> this situation would occur.  The affected system is RHEL 4 with Apache at 2.2.19; this
> does NOT seem to happen on my development Ubuntu system (any version of Ubuntu or Apache).

Sounds right... any phase other than the handler (including earlier
fixup hooks) are free to abort the request with a failure result and
avoid the fixup/handler phase.

But all incoming requests are ultimately logged.

View raw message