Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31F724AFD for ; Wed, 8 Jun 2011 14:27:50 +0000 (UTC) Received: (qmail 3717 invoked by uid 500); 8 Jun 2011 14:27:49 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 3665 invoked by uid 500); 8 Jun 2011 14:27:49 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 3650 invoked by uid 99); 8 Jun 2011 14:27:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:27:49 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [71.6.165.248] (HELO kramer.ogre.com) (71.6.165.248) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 14:27:42 +0000 Received: from loki.ogre.com (24-52-35-136.co.warpdriveonline.com [24.52.35.136]) (authenticated bits=0) by kramer.ogre.com (8.14.4/8.14.4) with ESMTP id p58ERKUG026799 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 8 Jun 2011 07:27:20 -0700 X-DKIM: Sendmail DKIM Filter v2.8.3 kramer.ogre.com p58ERKUG026799 Message-ID: <4DEF86C8.8080207@apache.org> Date: Wed, 08 Jun 2011 08:27:20 -0600 From: Leif Hedstrom User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: users@trafficserver.apache.org CC: dev@trafficserver.apache.org Subject: Re: Debugging ATS crashers with gdb References: <4DEA9573.30804@apache.org> In-Reply-To: <4DEA9573.30804@apache.org> Content-Type: multipart/alternative; boundary="------------080703040903040808030608" This is a multi-part message in MIME format. --------------080703040903040808030608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/04/2011 02:28 PM, Leif Hedstrom wrote: > Hi all, > > these questions pops up all the time, how to get a stack traces etc. > from a crashing ATS installation. So, here are some quick tips . One more tip for debugging with gdb, this one is suggested from John: (gdb) handle SIGPIPE nopass nostop noprint You can also put this in your .gdbinit. For some reason, even though we explicitly specify to ignore SIGPIPE,while running under gdb, it can still cause write() to generate a SIGPIPE (when under normal operation, it would be an EPIPE error). Therefore, it's important you do this, to avoid a "false positive" in calls to write(). -- leif --------------080703040903040808030608 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 06/04/2011 02:28 PM, Leif Hedstrom wrote:
Hi all,

these questions pops up all the time, how to get a stack traces etc. from a crashing ATS installation. So, here are some quick tips .

One more tip for debugging with gdb, this one is suggested from John:

    (gdb) handle SIGPIPE nopass nostop noprint


You can also put this in your .gdbinit. For some reason, even though we explicitly specify to ignore SIGPIPE,while running under gdb, it can still cause write() to generate a SIGPIPE (when under normal operation, it would be an EPIPE error). Therefore, it's important you do this, to avoid a "false positive" in calls to write().

-- leif

--------------080703040903040808030608--