apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Fwd: Re: apr_dbd_prepare() corrupts arguments on failure
Date Sun, 12 Oct 2008 22:19:28 GMT


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 <postmaster>
>
> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.
>
> 			The Postfix program
>
> <dev@apr.apache.org>: 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 <nick@webthing.com>
> 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
>
>


Mime
View raw message