Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 12:16:04 +0300
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Sean McNeil <sean@mcneil.com>, mlaier@freebsd.org, se@freebsd.org
Cc:        current@freebsd.org
Subject:   Re: panic today when doing shutdown and boot warnings
Message-ID:  <20041202091604.GA30622@cell.sick.ru>
In-Reply-To: <1101867805.8266.6.camel@server.mcneil.com>
References:  <1101867805.8266.6.camel@server.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 30, 2004 at 06:23:25PM -0800, Sean McNeil wrote:
S> I haven't noticed these before so I thought I would mention them:
S> 
S> Nov 30 18:01:39 server kernel: Timecounters tick every 1.000 msec
S> Nov 30 18:01:39 server kernel: WARNING: attempt to net_add_domain(local) after domainfinalize()
S> Nov 30 18:01:39 server kernel: WARNING: attempt to net_add_domain(internet6) after domainfinalize()
S> Nov 30 18:01:39 server kernel: WARNING: attempt to net_add_domain(route) after domainfinalize()
S> Nov 30 18:01:39 server kernel: WARNING: attempt to net_add_domain(internet) after domainfinalize()
S> 
S> I have no idea what they mean.

AFAIU, these lines have nothing to do with your panic. However, we should get rid
of them.

Max, 

why do you have (domain_init_status < 2) in INVARIANTed case
and ((domain_init_status != 0) in default case?

+       KASSERT(domain_init_status >= 1,
+           ("attempt to net_add_domain(%s) before domaininit()",
+           dp->dom_name));
+       KASSERT(domain_init_status < 2,
+           ("attempt to net_add_domain(%s) after domainfinalize()",
+           dp->dom_name));
+#ifndef INVARIANTS
+       if (domain_init_status == 0)
+               printf("WARNING: attempt to net_add_domain(%s) before "
+                   "domaininit()\n", dp->dom_name);
+       if (domain_init_status != 0)
+               printf("WARNING: attempt to net_add_domain(%s) after "
+                   "domainfinalize()\n", dp->dom_name);
+#endif


-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202091604.GA30622>