bind backend crashes on long comment line in included file #253

Closed
Habbie opened this Issue Apr 26, 2013 · 2 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

Version 2.9.22 on RHEL5

Aug 28 18:39:44 Reading random entropy from '/dev/urandom'
Aug 28 18:39:44 This is a standalone pdns
Aug 28 18:39:44 Listening on controlsocket in '/var/run/pdns.controlsocket'
Aug 28 18:39:44 It is advised to bind to explicit addresses with the --local-address option
Aug 28 18:39:44 UDP server bound to 0.0.0.0:53
Aug 28 18:39:44 TCP server bound to 0.0.0.0:53
Aug 28 18:39:44 PowerDNS 2.9.22 (C) 2001-2009 PowerDNS.COM BV (Jan 25 2009, 21:19:22, gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu3)) starting up
Aug 28 18:39:44 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Aug 28 18:39:44 Creating backend connection for TCP
Aug 28 18:39:44 Master/slave communicator launching
flex scanner jammed
*** glibc detected *** /usr/sbin/pdns_server: double free or corruption (fasttop): 0xb69005f8 ***
======= Backtrace: =========
[0x832b411]
[0x832ced6]
[0x83000e1]
[0x80f292d]
[0x80f0f2f]
[0x80a0e72]
[0x810d78e]
[0x8128061]
[0x8292d1a]
[0x835347e]
======= Memory map: ========
00fc5000-00fc6000 r-xp 00fc5000 00:00 0          [vdso]
08048000-084f9000 r-xp 00000000 fd:01 461389     /usr/sbin/pdns_server
084f9000-0853e000 rw-p 004b0000 fd:01 461389     /usr/sbin/pdns_server
0853e000-08571000 rw-p 0853e000 00:00 0 
0914d000-091b6000 rw-p 0914d000 00:00 0          [heap]
b6900000-b6923000 rw-p b6900000 00:00 0 
b6923000-b6a00000 ---p b6923000 00:00 0 
b6ab5000-b6bb1000 rw-p b6ab5000 00:00 0 
b6bb1000-b6bb2000 ---p b6bb1000 00:00 0 
b6bb2000-b75b1000 rw-p b6bb2000 00:00 0 
b75b1000-b75b2000 ---p b75b1000 00:00 0 
b75b2000-b7fb1000 rw-p b75b2000 00:00 0 
bfbc5000-bfbda000 rw-p bffea000 00:00 0          [stack]
Aug 28 18:39:44 Got a signal 6, attempting to print trace: 
Aug 28 18:39:44 [0x80e18e4]
Aug 28 18:39:44 [0xfc5420]
Aug 28 18:39:44 [0x836fea0]
Aug 28 18:39:44 [0x8316d20]
Aug 28 18:39:44 [0x832615b]
Aug 28 18:39:44 [0x832b411]
Aug 28 18:39:44 [0x832ced6]
Aug 28 18:39:44 [0x83000e1]
Aug 28 18:39:44 [0x80f292d]
Aug 28 18:39:44 [0x80f0f2f]
Aug 28 18:39:44 [0x80a0e72]
Aug 28 18:39:44 [0x810d78e]
Aug 28 18:39:44 [0x8128061]
Aug 28 18:39:44 [0x8292d1a]
Aug 28 18:39:44 [0x835347e]

pdns.conf contains

launch=bind
bind-config=/etc/powerdns/bind.conf
slave=yes

bind.conf contains

options {
        directory "/var/pdns/zones";
};

include "/etc/powerdns/bindzones/zones.eu" ;

zones.eu contains:

// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
length isn't a factor, also crashes on '//'

@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
current SVN head treats this as a syntax error (just like BIND), without crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment