panic today when doing shutdown and boot warnings

Gleb Smirnoff glebius at freebsd.org
Thu Dec 2 01:16:15 PST 2004


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


More information about the freebsd-current mailing list