R: R: R: [Pdns-users] Pdns 2.9.20 - 21 svn crash

Marco Chiavacci marco.chiavacci at staff.aruba.it
Fri Oct 27 16:33:28 UTC 2006


During normal run, dns server make:

1) a rediscover every 0 of an hour (for add new domains and for delete old
domains)
2) a lot of reloads for all the zones changed during the hour

So the anomaly seems to be near reload and rediscover but I have tried the
server to make a normal loop (rediscover + lot of reloads) without the
external net connected (where to respond for dns queries) and the server
still up and running for about 2-3 tries, so I don’t think reload or
rediscover are the real problem.
Only with load (1-2mbit/s of queries + rediscover or reload) the problem
appears.


I double check the code:

dns:/usr/src/pdns-2.9.21-svn.20061001.897# diff /root/bindbackend2.cc.old
pdns/backends/bind/bindbackend2.cc 
51a52,53
> static Bind2Backend *us;
> 
150c152
<   queueReload(&s_id_zone_map[d_transaction_id]);
---
>   us->queueReload(&s_id_zone_map[d_transaction_id]);
299,300d300
< static Bind2Backend *us;
< 
434c434
<   loadConfig(status);
---
>   us->loadConfig(status);
698c698
<       queueReload(&bbd);
---
>       us->queueReload(&bbd);
945a946,947
> 

Then compiled and installed. The result:

Oct 27 18:31:12 dns pdns[26389]: Rediscovery was requested
Oct 27 18:31:13 dns pdns[26389]: Got a signal 11, attempting to print trace:

Oct 27 18:31:13 dns pdns[26389]: /usr/sbin/pdns_server-instance [0x4771b2]
Oct 27 18:31:13 dns pdns[26389]: /lib/libc.so.6 [0x2b60e021e110]
Oct 27 18:31:13 dns pdns[26389]: /usr/lib/libstdc++.so.6(_ZNSsC1ERKSs+0x18)
[0x2b60dfce5be8]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_ZN10DNSBackend6getArgERKSs+0x27) [0x4647c7]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_ZN12Bind2Backend10loadConfigEPSs+0x103)
[0x4bb5b3]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_ZN12UeberBackend10rediscoverEPSs+0x3e)
[0x4835de]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_Z19DLRediscoverHandlerRKSt6vectorISsSaISsEEi
+0xf7) [0x48c867]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_ZN11DynListener11theListenerEv+0x41b)
[0x486fbb]
Oct 27 18:31:13 dns pdns[26389]:
/usr/sbin/pdns_server-instance(_ZN11DynListener17theListenerHelperEPv+0x9)
[0x487c19]
Oct 27 18:31:13 dns pdns[26389]: /lib/libpthread.so.0 [0x2b60e00dff1a]
Oct 27 18:31:13 dns pdns[26389]: /lib/libc.so.6(__clone+0x72)
[0x2b60e02b85d2]
Oct 27 18:31:13 dns pdns[26387]: Our pdns instance (26389) exited after
signal 6


Regards,
= = = = = = = = = = = = = = = = = = = = = = =
Marco Chiavacci
= = = = = = = = = = = = = = = = = = = = = = = 
-----Messaggio originale-----
Da: bert hubert [mailto:bert.hubert at netherlabs.nl] 
Inviato: venerdì 27 ottobre 2006 18.01
A: Marco Chiavacci
Cc: pdns-users at mailman.powerdns.com
Oggetto: Re: R: R: [Pdns-users] Pdns 2.9.20 - 21 svn crash

On Fri, Oct 27, 2006 at 04:53:39PM +0200, Marco Chiavacci wrote:
> Same result with this fix:

Did you perhaps run 'pdns_control rediscover'? That might also have caused
this crash.

If you did, the log will list 'Rediscovery was requested'.

The cause of that command causing a crash is fixed in commit 906:
http://wiki.powerdns.com/cgi-bin/trac.fcgi/changeset/906

Can you double check you are actually running the recompiled version?

Thanks! I appreciate the quick feedback.

-- 
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