Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 95816 invoked from network); 1 Jan 2009 21:13:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2009 21:13:58 -0000 Received: (qmail 62428 invoked by uid 500); 1 Jan 2009 21:13:51 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 62362 invoked by uid 500); 1 Jan 2009 21:13:51 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 62353 invoked by uid 99); 1 Jan 2009 21:13:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2009 13:13:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Jan 2009 21:13:44 +0000 Received: (qmail 95776 invoked by uid 2161); 1 Jan 2009 21:13:22 -0000 Received: from [192.168.2.4] (euler.heimnetz.de [192.168.2.4]) by cerberus.heimnetz.de (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 55D291721C for ; Thu, 1 Jan 2009 22:13:11 +0100 (CET) Message-ID: <495D3213.3010008@apache.org> Date: Thu, 01 Jan 2009 22:13:55 +0100 From: Ruediger Pluem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: mod_dbd issues References: <694530.12646.qm@web53712.mail.re2.yahoo.com> In-Reply-To: <694530.12646.qm@web53712.mail.re2.yahoo.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 01/01/2009 05:50 PM, Matthew Rushton wrote: > Hi, > I'm trying to use mod_dbd for a Linux module with a Postgres backend and am running into a bunch of issues. It seems easy enough but all my queries are failing becasue I'm not getting back a valid db handle either. Here's my httpd.conf: > > LoadModule dbd_module modules/mod_dbd.so > DBDriver pgsql > DBDParams "hostaddr=192.168.1.2 dbname=******* user=******* connect_timeout=2" > DBDMin 5 > DBDKeep 20 > DBDMax 50 > DBDExptime 120 > > and in my module code: > > //connect to database > dbd = ap_dbd_acquire(r); > //I get back a non-null dbd value > PGconn *conn = apr_dbd_native_handle(dbd->driver,dbd); > ...do stuff... > > When I connect with the native Postgres function things work just fine. I've tried this on CentOS 5 and FC9 with the same behavior. On CentOS 5 I'm getting these errors as well when trying to restart (this is not with my module even loaded, simply just by loading mod_dbd): > > *** glibc detected *** /usr/sbin/httpd: corrupted double-linked list: 0x08ecb7a8 *** > [Thu Jan 01 11:11:41 2009] [warn] child process 25480 still did not exit, sending a SIGTERM > > At a bit of a loss, with the exception of recompining apache with debug I'm not really sure how to tackle the issue, perhaps it's a simple issue someone may know right away. Thanks. > -Matt I assume that you use the CentOS provided httpd version. This is fairly old. Please retry with the latest one and let us know if you still have problems. Regards R�diger