From owner-freebsd-current@FreeBSD.ORG Tue Dec 7 12:53:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D29916A4CE; Tue, 7 Dec 2004 12:53:10 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C75743D1F; Tue, 7 Dec 2004 12:53:10 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id iB7CokkD088766; Tue, 7 Dec 2004 07:50:46 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)iB7Coj7f088763; Tue, 7 Dec 2004 12:50:46 GMT (envelope-from robert@fledge.watson.org) Date: Tue, 7 Dec 2004 12:50:45 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Poul-Henning Kamp In-Reply-To: <1077.1102420055@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: mlaier@freebsd.org cc: current@freebsd.org Subject: Protocol timer running before protocol init (Re: current panic igmp related ?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 12:53:10 -0000 On Tue, 7 Dec 2004, Poul-Henning Kamp wrote: > Timecounters tick every 1.000 msec > panic: mtx_lock() of spin mutex (null) @ ../../../netinet/igmp.c:431 > cpuid = 0 > KDB: enter: panic > [thread pid 37 tid 100013 ] > Stopped at kdb_enter+0x2c: leave > db> trace > Tracing pid 37 tid 100013 td 0xc3485480 > kdb_enter(c06d85e0,100,c3485480,1af,c06e0fec) at kdb_enter+0x2c > panic(c06d7ac5,0,c06e0fec,1af,c0713fc4) at panic+0x17f > _mtx_lock_flags(c0738740,0,c06e0fec,1af,e4c97cc8) at _mtx_lock_flags+0x82 > igmp_slowtimo(e,0,e4c97cf4,c050683a,0) at igmp_slowtimo+0x19 > pfslowtimo(0,27,0,2,2) at pfslowtimo+0x66 > softclock(0,0,0,c34d07e0,0) at softclock+0x10a > ithread_loop(c34cf100,e4c97d48,c34cf100,c04e9200,0) at ithread_loop+0x18e > fork_exit(c04e9200,c34cf100,e4c97d48) at fork_exit+0x7e > fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xe4c97d7c, ebp = 0 --- igmp_mtx looks to be uninitialized here (BSS memory). This suggests that igmp_slowtimo is being called before igmp_init(), which strikes me as somewhat odd. There's recently been some rerrangement of the domain initialization code to correct potentially related problems, but perhaps things aren't quite there yet. CC'ing Max on general principle. :-) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research