From owner-freebsd-current@FreeBSD.ORG Wed Jan 4 13:40:25 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 2B45216A41F for ; Wed, 4 Jan 2006 13:40:25 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE91543D5C for ; Wed, 4 Jan 2006 13:40:23 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 5260426 for multiple; Wed, 04 Jan 2006 08:41:37 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k04De9xr002598; Wed, 4 Jan 2006 08:40:10 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org, thierry@herbelot.com Date: Wed, 4 Jan 2006 08:38:48 -0500 User-Agent: KMail/1.8.3 References: <200601040806.37953.thierry@herbelot.com> In-Reply-To: <200601040806.37953.thierry@herbelot.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601040838.49663.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1228/Wed Jan 4 05:29:17 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Subject: Re: panic: spin lock held too long (while rebooting) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 04 Jan 2006 13:40:25 -0000 On Wednesday 04 January 2006 02:06 am, Thierry Herbelot wrote: > I just had this panic, on an SMP machine > > Rebooting... > cpu_reset: Stopping other CPUs > spin lock sched lock held by 0xc16de480 for > 5 seconds > panic: spin lock held too long > cpuid =3D 0 > KDB: enter: panic > [thread pid 18843 tid 100041 ] > Stopped at kdb_enter+0x2b: nop > db> trace > Tracing pid 18843 tid 100041 td 0xc182e600 > kdb_enter(c0880e62) at kdb_enter+0x2b > panic(c088029b,c094cdf0,c16de480,c0880272,c08803ee) at panic+0x127 > _mtx_lock_spin(c094cdf0,c182e600,2,c087cbfa,cb) at _mtx_lock_spin+0xa9 > _mtx_lock_spin_flags(c094cdf0,2,c087cbfa,cb) at _mtx_lock_spin_flags+0x9e > hardclock_cpu(0,c09cdb20,0,c72a2ba0,c08069cd) at hardclock_cpu+0x25 > hardclock(0,c0816772) at hardclock+0x13 > lapic_handle_timer(8,28,c16b0028,c16ba00c,0) at lapic_handle_timer+0x71 > Xtimerint() at Xtimerint+0x1e > --- interrupt, eip =3D 0xc0816772, esp =3D 0xc72a2be8, ebp =3D 0xc72a2c0c= --- > DELAY(f4240) at DELAY+0x92 > cpu_reset(f4240,c0881049,c72a2c64,c0653a0f,0) at cpu_reset+0xc8 > shutdown_reset(0,0,c16ba00c,0,c0880e86) at shutdown_reset+0x1c > boot(0,c094ce0c,0,c0880e86,a1) at boot+0x553 > reboot(c182e600,c72a2d04,c182e600,0,2) at reboot+0x32 > syscall(3b,3b,3b,0,2) at syscall+0x27e > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (55, FreeBSD ELF32, reboot), eip =3D 0x280adc5f, esp =3D > 0xbfbfedcc, ebp =3D 0xbfbfee18 --- Next time you get this, can you use 'show threads' to figure out the tid fo= r=20 the thread whose pointer is in the printf (0xc16de480 in this case) and the= n=20 do a trace of that thread? =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org