Return-Path: Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: (qmail 38383 invoked from network); 16 Jul 2010 01:22:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jul 2010 01:22:04 -0000 Received: (qmail 85678 invoked by uid 500); 16 Jul 2010 01:22:04 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 85558 invoked by uid 500); 16 Jul 2010 01:22:04 -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 85550 invoked by uid 99); 16 Jul 2010 01:22:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jul 2010 01:22:03 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Fri, 16 Jul 2010 01:21:55 +0000 Received: from loki.ogre.com (homey.ogre.com [24.56.189.145]) (authenticated bits=0) by kramer.ogre.com (8.14.3/8.14.3) with ESMTP id o6G1INNl007757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Jul 2010 18:18:23 -0700 X-DKIM: Sendmail DKIM Filter v2.8.3 kramer.ogre.com o6G1INNl007757 Message-ID: <4C3FB35F.9070303@apache.org> Date: Thu, 15 Jul 2010 19:18:23 -0600 From: Leif Hedstrom User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: users@trafficserver.apache.org CC: Jason Wieland Subject: Re: help with ats plugins: logging, segfaults and malformed content References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 07/15/2010 06:31 PM, Jason Wieland wrote: > Hello group, I'm running an up to date (Revision: 964088) of ATS on > 64bit ubuntu using the official ec2 images as a forward proxy. > > I'm now attempting to write a plugin that will inject a line of html > into the body of the response content for every request the proxy > serves. ATS is supplied with a bunch of example plugins that give me > a great starting point but I'm having a couple problems. > > 1. I can't seem to get the ' INKDebug("debug-hello", "Hello > World!\n");' as log by the hello.so plugin into either stdout or into > syslog. I added the following options to records.config, but still no > log messages You'd want to trace with "debug-hello", e.g. using traffic_server from command line, run it with -T "debug-hello". That would produce those on STDOUT. If enabling diagnostics via records.config, and starting the normal way, I believe the output should end up in traffic.out. E.g. CONFIG proxy.config.diags.debug.enabled INT 1 CONFIG proxy.config.diags.debug.tags STRING debug-hello > > 2. I compiled and successfully loaded in hello.so example plugin. > However when I load in the null-transform.so plugin I get > Segmentation faults after about 3-4 requests: > > root@ip-10-251-163-xxx:/usr/local# ./bin/traffic_server > [TrafficServer] using root directory '/usr/local' > [Jul 15 23:44:52.866] {140596841482000} STATUS: opened > /usr/local/var/log/trafficserver/diags.log > NOTE: Traffic Server received Sig 11: Segmentation fault > ./bin/traffic_server - STACK TRACE: > Segmentation fault I'd have to try this myself, unless you can provide a stack trace (and/or file a bug). I'm ooffice until next week though. Cheers, -- leif