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 40476] - warn message is mistakenly written to access log
Date Wed, 04 Oct 2006 11:09:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40476





------- Additional Comments From Tom.Donovan@acm.org  2006-10-04 04:09 -------
Yes, the problem happens on Windows.  The stderr filehandle is not 2, as in
Unix, and a dup() of stderr produces a new (arbitrary) filehandle value.

For a quick repro: If you start Apache 2.2.3 on Windows with a pre-existing
httpd.pid - no "Unclean shutdown" message appears in the error log (the write is
attempted to a closed filehandle).  If you repeat this after applying the patch,
the message correctly appears in the error log.

I cannot repro the case where the message appears in the wrong file.  It is just
conjecture that a previously closed stderr handle got re-used for an access log
in Amichai's installation.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message