[Pdns-users] Crashing 2.9.11

bert hubert ahu at ds9a.nl
Sun Sep 28 17:17:20 UTC 2003


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