Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 21326 invoked from network); 26 Sep 2007 17:31:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2007 17:31:10 -0000 Received: (qmail 65110 invoked by uid 500); 26 Sep 2007 17:30:56 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 65043 invoked by uid 500); 26 Sep 2007 17:30:56 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 65032 invoked by uid 99); 26 Sep 2007 17:30:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 10:30:56 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.183] (HELO smtpauth03.prod.mesa1.secureserver.net) (64.202.165.183) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 26 Sep 2007 17:30:56 +0000 Received: (qmail 18877 invoked from network); 26 Sep 2007 17:30:34 -0000 Received: from unknown (24.15.193.17) by smtpauth03.prod.mesa1.secureserver.net (64.202.165.183) with ESMTP; 26 Sep 2007 17:30:33 -0000 Message-ID: <46FA9739.40107@rowe-clan.net> Date: Wed, 26 Sep 2007 12:30:33 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: [Fwd: DO NOT REPLY [Bug 43491] New: - Piped ErrorLog regression: two piped program started, one attached to tty] Content-Type: multipart/mixed; boundary="------------050403040200040704050200" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------050403040200040704050200 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit In the current log.c code, although the write-end of an initial error logger is still held by the parent --- until the second logger process has kicked off. It seems someone's inherited that write end. I have a two line patch attached that Needs some review before we kick off 2.2.7 into the real world, since we close that write end of the logger right after we've launched the logger. Wondering if this might not be a prefork, worker or event mpm specific failure case. This patch wasn't for this bug, it was strictly for common sense, but I'm wondering if it doesn't have a side effect of solving the bug; Bill --------------050403040200040704050200 Content-Type: text/x-patch; name="httpd-2.x-logging.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="httpd-2.x-logging.patch" Index: server/log.c =================================================================== --- server/log.c (revision 579397) +++ server/log.c (working copy) @@ -414,6 +414,12 @@ "unable to replace stderr with error_log"); } else { + /* We are safer having only a single apr_file_t reference + * to the new main error logging stream + */ + apr_file_close(s_main->error_log) + s_main->error_log = stderr_log; + /* We are done with stderr_pool, close it, killing * the previous generation's stderr logger */ --------------050403040200040704050200 Content-Type: message/rfc822; name*0="DO NOT REPLY [Bug 43491] New: - Piped ErrorLog regression: two"; name*1=" piped program started, one attached to tty" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename*0="DO NOT REPLY [Bug 43491] New: - Piped ErrorLog regression:"; filename*1=" two piped program started, one attached to tty" X-Account-Key: account9 Received: (qmail 24803 invoked from network); 26 Sep 2007 16:43:00 -0000 Received: from unknown (HELO pre-smtp07-02.prod.mesa1.secureserver.net) ([64.202.166.44]) (envelope-sender ) by smtp03-02.prod.mesa1.secureserver.net (qmail-1.03) with SMTP for ; 26 Sep 2007 16:43:00 -0000 Received: (qmail 4371 invoked from network); 26 Sep 2007 16:42:57 -0000 Received: from unknown (HELO mail.apache.org) ([140.211.11.2]) (envelope-sender ) by pre-smtp07-02.prod.mesa1.secureserver.net (qmail-ldap-1.03) with SMTP for ; 26 Sep 2007 16:42:57 -0000 Received: (qmail 46470 invoked by uid 500); 26 Sep 2007 16:42:47 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 46457 invoked by uid 99); 26 Sep 2007 16:42:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 09:42:47 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2007 16:42:56 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id C61BC71403E; Wed, 26 Sep 2007 09:42:35 -0700 (PDT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 43491] New: - Piped ErrorLog regression: two piped program started, one attached to tty Message-ID: X-Bugzilla-Reason: AssignedTo Date: Wed, 26 Sep 2007 09:42:35 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org X-Nonspam: None DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=43491 Summary: Piped ErrorLog regression: two piped program started, one attached to tty Product: Apache httpd-2 Version: 2.2.6 Platform: Other OS/Version: AIX Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: bugs@httpd.apache.org ReportedBy: christian_boitel@yahoo.fr Pb was reproduced with 2.2.6 on AIX and Solaris. Once piped log are configured (ex with rotatelogs), if you start Apache, you will find two copies of the errorlog piped program: - one has been started a few seconds prior to the second one - the first one has parent pid=1 (not httpd) and is attached to your tty Example below: UID PID PPID C STIME TTY TIME CMD root 1761522 1 0 18:28:05 - 0:00 httpd -k start xxxx 1892358 1761522 0 18:28:05 - 0:00 httpd -k start root 1077456 1 0 18:28:02 pts/12 0:00 rotatelogs errors.%Y%m%d 86400 root 2170970 1761522 0 18:28:05 - 0:00 rotatelogs errors.%Y%m%d 86400 Since the first one is attached to your tty, you can no longer exit your ssh connection easily nor automate things with remote shell commands Located the pb in server/log.c: latest revision commited in 2.2.x branch introduced the regression http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/log.c? r1=569542&r2=570451&diff_format=h Note: if first piped program is killed, no prob since the second one is the one doing the job -- 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 --------------050403040200040704050200--