Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 52557 invoked from network); 10 Nov 2010 23:30:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 23:30:46 -0000 Received: (qmail 37150 invoked by uid 500); 10 Nov 2010 23:31:17 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 37124 invoked by uid 500); 10 Nov 2010 23:31:17 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 37117 invoked by uid 99); 10 Nov 2010 23:31:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 23:31:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pharkins@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qw0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 23:31:12 +0000 Received: by qwh6 with SMTP id 6so1247032qwh.22 for ; Wed, 10 Nov 2010 15:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=/3hH7N9K0KriwYDLFOgZ6yUQnJ4RRSClBN50G/uildo=; b=hgFQBRmRC5eBbuOeKExy0K9J84xMyOp04F9khRsM94FsXI2tL1nBucwEBxptGdFbzd rRnZfYMC9UkPwV+KgcCWZirNRQjQZ5kQKyakpQfomctqIJE45f88+gKVeZrOB2JFmbmu fWIK9w8QcGpMjbFZI/GJFlrTEYLNbF+yNRsFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=bDoiOJ97E2eE8qpl3si4OUIxvl5SEhoFOO2TQmmqtvKnFiXwpRSc5F7VZQWRTVU1sS de/nWL/NuMYsNHw60ymw/cueBp1k/nr0U/btHothiWAdKzbxP5ftIEOYjqbyCuReIIP9 UHCzucAiBHR5adpwe07NCmQAuik0NaIeCSCwc= MIME-Version: 1.0 Received: by 10.229.97.141 with SMTP id l13mr114214qcn.135.1289431851735; Wed, 10 Nov 2010 15:30:51 -0800 (PST) Sender: pharkins@gmail.com Received: by 10.220.181.76 with HTTP; Wed, 10 Nov 2010 15:30:21 -0800 (PST) In-Reply-To: <4CDB27B5.6090607@1200group.com> References: <4CDB27B5.6090607@1200group.com> Date: Wed, 10 Nov 2010 18:30:21 -0500 X-Google-Sender-Auth: tke1bKSFYGuWmFYqiGWUcUnFipM Message-ID: Subject: Re: I think AuthCookie(DBI) is causing segfaults? From: Perrin Harkins To: Tosh Cooey Cc: "modperl@perl.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Which MPM are you using? - Perrin On Wed, Nov 10, 2010 at 6:16 PM, Tosh Cooey wrote: > I have a standard mod_perl setup, application is a server and mysql is > another. > > I use AuthCookieDBI > http://cpansearch.perl.org/src/MATISSE/Apache2-AuthCookieDBI-2.05/lib/Apa= che2/AuthCookieDBI.pm > for authentication against the DB. > > If the application has not been used for a while, a few hours, then when = a > user tries to connect Apache segfaults. =A0Here is debug output: > > [Wed Nov 10 22:37:04 2010] [error] auth_type DISKO::AUTH > [Wed Nov 10 22:37:04 2010] [error] r=3DApache2::RequestRec=3DSCALAR(0x81f= 6f290) > authtype=3DDISKO::AUTH > [Wed Nov 10 22:37:04 2010] [error] auth_name berlin3 > [Wed Nov 10 22:37:04 2010] [error] ses_key_cookie > [Wed Nov 10 22:37:04 2010] [error] uri /clientID/index.pl > [Wed Nov 10 22:37:04 2010] [error] user authenticated as tosh > [Wed Nov 10 22:37:04 2010] [error] authorize() for /clientID/index.pl > [Wed Nov 10 22:37:04 2010] [error] authorize user=3Dtosh type=3DDISKO::AU= TH > [Wed Nov 10 22:37:04 2010] [error] requirement :=3D valid-user, > [Wed Nov 10 22:37:04 2010] [notice] child pid 17510 exit signal Segmentat= ion > fault (11) > > DISKO::AUTH is where I override: > *Apache2::AuthCookieDBI::_dbi_connect =3D sub { > the connect() sub so I can do some on-the-fly modification of DSN names. > > DBI->connect_cached is used if that is of importance. > > My understanding of DBI is that things like ping() and reconnecting are a= ll > taken care of automagically, so I'm a bit baffled by this, especially as = I > have never had this happen on somewhat similar application setups. > > Is there something wrong with Apache2::AuthCookieDBI::_dbi_connect ? > > Or should I just cron a task to ping the application every hour? > > Thanks! > > Tosh > > -- > McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/ >