From owner-freebsd-stable@FreeBSD.ORG Tue Jul 1 20:55:44 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB6F420D for ; Tue, 1 Jul 2014 20:55:44 +0000 (UTC) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AE7B22D85 for ; Tue, 1 Jul 2014 20:55:44 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id E51183592E3; Tue, 1 Jul 2014 22:55:41 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id CF97C28497; Tue, 1 Jul 2014 22:55:41 +0200 (CEST) Date: Tue, 1 Jul 2014 22:55:41 +0200 From: Jilles Tjoelker To: Huang Wen Hui Subject: Re: onifconsole prevent shutdown on mbr 2013 Message-ID: <20140701205541.GB18628@stack.nl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2014 20:55:45 -0000 On Sat, Jun 14, 2014 at 07:58:17AM +0800, Huang Wen Hui wrote: > I notice onifconsole is enable on STABLE recently, In mbr 2013 there is an > uart port, it may not useful: > uart0: <8250 or 16450 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 > on isa0 > uart0: console (338,n,8,1) > If onifconsole is enable, "shutdown -p now" or press power button on > keyboard is not properly work. > system still can ssh. > Before shutdown command, ps -ax show: > [snip] > After showdown command, ps -ax show: > PID TT STAT TIME COMMAND > 0 - DLs 0:00.10 [kernel] > 1 - SLs 0:00.02 /sbin/init -s > [snip] > 1693 v0- Z+ 0:00.01 > 1694 v1- Z+ 0:00.00 > 1695 v2- Z+ 0:00.01 > 1696 v3- Z+ 0:00.01 > 1697 v4- Z+ 0:00.01 > 1698 v5- Z+ 0:00.01 > 1699 v6- Z+ 0:00.01 > 1700 v7- Z+ 0:00.00 > 1701 u0- Z+ 0:00.01 > 1747 0 Ss 0:00.01 -csh (csh) > 1780 0 R+ 0:00.00 ps -ax > All getty processes become to defunct. Please provide the output of procstat -k 1 during the hang (after the shutdown command). If you are running stable/10, reverting r261997 (an MFC of r259441) might help. In some circumstances, r261997 makes a process unkillable while waiting for output to drain while closing a tty. -- Jilles Tjoelker