From owner-freebsd-stable@freebsd.org Sat Jan 14 22:16:56 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00CBACAFFCD for ; Sat, 14 Jan 2017 22:16:56 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4FF41156 for ; Sat, 14 Jan 2017 22:16:55 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x243.google.com with SMTP id 19so989878pfo.3 for ; Sat, 14 Jan 2017 14:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wVYIAmGdT9hiKPP/DWv8JfMH0di/phvfpJBNvmWhuaQ=; b=oFcoNjzedHi/NFMHYoWH3LqrlD+ukHbN2gjA2qn1lcRLlkXUBZRC8G3xP7NIet+lIx edCdQ5Zc5qObJjyC8wErVVswix4z+IE78bTpgut7exHxrPCeiPI36WDBCU/pSMyrI0Zn hQ85BX7nlSwAa6U/B390wMN61+7HNTJz2QFmi61mwmFSBeAVeWwd9WDn0mc91tEXhjVb BZIZRfrLcAkyx3JWmLZK6CvIGwWEzqbe1Z+oOjdhbYBkG1j6D5Zkys3iz/OLIPsNAcFr ixbzwXDUjNtWdrmbYdE2ukSwEOWzq/6ZkdiEi0HWoLPss7MkHvIOXvtnV5Kbv4LTfyUF BQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=wVYIAmGdT9hiKPP/DWv8JfMH0di/phvfpJBNvmWhuaQ=; b=gR7zPg6SDI46m+WaxkTmRr6OUiH4TSgeXEFF/8zyWx1GAMhN3gdzjhG/BIZiNEpuqU sJnpFyC/K6H1409r+Brw+fhq+T+BT8vQqcNSBodvdqwfBCTSnjKhxrWf4bT9W6vqhf0x 9Yj4LuAVB7pcPzXBM3AyBOLCfBHkzWxE04bdZOCIUTFC45Nis4E/tOZw3eRerNRnJMAy aX3Gc0N+6Kr5nbYyhCxIci+svKhW7lVfgvjE0mCb3a/qlvhpK7zCwfmnq0Qu6/Bqfttn 06d3SzqhOjeuKSJTRxreNp+0qjmxes/iv5UCaxnqLXJ7SeNph7tFnnigDYkxuDnKNION OWcw== X-Gm-Message-State: AIkVDXKOJA7reLNUv9d/0HDhNDVX5o9FhMhUtGW6xvhv1u4ayrVZAx7OpTBP4JRQiBmijA== X-Received: by 10.99.116.22 with SMTP id p22mr31343190pgc.161.1484432215413; Sat, 14 Jan 2017 14:16:55 -0800 (PST) Received: from raichu ([2604:4080:1102:0:ca60:ff:fe9d:3963]) by smtp.gmail.com with ESMTPSA id w125sm37285678pfb.8.2017.01.14.14.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Jan 2017 14:16:54 -0800 (PST) Sender: Mark Johnston Date: Sat, 14 Jan 2017 14:16:53 -0800 From: Mark Johnston To: Eugene Grosbein Cc: FreeBSD Stable Subject: Re: stable/11 debugging kernel unable to produce crashdump Message-ID: <20170114221653.GC18065@raichu> References: <587928B3.2050607@grosbein.net> <20170113193726.GC77535@wkstn-mjohnston.west.isilon.com> <587A0E12.7070205@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <587A0E12.7070205@grosbein.net> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2017 22:16:56 -0000 On Sat, Jan 14, 2017 at 06:40:02PM +0700, Eugene Grosbein wrote: > > > I suspect that this is because we only stop the scheduler upon a panic > > if SMP is configured. Can you retest with the patch below applied? > > > > Index: sys/kern/kern_shutdown.c > > =================================================================== > > --- sys/kern/kern_shutdown.c (revision 312082) > > +++ sys/kern/kern_shutdown.c (working copy) > > @@ -713,6 +713,7 @@ > > CPU_CLR(PCPU_GET(cpuid), &other_cpus); > > stop_cpus_hard(other_cpus); > > } > > +#endif > > > > /* > > * Ensure that the scheduler is stopped while panicking, even if panic > > @@ -719,7 +720,6 @@ > > * has been entered from kdb. > > */ > > td->td_stopsched = 1; > > -#endif > > > > bootopt = RB_AUTOBOOT; > > newpanic = 0; > > > > > > Indeed, my router is uniprocessor system and your patch really solves the problem. > Now kernel generates crashdump just fine in case of panic. Please commit the fix, thanks! Thanks, committed as r312199.