Date: Thu, 21 Dec 2006 20:30:49 GMT From: Robert Watson <rwatson@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/102654: panic: sleeping thread Message-ID: <200612212030.kBLKUn1s016948@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/102654; it has been noted by GNATS. From: Robert Watson <rwatson@FreeBSD.org> To: Eric van Gyzen <eric@vangyzen.net> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/102654: panic: sleeping thread Date: Thu, 21 Dec 2006 20:00:39 +0000 (GMT) On Thu, 14 Dec 2006, Eric van Gyzen wrote: > I just realized I forgot to submit a backtrace: > > (kgdb) bt > #0 doadump () at pcpu.h:165 > #1 0xc0523d45 in boot (howto=260) at /freebsd/src/sys/kern/kern_shutdown.c:402 > #2 0xc052400c in panic (fmt=0xc06a8c28 "sleeping thread") > at /freebsd/src/sys/kern/kern_shutdown.c:558 > #3 0xc0543e7c in propagate_priority (td=0xc3989000) > at /freebsd/src/sys/kern/subr_turnstile.c:196 > #4 0xc054465e in turnstile_wait (lock=0xc070db20, owner=0xc3989000) > at /freebsd/src/sys/kern/subr_turnstile.c:634 > #5 0xc051b2f4 in _mtx_lock_sleep (m=0xc070db20, tid=3256848768, opts=0, > file=0x0, line=0) at /freebsd/src/sys/kern/kern_mutex.c:565 > #6 0xc06154ba in vm_pagezero (arg=0x0) > at /freebsd/src/sys/vm/vm_zeroidle.c:159 > #7 0xc050daa8 in fork_exit (callout=0xc0615464 <vm_pagezero>, arg=0x0, > frame=0xcc9b4d38) at /freebsd/src/sys/kern/kern_fork.c:805 > #8 0xc06598bc in fork_trampoline () > at /freebsd/src/sys/i386/i386/exception.s:208 The attached patch, appropriately munged for the version of FreeBSD you're running, may help. Or not, I suppose. :-) Robert N M Watson Computer Laboratory University of Cambridge Index: vm_zeroidle.c =================================================================== RCS file: /home/ncvs/src/sys/vm/vm_zeroidle.c,v retrieving revision 1.41 diff -u -r1.41 vm_zeroidle.c --- vm_zeroidle.c 6 Dec 2006 06:34:57 -0000 1.41 +++ vm_zeroidle.c 21 Dec 2006 19:55:53 -0000 @@ -155,6 +155,7 @@ wakeup_needed = TRUE; msleep(&zero_state, &vm_page_queue_mtx, PDROP, "pgzero", hz * 300); + vm_page_unlock_queues(); } } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612212030.kBLKUn1s016948>