From owner-freebsd-alpha Fri Aug 17 15:26:12 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 2A3FD37B401 for ; Fri, 17 Aug 2001 15:25:59 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 85134 invoked from network); 17 Aug 2001 22:25:36 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Aug 2001 22:25:36 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010816215234.A5722@dragon.nuxi.com> Date: Fri, 17 Aug 2001 15:25:40 -0700 (PDT) From: John Baldwin To: "David O'Brien" Subject: Re: today's kernel + JHB's trap.c patch is *evil* Cc: alpha@FreeBSD.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 17-Aug-01 David O'Brien wrote: > On Thu, Aug 16, 2001 at 04:29:27PM -0700, John Baldwin wrote: >> > Mounting root from ufs:/dev/da0a >> > SMP: AP CPU #1 Launched! >> > >> > fatal kernel trap: >> > >> > trap entry = 0x2 (memory management fault) >> > cpuid = 0 >> > faulting va = 0x0 >> >> NULL pointer deref. >> >> > type = access violation >> > cause = load instructon >> > pc = 0xfffffc00003c3814 >> >> Do you have a debug kernel? If so, can you do 'gdb -k kernel.debug' and >> then >> do 'l *0xfffffc00003c3814'? > > 0xfffffc00003c3814 is in _mtx_unlock_sleep > (../../../kern/kern_mutex.c:492). > 487 > 488 p1 = TAILQ_FIRST(&m->mtx_blocked); > 489 MPASS(p->p_magic == P_MAGIC); > 490 MPASS(p1->p_magic == P_MAGIC); > 491 > 492 TAILQ_REMOVE(&m->mtx_blocked, p1, p_procq); > 493 > 494 if (TAILQ_EMPTY(&m->mtx_blocked)) { > 495 LIST_REMOVE(m, mtx_contested); > 496 _release_lock_quick(m); Umm, ok. I'll have to try and reproduce this locally. The mutex claims to be contested but has no processes in its list of blocked processes. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message