From owner-freebsd-current@FreeBSD.ORG Sat Aug 29 23:19:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25F0C1065679 for ; Sat, 29 Aug 2009 23:19:07 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id B41188FC1F for ; Sat, 29 Aug 2009 23:19:06 +0000 (UTC) Received: from deuterium.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id n7TNJ3IH000725; Sun, 30 Aug 2009 01:19:04 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4A99B767.6090907@fgznet.ch> Date: Sun, 30 Aug 2009 01:19:03 +0200 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Kostik Belousov References: <4A997442.1060200@fgznet.ch> <20090829183906.GS1881@deviant.kiev.zoral.com.ua> <4A9988ED.2040403@fgznet.ch> <20090829201614.GU1881@deviant.kiev.zoral.com.ua> <4A999344.5000703@fgznet.ch> <20090829205723.GW1881@deviant.kiev.zoral.com.ua> <4A99A172.90009@fgznet.ch> <20090829215549.GY1881@deviant.kiev.zoral.com.ua> <4A99A863.1070806@fgznet.ch> <20090829221931.GZ1881@deviant.kiev.zoral.com.ua> In-Reply-To: <20090829221931.GZ1881@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-current Subject: Re: Boot panic -CURRENT #196643 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: Sat, 29 Aug 2009 23:19:07 -0000 Kostik Belousov wrote: > On Sun, Aug 30, 2009 at 12:14:59AM +0200, Andreas Tobler wrote: >> Kostik Belousov wrote: >>> On Sat, Aug 29, 2009 at 11:45:22PM +0200, Andreas Tobler wrote: >>>> Kostik Belousov wrote: >>>> >>>>> Please, try this. >>>>> >>>>> diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c >>>>> index 234cde9..b0e8d3c 100644 >>>>> --- a/sys/vm/vm_glue.c >>>>> +++ b/sys/vm/vm_glue.c >>>>> @@ -447,6 +447,8 @@ vm_thread_dispose(struct thread *td) >>>>> pages = td->td_kstack_pages; >>>>> ksobj = td->td_kstack_obj; >>>>> ks = td->td_kstack; >>>>> + td->td_kstack = 0; >>>>> + td->td_kstack_pages = 0; >>>>> if (pages == KSTACK_PAGES && kstacks <= kstack_cache_size) { >>>>> ks_ce = (struct kstack_cache_entry *)ks; >>>>> ks_ce->ksobj = ksobj; >>>>> @@ -457,8 +459,6 @@ vm_thread_dispose(struct thread *td) >>>>> return; >>>>> } >>>>> vm_thread_stack_dispose(ksobj, ks, pages); >>>>> - td->td_kstack = 0; >>>>> - td->td_kstack_pages = 0; >>>>> } >>>>> >>>>> static void >>>> panic: Assertion td->td_lock == TDQ_LOCKPTR(tdq) failed ... >>>> sched_ule.c:1878 >>>> cpuid = 1 >>>> KDB: enter: panic >>>> [thread pid 0 tid 100073 ] >>>> Stopped at kdb_enter+0x3a: movl $0,kdb_why >>>> >>>> As you see I managed to reboot my zfs root ;) >>> Fair enough. >>> >>> I reverted the change for now, HEAD must be kept in the working state, >>> esp. during the release. >>> >>> My apologies for the breakage, r196648 should return the world >>> to less broken state. >> >> Np. Thank you for helping here! >> >> FreeBSD 9.0-CURRENT (TC) #3 r196648M: Sun Aug 30 00:02:14 CEST 2009 >> >> Boots again and the rev in the line above is back. > > The (hopefully) fixed version of the change is at > http://people.freebsd.org/~kib/misc/altkstacks.3.patch Thanks! tc# uname -ra FreeBSD tc.andreas.nets 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r196648M: Sun Aug 30 00:45:26 CEST 2009 andreast@tc.andreas.nets:/usr/obj/export/devel/fbsd/head/src/sys/TC i386 With the above patch applied. Thx, Andreas