From owner-freebsd-current@FreeBSD.ORG Wed Jun 13 11:11:12 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD5F91065672 for ; Wed, 13 Jun 2012 11:11:12 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2BED98FC16 for ; Wed, 13 Jun 2012 11:11:11 +0000 (UTC) Received: by laai10 with SMTP id i10so391858laa.13 for ; Wed, 13 Jun 2012 04:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=b+Jpe0v8+A1oDzZVN3xyoQ0I+w2cqwja0RkG0OFi0CE=; b=iVDG9rcMkav86pyS3Dmg9VBxa86qB6xnxAOXDl/9IpcUZCnd3YJI8Eu3eI2sxXDEPV /iVW7oujFF3RJ/B6LlV8ma3ATgOuzlrIyq2mlfHYeIamH6E5mB63FBJvFZta3sAsRf4y Pikhblmo1tUlgiaeVpWsVvQ0zhdy3kP38ikion0xaXZbiVgCiNke36fHnacKDmndI34W HkGj1EsXYahUAGRLOibvBQ+AFG1fDSVNizHCf0VQ3PPLd+NWEPVy3aCGkH0k/Wkrc/8P ET6jKdL9caQjaWMDiukQNaG6H7rtdZa+Tbqungs7FEwleh1sl2rWUx3B3hQGubBxv/KE wvsg== MIME-Version: 1.0 Received: by 10.112.82.42 with SMTP id f10mr6169513lby.95.1339585871099; Wed, 13 Jun 2012 04:11:11 -0700 (PDT) Received: by 10.112.17.130 with HTTP; Wed, 13 Jun 2012 04:11:10 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 Jun 2012 13:11:10 +0200 Message-ID: From: Svatopluk Kraus To: Benjamin Kaduk Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: panic td->td_lock == NULL in scheduler(), csup'd 2011-02-19 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, 13 Jun 2012 11:11:12 -0000 Hi, it looks similar to http://lists.freebsd.org/pipermail/freebsd-current/2011-March/023829.html Svata On Wed, Jun 13, 2012 at 1:11 AM, Benjamin Kaduk wrote: > Hi all, > > I know, I should update the machine, but I figured I would throw this out > for the archives anyway. > > I saw the panic a few minutes after starting X, but I'm pretty sure I was > not actually swapping. =A0In ddb (blind), I ran 'call doadump; show alllo= cks; > show lockedvnods; call doadump; reboot' ... I'm not sure whether the two > 'doadump's will cause any issues with the core. > > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address =A0 =3D 0x18 > fault code =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D supervisor read data, page not = present > instruction pointer =A0 =A0 =3D 0x20:0xffffffff806d7dce > stack pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xffffffff81381c40 > frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xffffffff81381ca0 > code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, limit 0xfffff, type 0x1= b > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D DPL 0, pres 1, long 1= , def32 0, gran 1 > processor eflags =A0 =A0 =A0 =A0=3D resume, IOPL =3D 0 > current process =A0 =A0 =A0 =A0 =3D 0 (swapper) > #7 =A00xffffffff809e20a5 in trap (frame=3D0xffffffff81381b90) > =A0 =A0 at /usr/src/sys/amd64/amd64/trap.c:319 > #8 =A00xffffffff809cc6ef in calltrap () > =A0 =A0 at /usr/src/sys/amd64/amd64/exception.S:228 > #9 =A00xffffffff806d7dce in _thread_lock_flags (td=3D0xfffffe003b14d8c0, = opts=3D0, > =A0 =A0 file=3D0xffffffff80b4b720 "/usr/src/sys/vm/vm_glue.c", line=3D744= ) > =A0 =A0 at /usr/src/sys/kern/kern_mutex.c:560 > #10 0xffffffff8094b395 in scheduler (dummy=3DVariable "dummy" is not > available. > ) at /usr/src/sys/vm/vm_glue.c:744 > #11 0xffffffff8069f8c7 in mi_startup () at /usr/src/sys/kern/init_main.c:= 256 > #12 0xffffffff80292f2c in btext () at /usr/src/sys/amd64/amd64/locore.S:8= 1 > #13 0x0000000000000000 in ?? () > #14 0xffffffff80eff8a0 in cpu_top () > #15 0xffffffff80eff900 in affinity () > #16 0xfffffe00025f8000 in ?? () > #17 0xffffffff81381b60 in ?? () > #18 0xffffffff81381b08 in ?? () > #19 0xffffffff80ee6030 in proc0 () > #20 0xffffffff8070e5d2 in sched_switch (td=3D0x0, newtd=3D0x0, flags=3DVa= riable > "flags" is not available. > ) > =A0 =A0 at /usr/src/sys/kern/sched_ule.c:1847 > > I verified that td->td_lock was null using kgdb on the coredump. > > kern_mutex.c: > =A0 =A0 558 retry: > =A0 =A0 559 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 spinlock_enter(); > =A0 =A0 560 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 m =3D td->td_lock; > =A0 =A0 561 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KASSERT(m->mtx_lock !=3D MTX_= DESTROYED, > =A0 =A0 562 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("thread_lock() of de= stroyed mutex @ %s:%d", > file, l > > vm_glue.c: > =A0 =A0 738 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FOREACH_THREAD_IN_PROC(p, td)= { > =A0 =A0 739 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /* > =A0 =A0 740 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0* An other= wise runnable thread of a process > =A0 =A0 741 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0* swapped = out has only the TDI_SWAPPED bit > set. > =A0 =A0 742 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0* > =A0 =A0 743 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0*/ > =A0 =A0 744 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 thread_lock(t= d); > =A0 =A0 745 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (td->td_in= hibitors =3D=3D TDI_SWAPPED) { > > -Ben Kaduk > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= "