exiting (due to assertion failure)

Mark Andrews Mark_Andrews at isc.org
Sat Jul 14 10:53:29 UTC 2007


> Quoting Mark Andrews <Mark_Andrews at isc.org>:
> 
> >> I get this when i try to start Bind9 v9.4.1:
> >> 
> >> ----- s n i p -----
> >> 12-Jul-2007 18:54:14.278 zone 168.192.in-addr.arpa/IN: sending notifies (s
> eri
> >> al 2007071201)
> >> 12-Jul-2007 18:54:14.282 view.c:1161: REQUIRE(keyp != ((void *)0) && *keyp
>  ==
> >>  ((void *)0)) failed
> >> 12-Jul-2007 18:54:14.284 exiting (due to assertion failure)
> >> ----- s n i p -----
> >> 
> >> Any idea where to start looking for the problem?
> >  
> > 	Known issue.
> >
> > 2158.   [bug]           ns_client_isself() failed to initialise key
> >                         leading to a REQUIRE failure. [RT #16688]
> 
> Bummer. Is there a patch somewhere? Where can I find the issue tracker?

	Initialise key to NULL in bin/named/client.c:ns_client_isself().

	Mark

Index: bind9/bin/named/client.c
diff -u bind9/bin/named/client.c:1.219.18.20 bind9/bin/named/client.c:1.219.18.26
--- bind9/bin/named/client.c:1.219.18.20	Sat Jul 22 01:02:36 2006
+++ bind9/bin/named/client.c	Tue Jun 26 02:56:59 2007
@@ -1226,7 +1226,8 @@
 		 dns_rdataclass_t rdclass, void *arg)
 {
 	dns_view_t *view;
-	dns_tsigkey_t *key;
+	dns_tsigkey_t *key = NULL;
+	dns_name_t *tsig = NULL;
 	isc_netaddr_t netsrc;
 	isc_netaddr_t netdst;
 
@@ -1241,7 +1242,6 @@
 	for (view = ISC_LIST_HEAD(ns_g_server->viewlist);
 	     view != NULL;
 	     view = ISC_LIST_NEXT(view, link)) {
-		dns_name_t *tsig = NULL;
 
 		if (view->matchrecursiveonly)
 			continue;
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list