httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25520] New: - Corrupt log lines at high volumes
Date Mon, 15 Dec 2003 01:10:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25520>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25520

Corrupt log lines at high volumes

           Summary: Corrupt log lines at high volumes
           Product: Apache httpd-2.0
           Version: 2.0-HEAD
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: adam.sussman@ticketmaster.com


mod_log_config with buffered logging turned on shows corrupted log lines when
serving at very high volumes using the worker mpm.  This is very consistent
behaviour with all recent versions of 2.0.

The problem appears to be that the per-child buffer management is not thread
safe.  There is nothing to prevent the memcpy operations in
ap_buffered_log_writer by different threads from overlapping.

Since this is a problem that happens at high volume, adding a mutex around this
isn't necessarily the most attractive option.  Also, it is unclear whether or
not a thread mutex is good enough.  mod_rewrite uses a global mutex for its logging.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message