[Pdns-users] Signal 9 crash...

bert hubert ahu at ds9a.nl
Mon Jul 28 20:11:10 UTC 2003


On Mon, Jul 28, 2003 at 09:18:32PM +0200, Marc van de Geijn wrote:
> Bert
> 
> I tried the "pdns_control cycle" command to see what happens. The second
> time I tried it crashed:

hmf, can you try this very weak patch:

RCS file: /var/cvsroot/pdns/pdns/receiver.cc,v
retrieving revision 1.8
diff -u -B -b -r1.8 receiver.cc
--- receiver.cc 6 Mar 2003 16:59:11 -0000       1.8
+++ receiver.cc 28 Jul 2003 19:41:22 -0000
@@ -155,6 +155,9 @@
 static string DLCycleHandler(const vector<string>&parts, pid_t ppid)
 {
   kill(cpid,SIGKILL); // why?
+  kill(cpid,SIGKILL); // why?
+  
+  sleep(1);
   return "ok";
 }
 


> 
> Jul 28 21:19:22 server1 pdns[12420]: Our pdns instance (21399) exited after
> signal 9
> Jul 28 21:19:22 server1 pdns[12420]: Respawning
> Jul 28 21:19:22 server1 pdns[21402]: Got a signal 6, attempting to print
> trace:
> Jul 28 21:19:22 server1 pdns[21402]: /usr/sbin/pdns_server-instance
> [0x80b1711]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libpthread.so.0 [0x40189a7a]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libc.so.6 [0x401bed88]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libpthread.so.0(raise+0x2b)
> [0x40189e2b]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libc.so.6(abort+0x199)
> [0x401c04f9]
> Jul 28 21:19:22 server1 pdns[21402]: /usr/lib/libstdc++.so.5 [0x4012e5d7]
> Jul 28 21:19:22 server1 pdns[21402]: /usr/lib/libstdc++.so.5 [0x4012e624]
> Jul 28 21:19:22 server1 pdns[21402]: /usr/lib/libstdc++.so.5 [0x4012e7a6]
> Jul 28 21:19:22 server1 pdns[21402]:
> /usr/sbin/pdns_server-instance(_ZN11DynListener7getLineEv+0x47d) [0x80bb39d]
> Jul 28 21:19:22 server1 pdns[21402]:
> /usr/sbin/pdns_server-instance(_ZN11DynListener11theListenerEv+0x53)
> [0x80bbb93]
> Jul 28 21:19:22 server1 pdns[21402]:
> /usr/sbin/pdns_server-instance(_ZN11DynListener17theListenerHelperEPv+0xf)
> [0x80baf0f]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libpthread.so.0 [0x40187020]
> Jul 28 21:19:22 server1 pdns[21402]: /lib/i686/libc.so.6(__clone+0x3a)
> [0x40260d5a]
> Jul 28 21:19:23 server1 pdns[21428]: Guardian is launching an instance
> Jul 28 21:19:23 server1 [21428]: [BindBackend] This is the bind backend
> version 2.9.10 (Jul  6 2003, 12:23:51) reporting
> Jul 28 21:19:23 server1 [21428]: [Bind2Backend] This is the bind backend
> version 2.9.10 (Jul  6 2003, 12:23:18) reporting
> Jul 28 21:19:23 server1 [21428]:  [RandomBackend] This is the randombackend
> version 2.9.10 (Jul  6 2003, 12:22:58) reporting
> Jul 28 21:19:23 server1 [21428]: This is module gmysqlbackend.so reporting
> Jul 28 21:19:23 server1 pdns[21428]: This is a guarded instance of pdns
> Jul 28 21:19:23 server1 pdns[21428]: Opened file '/etc/pdns.conf' for
> configuration
> Jul 28 21:19:23 server1 pdns[21428]: UDP server bound to 127.0.0.1:53
> Jul 28 21:19:23 server1 pdns[21428]: UDP server bound to 217.115.195.15:53
> Jul 28 21:19:23 server1 pdns[21428]: UDP server bound to 217.115.195.16:53
> Jul 28 21:19:23 server1 pdns[21428]: TCP server bound to 127.0.0.1:53
> Jul 28 21:19:23 server1 pdns[21428]: TCP server bound to 217.115.195.15:53
> Jul 28 21:19:23 server1 pdns[21428]: TCP server bound to 217.115.195.16:53
> Jul 28 21:19:23 server1 pdns[21428]: PowerDNS 2.9.10 (C) 2001-2003
> PowerDNS.COM BV (Jul  6 2003, 12:22:26) starting up
> Jul 28 21:19:23 server1 pdns[21428]: PowerDNS comes with ABSOLUTELY NO
> WARRANTY. This is free software, and you are welcome to re
> distribute it according to the terms of the GPL version 2.
> Jul 28 21:19:23 server1 pdns[21428]: DNS Proxy launched, local port 37248,
> remote 217.115.193.2:53
> Jul 28 21:19:23 server1 pdns[21428]: Creating backend connection for TCP
> Jul 28 21:19:23 server1 pdns[21434]: Master/slave communicator launching
> Jul 28 21:19:23 server1 pdns[21432]: Launched webserver on 127.0.0.1:8081
> Jul 28 21:19:23 server1 pdns[21428]: gmysql Connection succesful
> Jul 28 21:19:23 server1 pdns[21428]: About to create 3 backend threads
> Jul 28 21:19:23 server1 pdns[21434]: gmysql Connection succesful
> Jul 28 21:19:23 server1 pdns[21438]: gmysql Connection succesful
> Jul 28 21:19:23 server1 pdns[21434]: All slave domains are fresh
> Jul 28 21:19:23 server1 pdns[21434]: No master domains need notifications
> Jul 28 21:19:23 server1 pdns[21440]: gmysql Connection succesful
> Jul 28 21:19:23 server1 pdns[21442]: gmysql Connection succesful
> Jul 28 21:19:23 server1 pdns[21428]: Done launching threads, ready to
> distribute questions
> 
> ----- Original Message ----- 
> From: "bert hubert" <ahu at ds9a.nl>
> To: "Marc van de Geijn" <mvdgeijn at xs4all.nl>
> Cc: <>
> Sent: 28 July 2003 19:42
> Subject: Re: [Pdns-users] Signal 9 crash...
> 
> 
> > On Wed, Jul 23, 2003 at 12:54:42AM +0200, Marc van de Geijn wrote:
> >
> > > After changing the IP address in the pdns.conf file, the script sends a
> > > signal 9 to the pdns server. This signal causes the PDNS server to crash
> > > after the Respawn with the following messages in the logfile.
> >
> > Does it do so all the time after doing a -9? Can't you use pdns_control
> > cycle?
> >
> > -- 
> > http://www.PowerDNS.com      Open source, database driven DNS Software
> > http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
> >

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-users mailing list