Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 54805 invoked from network); 12 Nov 2010 16:13:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 16:13:15 -0000 Received: (qmail 14477 invoked by uid 500); 12 Nov 2010 16:13:46 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 14312 invoked by uid 500); 12 Nov 2010 16:13:45 -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 14299 invoked by uid 99); 12 Nov 2010 16:13:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 16:13:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 16:13:45 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oACGDO9Q011294 for ; Fri, 12 Nov 2010 16:13:24 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id oACGDOnM011293; Fri, 12 Nov 2010 11:13:24 -0500 (EST) Date: Fri, 12 Nov 2010 11:13:24 -0500 (EST) Message-Id: <201011121613.oACGDOnM011293@thor.apache.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 50261] graceful restart with multiple listeners using prefork MPM can result in hung processes X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: prefork X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trawick@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=50261 --- Comment #5 from Jeff Trawick 2010-11-12 11:13:20 EST --- Charles, can you hit the problem with "AcceptMutex sysvsem" ? I wonder if the stall of these two children in pthread_mutex_lock is caused by the pthread mutex getting cleaned up in the parent when pconf is destroyed while there are still users of the mutex. I don't know what happens when the parent munmaps the storage for the mutex or if that could be system dependent. The following is just a quick hack to try to see if killing the pthread mutex in the parent during this graceful restart scenario is what causes the children to hang. (It never deletes the old mutex.) Charles, perhaps you could try to recreate with this patch and the default AcceptMutex? Index: server/mpm/prefork/prefork.c =================================================================== --- server/mpm/prefork/prefork.c (revision 1034057) +++ server/mpm/prefork/prefork.c (working copy) @@ -940,7 +940,7 @@ ap_my_pid); rv = apr_proc_mutex_create(&accept_mutex, ap_lock_fname, - ap_accept_lock_mech, _pconf); + ap_accept_lock_mech, s->process->pool); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s, "Couldn't create accept lock (%s) (%d)", It isn't a permanent solution because it leaks pthread mutexes across graceful restart, but it may be helpful for the investigation. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org