From owner-freebsd-current@freebsd.org Thu Mar 30 17:14:28 2017 Return-Path: Delivered-To: freebsd-current@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 AFD72D2635D for ; Thu, 30 Mar 2017 17:14:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8BFA1BDB for ; Thu, 30 Mar 2017 17:14:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id 88607D2635C; Thu, 30 Mar 2017 17:14:28 +0000 (UTC) Delivered-To: current@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 87D53D2635B for ; Thu, 30 Mar 2017 17:14:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) (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 2A8E6BD7 for ; Thu, 30 Mar 2017 17:14:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f68.google.com with SMTP id n78so5217861lfi.3 for ; Thu, 30 Mar 2017 10:14:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=JiybC0ppcTDXkBPxrShhGg8Poin8oSN1TRv/eB29D3E=; b=jNYX1hkEvlKJGCbztBj8jlsg2sXYSseXS7GLP9rVfxOsvd20AQf37OfvTqxjPsxhiP XZCJZg3MKaT/knAUfwX6xKP+Q6nFkgKO5eLWqUMCJsgkCtl8Lak/lDQnp7ovWZ77ONUW Jc3P2s1QlCAH9MtP6AMfrSyUsihKWRUFqywwKjFf2GDGBR04gDS3fMBdLyHt6SNmuiCe QgjmksRn3djjewLFXfGvmdhDc6qEX40NJJGw+n1sPaDZ+okHdCYIxsoE7fBkqw90Zeow o+Oc7ViuNYfBUxqcJQxADEWfVTkjJ5+E3ySfREA/wQqR/iPkjhRFH0la2mrNKBO648sk z0pw== X-Gm-Message-State: AFeK/H3E5CjGrEEFp2PPt267wNZS2gKD7RFtdlrQjteh/wu+pfn3hpbanH2paPdOoRV2BQ== X-Received: by 10.46.1.85 with SMTP id 82mr335295ljb.122.1490894065108; Thu, 30 Mar 2017 10:14:25 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id u195sm479194lja.29.2017.03.30.10.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2017 10:14:24 -0700 (PDT) Subject: Re: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others To: Bruce Evans References: <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> <69af07a7-ec8f-9b7f-8b93-9ba148f30fec@freebsd.org> <8C24D1BA-1607-4C19-BA38-39256E82C7AF@gmail.com> <51045bee-a626-efb3-4b1e-0c3d36abb1ab@freebsd.org> <20170329132927.U882@besplex.bde.org> <20170330150449.R1061@besplex.bde.org> <3534bbeb-9f73-4e37-8f89-c05dd9f89f8c@freebsd.org> <20170330183716.W1655@besplex.bde.org> <4085b441-74ee-796f-adc0-713dfc198b03@freebsd.org> <1772f54a-4268-577a-8e7f-abce929d39c8@freebsd.org> <20170331015718.X3330@besplex.bde.org> Cc: "Ngie Cooper (yaneurabeya)" , avg@FreeBSD.org, bde@FreeBSD.org, current@FreeBSD.org From: Andrey Chernov Message-ID: Date: Thu, 30 Mar 2017 20:14:23 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170331015718.X3330@besplex.bde.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Thu, 30 Mar 2017 17:14:28 -0000 On 30.03.2017 18:13, Bruce Evans wrote: > On Thu, 30 Mar 2017, Andrey Chernov wrote: > >> On 30.03.2017 12:34, Andrey Chernov wrote: >>> On 30.03.2017 12:23, Andrey Chernov wrote: >>>> Yes, only for reboot/shutdown. The system does not do anythings wrong >>>> even under high load. On reboot or hang those lines are never printed: >>>> >>>> kernel: Waiting (max 60 seconds) for system process `vnlru' to >>>> stop...done >>>> kernel: Waiting (max 60 seconds) for system process `bufdaemon' to >>>> stop...done >>>> kernel: Waiting (max 60 seconds) for system process `syncer' to stop... >>>> kernel: Syncing disks, vnodes remaining...5 3 0 1 0 0 done >>>> kernel: All buffers synced. >>>> (it is from 10-stable sample, old -current samples are lost) >>>> >>>> Moreover, GELI swap deactivation lines are never printed too (I already >>>> mention that I change swap to normal, but nothing is changed). >>> >>> I start to have raw guess that _any_ kernel printf in shutdown mode >>> cause not printf but premature reboot. >> >> Finally I have good news and bad news with today's -current: >> >> 1) It seems your latest commit r316136 fix premature reboot issue. > > Now I need to know how that helped. Do you used a non-default mode? Perhaps it isn't really helped, but just hide the problem, changing some another race time parameters. I use 80x30 text mode on all screens. >> 2) I still can't enter KDB using Ctrl-Alt-ESC, while booting, after >> booting, after login and while shutdown - nothing happens. >> boot -d enters KDB normally, but the keyboard sequence handler is >> broken, not boot -d. > > Try "~b". What? It just prints \n, new csh prompt and ~b > It is an old bug that Ctrl-Alt-ESC (and Ctrl-PrtScr) Ctrl-PrtScr does nothing too. > But I think the misconfiguration is the > same for vt. No, Ctrl-Alt-ESC works for vt at every phase of the system lifecycle. I use Russian keymap for syscons, but Ctrl, Alt, ESC of course are not remapped. I surely remember it works for syscons long time ago. Just to not forget it, I use PS/2 keyboard and have no vt* lines in the kernel config.