Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 26733 invoked from network); 16 Oct 2009 18:26:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 18:26:31 -0000 Received: (qmail 64253 invoked by uid 500); 16 Oct 2009 18:26:31 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 64208 invoked by uid 500); 16 Oct 2009 18:26:31 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 64198 invoked by uid 99); 16 Oct 2009 18:26:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 18:26:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ioplex@gmail.com designates 209.85.211.174 as permitted sender) Received: from [209.85.211.174] (HELO mail-yw0-f174.google.com) (209.85.211.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 18:26:23 +0000 Received: by ywh4 with SMTP id 4so394132ywh.10 for ; Fri, 16 Oct 2009 11:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=bvtcWrGqFlR/xirTwdyJ/FIfEpG7qUZ5DIvayYygPP0=; b=c19EpO+sic21mrq4+9ZerrEI5OpnuOMnDE5HpfWGvfKxEINZnAJelyfrNZkDs3x3BO p3+ts+iR4Z7jT3fmszdmYeCjdgXbRtebwq8HSJRfKeap+dxpfAv/qRqw/tzZMljktCVd udntfvk/rju/574Za9Bgr/9kIdwa7RdjN3qsw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wMrgiVakQ/qu9mcBs/Ipv6D98IbpvSAqI8lrA0ve1ODXOaf6BIyH9kje11Y7rPQK+S E6TnPH8WPhtCClfZ2bbVm3CO0ftuzhBTvOnLeB65x6gPLbymhFloxdRbVbcOBXxSQNs6 CL2HP8ee6EHBQL8s3BOLwl8pi03GA6vJnxBcA= MIME-Version: 1.0 Received: by 10.101.145.22 with SMTP id x22mr2262479ann.154.1255717561965; Fri, 16 Oct 2009 11:26:01 -0700 (PDT) In-Reply-To: <4AD8A8F1.3040104@joe-lewis.com> References: <78c6bd860910160928i60431461y7baf134c8644441f@mail.gmail.com> <4AD8A8F1.3040104@joe-lewis.com> Date: Fri, 16 Oct 2009 14:26:01 -0400 Message-ID: <78c6bd860910161126g210ab743u372dc669daafa11@mail.gmail.com> Subject: Re: Debugging: child process 14446 still did not exit, sending a SIGTERM From: Michael B Allen To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 16, 2009 at 1:10 PM, Joe Lewis wrote: > Michael B Allen wrote: >> >> I have a customer who very occasionally sees apache workers hang. I'm >> pretty sure this is caused by an errant module but I don't know which >> one. >> >> Is there any way to determine which module is causing Apache workers to >> hang? >> >> Can I temporarily disable that SIGTERM so that I can have enough time >> to attach GDB to the hanging processes? >> >> Mike >> > > Perhaps run it in a non-forking mode (httpd -X -k start) inside of gdb and > see what it hangs on? If I run it in gdb like you suggest: # gdb httpd (gdb) run -X -k start I cannot get httpd to run module deinitialization. Meaning if I do apachectl stop or httpd -X -k stop or graceful-stop in another terminal, it just kills the whole process group. Since the problem is hanging during module deinitialization I don't think this is going to help me. How do I shutdown httpd so that it runs the module deinitialization routines? Otherwise does anyone have a web-svn pointer to the code that's calling the SIGTERM? Maybe I can find a way to disable it. Mike