Re: Got the crash dump... now what?

看板DFBSD_kernel作者時間21年前 (2004/12/18 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
:Yes. Shutting down or rebooting. Sorry I forgot to mention that detail. : :jm That's what I thought. Ok, this patch should stop the panics from occuring, I'll commit it over the weekend. -Matt Matthew Dillon <dillon@backplane.com> Index: ip_input.c =================================================================== RCS file: /cvs/src/sys/netinet/ip_input.c,v retrieving revision 1.37 diff -u -r1.37 ip_input.c --- ip_input.c 30 Nov 2004 19:21:26 -0000 1.37 +++ ip_input.c 17 Dec 2004 21:16:04 -0000 @@ -747,6 +747,8 @@ */ if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) { TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrhead, ifa_link) { + if (ifa->ifa_addr == NULL) /* shutdown/startup race */ + continue; if (ifa->ifa_addr->sa_family != AF_INET) continue; ia = ifatoia(ifa);
文章代碼(AID): #11mr1W00 (DFBSD_kernel)
文章代碼(AID): #11mr1W00 (DFBSD_kernel)