[Pdns-users] wildcard throws signal 11

bert hubert bert.hubert at netherlabs.nl
Tue May 22 06:54:39 UTC 2007


On Tue, May 22, 2007 at 02:39:31PM +1000, Chris Seufert wrote:
> May 22 11:33:06 /lib/tls/libc.so.6(snprintf+0x35) [0xb7db3365]
> May 22 11:33:06 
> /usr/sbin/pdns_server(_ZN11GSQLBackend6lookupERK5QTypeRKSsP9DNSPacketi+0x19e) 
> [0x811b18e]

> gmysql-basic-query=select * from vpowerdns WHERE dnstype='%s' and data='%s'
> gmysql-id-query=select * from vpowerdns WHERE dnstype='%s' and data='%s' 
> and siteid='%s'
> gmysql-any-query=select * from vpowerdns WHERE data='%s'
> gmysql-any-id-query=select * from vpowerdns WHERE data='%s' and siteid='%s'

Please check all of these queries against the templates in the
documentation. I think many times where you use %s, you should be using %d
for a numerical argument. This is sure to cause crashes!

The queries need to match the order, and kind of % statements *exactly*.

> Any patch in the works, this is killing me.

In this case, the problem can probably be solved without a aptch.

Good luck!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-users mailing list