[Pdns-users] Crashing 2.9.11

Marc van de Geijn mvdgeijn at xs4all.nl
Mon Sep 29 03:36:39 UTC 2003


Sorry, Bert, but it's still crashing. Just let me know what I can do to help
debugging this thing.

Here the trace after applying the patch:

Sep 29 05:31:03 server1 pdns[11813]: Got a signal 6, attempting to print
trace:
Sep 29 05:31:03 server1 pdns[11813]: /usr/sbin/pdns_server-instance
[0x80b1731]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libpthread.so.0 [0x4018aa7a]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libc.so.6 [0x401bfd88]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libpthread.so.0(raise+0x2b)
[0x4018ae2b]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libc.so.6(abort+0x199)
[0x401c14f9]
Sep 29 05:31:03 server1 pdns[11813]: /usr/lib/libstdc++.so.5 [0x4012f5d7]
Sep 29 05:31:03 server1 pdns[11813]: /usr/lib/libstdc++.so.5 [0x4012f624]
Sep 29 05:31:03 server1 pdns[11813]: /usr/lib/libstdc++.so.5 [0x4012f7a6]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN6SMySQL7doQueryERKSs+0xe4) [0x8068004]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN6SMySQL7doQueryERKSsRSt6vectorIS2_ISsSaISs
EESaIS4_
EE+0x10b) [0x806836b]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN11GSQLBackend20getUnfreshSlaveInfosEPSt6ve
ctorI10D
omainInfoSaIS1_EE+0x5d) [0x80fc0bd]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN12UeberBackend20getUnfreshSlaveInfosEPSt6v
ectorI10
DomainInfoSaIS1_EE+0x2c) [0x80b4f2c]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN17CommunicatorClass12slaveRefreshEP13Packe
tHandler
+0x47) [0x80c7d57]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN17CommunicatorClass8mainloopEv+0x11b)
[0x80cb7db]
Sep 29 05:31:03 server1 pdns[11813]:
/usr/sbin/pdns_server-instance(_ZN17CommunicatorClass12launchhelperEPv+0xf)
[0x80dd7
7f]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libpthread.so.0 [0x40188020]
Sep 29 05:31:03 server1 pdns[11813]: /lib/i686/libc.so.6(__clone+0x3a)
[0x40261d5a]
Sep 29 05:31:04 server1 pdns[28758]: Our pdns instance (11807) exited after
signal 6
Sep 29 05:31:04 server1 pdns[28758]: Respawning
Sep 29 05:31:05 server1 pdns[12183]: Guardian is launching an instance
Sep 29 05:31:05 server1 [12183]: [BindBackend] This is the bind backend
version 2.9.11 (Sep 27 2003, 09:13:09) reporting
Sep 29 05:31:05 server1 [12183]: [Bind2Backend] This is the bind backend
version 2.9.11 (Sep 27 2003, 09:12:35) reporting
Sep 29 05:31:05 server1 [12183]:  [RandomBackend] This is the randombackend
version 2.9.11 (Sep 27 2003, 09:12:15) report
ing
Sep 29 05:31:05 server1 [12183]: This is module gmysqlbackend.so reporting
Sep 29 05:31:05 server1 pdns[12183]: This is a guarded instance of pdns
Sep 29 05:31:05 server1 pdns[12183]: Opened file '/etc/pdns.conf' for
configuration

----- Original Message ----- 
From: "bert hubert" <ahu at ds9a.nl>
To: "Marc van de Geijn" <mvdgeijn at xs4all.nl>
Cc: <pdns-users at mailman.powerdns.com>
Sent: 28 September 2003 19:17
Subject: Re: [Pdns-users] Crashing 2.9.11


> On Sun, Sep 28, 2003 at 07:05:04PM +0200, bert hubert wrote:
> > On Sat, Sep 27, 2003 at 09:45:49AM +0200, Marc van de Geijn wrote:
> >
> > > Sep 27 09:37:27 server1 pdns[26314]: Got a signal 6, attempting to
print
> > > trace:
> >
> > Is there nothing relevant above this line? Which compiler did you
compile
> > with? If this is gcc 2.95, I suggest recompiling with gcc 3.3.
>
> Ok, I may have found the problem (not sure though), can you try this
patch:
>
> Index: modules/gmysqlbackend/smysql.cc
> ===================================================================
> RCS file: /var/cvsroot/pdns/modules/gmysqlbackend/smysql.cc,v
> retrieving revision 1.2
> diff -u -B -b -r1.2 smysql.cc
> --- modules/gmysqlbackend/smysql.cc 16 Dec 2002 18:02:24 -0000 1.2
> +++ modules/gmysqlbackend/smysql.cc 28 Sep 2003 17:16:38 -0000
> @@ -4,6 +4,7 @@
>  #include "smysql.hh"
>  #include <string>
>  #include <iostream>
> +#include "pdns/misc.hh"
>  #include "pdns/logger.hh"
>  #include "pdns/dns.hh"
>  using namespace std;
> @@ -48,8 +49,9 @@
>    if(s_dolog)
>      L<<Logger::Warning<<"Query: "<<query<<endl;
>
> -  if(mysql_query(&d_db,query.c_str()))
> -    throw sPerrorException("Failed to execute mysql_query");
> +  int err;
> +  if((err=mysql_query(&d_db,query.c_str())))
> +    throw SSqlException("Failed to execute mysql_query, perhaps
connection died? Err="+itoa(err));
>
>
>    return 0;
>
> -- 
> 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