From dev-return-21112-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sun Oct 12 22:21:15 2008 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 56215 invoked from network); 12 Oct 2008 22:21:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2008 22:21:14 -0000 Received: (qmail 74448 invoked by uid 500); 12 Oct 2008 22:21:14 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 74396 invoked by uid 500); 12 Oct 2008 22:21:13 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 74385 invoked by uid 99); 12 Oct 2008 22:21:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Oct 2008 15:21:13 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Oct 2008 22:20:05 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m9CMKMEc004457 for ; Sun, 12 Oct 2008 22:20:35 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K8N00G01CPBKU00@fe-emea-10.sun.com> (original mail from nick@webthing.com) for dev@apr.apache.org; Sun, 12 Oct 2008 23:20:22 +0100 (BST) Received: from [192.168.0.178] ([86.7.234.71]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K8N00K1BCPYLH60@fe-emea-10.sun.com> for dev@apr.apache.org; Sun, 12 Oct 2008 23:20:22 +0100 (BST) Date: Sun, 12 Oct 2008 23:20:21 +0100 From: Nick Kew Subject: Fwd: Re: apr_dbd_prepare() corrupts arguments on failure Sender: Nicholas.Kew@Sun.COM To: dev@apr.apache.org Message-id: <9385A20B-C504-469F-B378-77D1C2989BC0@webthing.com> MIME-version: 1.0 X-Mailer: Apple Mail (2.753.1) Content-type: text/plain; format=flowed; delsp=yes; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20081012221654.B6E76267FBF@munin.local> X-Virus-Checked: Checked by ClamAV on apache.org Begin forwarded message: > From: MAILER-DAEMON@munin.local (Mail Delivery System) > Date: 12 October 2008 23:16:54 BDT > To: nick@webthing.com > Subject: Undelivered Mail Returned to Sender > > This is the Postfix program at host munin.local. > > I'm sorry to have to inform you that your message could not > be delivered to one or more recipients. It's attached below. > > For further assistance, please send mail to > > If you do so, please include this problem report. You can > delete your own text from the attached returned message. > > The Postfix program > > : host mx1.us.apache.org[140.211.11.136] said: 550 > http://www.spamhaus.org/query/bl?ip=86.7.234.71 (in reply to > RCPT TO > command) > Reporting-MTA: dns; munin.local > X-Postfix-Queue-ID: 788B8267FBD > X-Postfix-Sender: rfc822; nick@webthing.com > Arrival-Date: Sun, 12 Oct 2008 23:16:52 +0100 (BST) > > Final-Recipient: rfc822; dev@apr.apache.org > Action: failed > Status: 5.0.0 > Diagnostic-Code: X-Postfix; host mx1.us.apache.org[140.211.11.136] > said: 550 > http://www.spamhaus.org/query/bl?ip=86.7.234.71 (in reply to > RCPT TO > command) > > From: Nick Kew > Date: 12 October 2008 23:16:51 BDT > To: dev@apr.apache.org > Subject: Re: apr_dbd_prepare() corrupts arguments on failure > > > On 12 Oct 2008, at 18:58, Dave Ingram wrote: >> >> This all appears to work fine if the statement is valid. If there >> is a problem (e.g. a syntax error in the SQL) then apr_dbd_prepare >> () seems to destroy its driver and handle arguments, as shown by >> the fprintf() output: > > Use the ap_* methods to get diagnostics. Not stdio. > What happens if you compile with -O0? > > Just to check: you are doing all this in a command function, so > it'll run between > pre_config and post_config? > > -- > Nick Kew > >