Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 59649 invoked from network); 15 Jan 2007 17:31:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2007 17:31:52 -0000 Received: (qmail 38077 invoked by uid 500); 15 Jan 2007 17:31:52 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 37871 invoked by uid 500); 15 Jan 2007 17:31:52 -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 37858 invoked by uid 99); 15 Jan 2007 17:31:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 09:31:52 -0800 X-ASF-Spam-Status: No, hits=-9.2 required=10.0 tests=ALL_TRUSTED,MAILTO_TO_SPAM_ADDR,NO_REAL_NAME 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; Mon, 15 Jan 2007 09:31:43 -0800 Received: by brutus.apache.org (Postfix, from userid 33) id 2CC917142BA; Mon, 15 Jan 2007 09:31:22 -0800 (PST) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 41367] - Logging to a pipe causes hanging children when doing a graceful restart In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20070115173122.2CC917142BA@brutus.apache.org> Date: Mon, 15 Jan 2007 09:31:22 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org 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=41367 ------- Additional Comments From dave64@andrew.cmu.edu 2007-01-15 09:31 ------- If you'd like to see how this manifests itself in practice, here's some output. Truss output showing that pid 27009 is blocking on a write to fd 11 (and that it was not interrupted by SIGPIPE): bash-2.03# truss -f -d -l -p 27009 Base time stamp: 1168438376.6331 [ Wed Jan 10 09:12:56 EST 2007 ] 27009/1: write(11, " 2 2 1 . 2 0 3 . 5 5 . 1".., 68) (sleeping...) 27009/2: signotifywait() (sleeping...) 27009/3: lwp_sema_wait(0xFE30DE60) (sleeping...) lsof output showing that fd 11 is a pipe with inode number 43592: bash-2.03# lsof -p 27009 lsof: WARNING: can't access AFS name list file: /usr/vice/etc/modload/libafs COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME libhttpd. 27009 nobody cwd VDIR 32,0 512 4728578 /usr/www/htdocs libhttpd. 27009 nobody txt VREG 32,0 63424 4698542 /usr/www/libexec/libhttpd.ep libhttpd. 27009 nobody txt VREG 32,0 44836 403254 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 700020 4698548 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 0,4660 1720344 602079816 /afs (AFS) libhttpd. 27009 nobody txt VREG 32,0 124212 4698549 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 0,4660 325392 602079818 /afs (AFS) libhttpd. 27009 nobody txt VREG 32,0 2841428 4698535 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 57560 4698506 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 63128 4698501 /usr/www/libexec/mod_usertrack.so libhttpd. 27009 nobody txt VREG 32,0 59044 4698524 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 55852 4698528 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 53816 4698534 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 59208 4698530 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 57404 4698537 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 153492 4698508 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 60644 4698532 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 54424 4698502 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 59648 4698505 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 64880 4698526 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 53144 4698523 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 96484 4698529 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 105828 4698516 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 76280 4698504 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 100992 4698509 /usr/www/libexec/mod_negotiation.so libhttpd. 27009 nobody txt VREG 32,0 66980 4698511 /usr/www/libexec/mod_mime.so libhttpd. 27009 nobody txt VREG 32,0 75536 4698512 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 1158072 403702 /usr/lib/libc.so.1 libhttpd. 27009 nobody txt VREG 32,0 183496 403244 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 24968 403219 /usr/lib/libmp.so.2 libhttpd. 27009 nobody txt VREG 0,4660 310140 386007042 /afs (AFS) libhttpd. 27009 nobody txt VREG 32,0 911408 403524 /usr/lib/libnsl.so.1 libhttpd. 27009 nobody txt VREG 32,0 5008 403701 /usr/lib/libdl.so.1 libhttpd. 27009 nobody txt VREG 32,0 38904 403515 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 32,0 70864 403506 /usr/lib/libsocket.so.1 libhttpd. 27009 nobody txt VREG 32,0 2023308 4698541 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody txt VREG 0,4660 4852 1138820532 /afs (AFS) libhttpd. 27009 nobody txt VREG 32,0 267824 403587 /usr/lib/ld.so.1 libhttpd. 27009 nobody 0r VCHR 13,2 0t0 974615 /devices/pseudo/mm@0:null libhttpd. 27009 nobody 1w VCHR 13,2 0t0 974615 /devices/pseudo/mm@0:null libhttpd. 27009 nobody 2u FIFO 0x3000807f108 0t78 43591 (fifofs) PIPE->0x3000807f020 libhttpd. 27009 nobody 3r VREG 32,0 2048 2845618 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 4u VCHR 24,4 0t11864267 974698 /devices/pseudo/pts@0:4->ttcompat->ldterm->ptem->pts libhttpd. 27009 nobody 5u VCHR 24,4 0t11864267 974698 /devices/pseudo/pts@0:4->ttcompat->ldterm->ptem->pts libhttpd. 27009 nobody 6u VCHR 24,4 0t11864267 974698 /devices/pseudo/pts@0:4->ttcompat->ldterm->ptem->pts libhttpd. 27009 nobody 7r DOOR 307,0 0t0 5108 /etc/.name_service_door (door to nscd[404]) libhttpd. 27009 nobody 8u FIFO 0x3000807f108 0t78 43591 (fifofs) PIPE->0x3000807f020 libhttpd. 27009 nobody 9r VREG 32,0 2048 2845618 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27009 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27009 nobody 12u FIFO 0x3000807ee20 0t0 43593 (fifofs) PIPE->0x3000807ef08 libhttpd. 27009 nobody 13u FIFO 0x3000807ef08 0t236 43593 (fifofs) PIPE->0x3000807ee20 libhttpd. 27009 nobody 14u IPv4 0x3000a154650 0t0 TCP WWW-ANDREW-1.andrew.cmu.edu:*->221.203.55.166:* (IDLE) libhttpd. 27009 nobody 15w VREG 32,0 7424659 6142352 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 16u IPv4 0x3000788d248 0t0 TCP *:443 (LISTEN) libhttpd. 27009 nobody 17u IPv4 0x30007af13d0 0t0 TCP *:www (LISTEN) libhttpd. 27009 nobody 18w VREG 32,0 0 4620295 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 19w VREG 32,0 0 4620301 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 20w VREG 32,0 0 4620307 / (/dev/dsk/c0t0d0s0) libhttpd. 27009 nobody 21w VREG 32,0 0 4620301 / (/dev/dsk/c0t0d0s0) Now I ran lsof and grepped for 43592 in an attempt to find out what cronolog process should be at the other end of the pipe, only to discover that there isn't one: bash-2.03# lsof | grep 43592 lsof: WARNING: can't access AFS name list file: /usr/vice/etc/modload/libafs libhttpd. 25624 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25624 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25635 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25635 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25685 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25685 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25734 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25734 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25804 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25804 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25903 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25903 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25904 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25904 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 25906 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 25906 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26287 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26287 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26920 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26920 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26944 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26944 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26947 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26947 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26964 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26964 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 26965 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 26965 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27005 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27005 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27007 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27007 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27009 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27009 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27119 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27119 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27120 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27120 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27162 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27162 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27164 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27164 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27165 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27165 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27170 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27170 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27173 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27173 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27211 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27211 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27212 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27212 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27213 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27213 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27222 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27222 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27227 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27227 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27246 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27246 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27247 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27247 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27268 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27268 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27397 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27397 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27400 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27400 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27402 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27402 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27605 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27605 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 27718 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 27718 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 28707 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 28707 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 28713 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 28713 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 libhttpd. 28717 nobody 10u FIFO 0x30002c35620 0t0 43592 (fifofs) PIPE->0x30002c35708 libhttpd. 28717 nobody 11u FIFO 0x30002c35708 0t419 43592 (fifofs) PIPE->0x30002c35620 -- 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