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 40463] New: - piped logging causes some weird kill()ing
Date Mon, 11 Sep 2006 10:04:23 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=40463>.
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=40463

           Summary: piped logging causes some weird kill()ing
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: arekm@pld-linux.org


The problem looks like this:

[root@web2 ~]# service httpd restart
httpd.prefork service is not running.
Starting httpd.prefork service.....................................[ BUSY
 ]Terminated
Terminated
Terminated

stracing shows for 2.0.59 and 2.2.3:

2.0.59
 
[root@pepe ~]# grep 'kill(' WYNIK
28181 kill(28180, SIGTERM)              = 0
 
 
2.2.3
[root@pepe buildmpm-prefork]# grep 'kill(' WYNIK
31818 kill(31818, SIGCHLD <unfinished ...>
31818 kill(31818, SIGCHLD <unfinished ...>
31855 kill(31854, SIGTERM)              = 0
31854 kill(0, SIGTERM <unfinished ...>
31818 kill(0, SIGTERM <unfinished ...>
31810 kill(0, SIGTERM)                  = 0

thats above after adding:
CustomLog "| /bin/cat - > /tmp/xx" combined
(normally I use vlogger here; /bin/cat is just for reproduction of the problem)

These kill(0...) seems to be comming from /bin/sh which is run by apache to run /
bin/cat.

After reverting (dropping entire line)
((status = apr_procattr_cmdtype_set(procattr,
                                          APR_SHELLCMD_ENV)) != APR_SUCCESS) 
addition from server/log.c everything is back to normal.


Why apr_procattr...(APR_SHELLCMD_ENV) was added here?

-- 
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