Return-Path: X-Original-To: apmail-trafficserver-dev-archive@www.apache.org Delivered-To: apmail-trafficserver-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8D6F18F78 for ; Fri, 22 Jan 2016 03:27:56 +0000 (UTC) Received: (qmail 76076 invoked by uid 500); 22 Jan 2016 03:27:56 -0000 Delivered-To: apmail-trafficserver-dev-archive@trafficserver.apache.org Received: (qmail 75996 invoked by uid 500); 22 Jan 2016 03:27:56 -0000 Mailing-List: contact dev-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@trafficserver.apache.org Delivered-To: mailing list dev@trafficserver.apache.org Received: (qmail 75985 invoked by uid 99); 22 Jan 2016 03:27:56 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2016 03:27:56 +0000 Received: from [10.0.0.30] (c-24-23-136-16.hsd1.ca.comcast.net [24.23.136.16]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 121F01A0040 for ; Fri, 22 Jan 2016 03:27:55 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: backtrace From: James Peach In-Reply-To: Date: Thu, 21 Jan 2016 19:27:54 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <523F2DAD-4879-40EC-83FD-E204A722BD6C@apache.org> References: To: dev@trafficserver.apache.org X-Mailer: Apple Mail (2.3096.5) > On Jan 21, 2016, at 6:37 PM, Dk Jack wrote: >=20 > Hi, > I am a newbie to ATS and I am trying to write a plugin. My plugin is > crashing... and the crashlog > has this message >=20 > "Unable to retrieve backtrace: [6] Error reading from socket." This means that traffic_crashlog was unable to make an API call into = traffic_manager. Maybe traffic_manager was hosed or not available? > I have installed libunwind8 and libunwind8-dev on my build machine and = the > target machine. >=20 > I see the following lines when I run my configure script... >=20 > = --------------------------------------------------------------------------= --------------------- > checking execinfo.h usability... yes > checking execinfo.h presence... yes > checking for execinfo.h... yes > checking for library containing backtrace... none required = <<<<<<<<< > checking pkg-config is at least version 0.9.0... yes > checking for LIBUNWIND... yes > configure: Using epoll event interface > = --------------------------------------------------------------------------= --------------------- >=20 > When I run 'ldd' against the traffic_server binary, I see that it's = not > linking against libunwind. traffic_manager is the one using libunwind to do the backtrace > How do I enable backtrace so that I can see where my plugin is = crashing. Independently of the crash logging mechanism, you ought to get a = backtrace in the traffic_server log, which would probably be traffic.out = or diags.log depending on your configuration. > Thanks in advance > for any help. >=20 > -Dk