Re: panic today when doing shutdown and boot warnings

From: Gleb Smirnoff <glebius_at_freebsd.org>
Date: Thu, 2 Dec 2004 12:16:04 +0300
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
Received on Thu Dec 02 2004 - 08:16:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:23 UTC