From owner-freebsd-current@freebsd.org Wed Mar 29 00:29:08 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 38EBBD23CDC for ; Wed, 29 Mar 2017 00:29:08 +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 10D613054 for ; Wed, 29 Mar 2017 00:29:08 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id 1027BD23CDB; Wed, 29 Mar 2017 00:29:08 +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 0FC75D23CDA for ; Wed, 29 Mar 2017 00:29:08 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) (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 8C9873053 for ; Wed, 29 Mar 2017 00:29:07 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f67.google.com with SMTP id r36so72813lfi.0 for ; Tue, 28 Mar 2017 17:29:07 -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; bh=zafLMMPb96CATvEKBF7/fi5dItzO8PXHTqIsIg2UvC4=; b=MHzUtGfsn2ihPlCz6W5JpM80RS2Jr1rEDm3LNOGr6jR8ljhoN1yy2bcLtMX+Imhgmr K6cKutGbTrCaHPaG9pjdffmk5p8azvpTwuiwYxtfD4SX2tEMkGpcBV6Dv/y2Ffgs/FIf DV1ar8EH/g4P/0QcmL/8d7uxpWZaVQeGyW70SI+BUKLsYuXr6Cy2bvMWzl6wl/DVvyFC YdyogjEFX52De+fVpp17VL5U9INfl4rQ4rd+8kD8/L4iu2tmJAK52EcmDg1ChlYLPwnz Qc0Sj1sT7uZfZKRuMLk3X2I2RC8DZOsnh2N1tPFm17eHUV3h7p6iTNABIs0MKMQ4kmB4 NrOQ== X-Gm-Message-State: AFeK/H0JIwjYNiMiH/+1xLQtYH2Qmxx7C/s4iOuxxSBmdwaQvbB9q2qbuTo+WKaI89tHGA== X-Received: by 10.46.32.152 with SMTP id g24mr2277915lji.78.1490747344959; Tue, 28 Mar 2017 17:29:04 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id o100sm961170lfi.18.2017.03.28.17.29.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 17:29:04 -0700 (PDT) Subject: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others To: "Ngie Cooper (yaneurabeya)" , bde@freebsd.org 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> Cc: current@freebsd.org From: Andrey Chernov Message-ID: <51045bee-a626-efb3-4b1e-0c3d36abb1ab@freebsd.org> Date: Wed, 29 Mar 2017 03:29:03 +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: <8C24D1BA-1607-4C19-BA38-39256E82C7AF@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wOuThEcT9VaRi1T6Ppl8TVX1ftGQrVqFD" 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: Wed, 29 Mar 2017 00:29:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wOuThEcT9VaRi1T6Ppl8TVX1ftGQrVqFD Content-Type: multipart/mixed; boundary="jElXp8Sq08LWbqELVGi9d1jikOXEU7LQf"; protected-headers="v1" From: Andrey Chernov To: "Ngie Cooper (yaneurabeya)" , bde@freebsd.org Cc: current@freebsd.org Message-ID: <51045bee-a626-efb3-4b1e-0c3d36abb1ab@freebsd.org> Subject: New syscons bugs: shutdown -r doesn't execute rc.d sequence and others 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> In-Reply-To: <8C24D1BA-1607-4C19-BA38-39256E82C7AF@gmail.com> --jElXp8Sq08LWbqELVGi9d1jikOXEU7LQf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.03.2017 0:46, Ngie Cooper (yaneurabeya) wrote: >=20 >> On Mar 28, 2017, at 14:27, Andrey Chernov wrote: >=20 > =E2=80=A6 >=20 >>> Using rc_debug=3Dyes I see that it is the kernel problem, not rc prob= lem. >>> Sometimes rc backward sequence executed even fully, sometimes only >>> partly, but in unpredictable moment inside rc sequence the kernel dec= ide >>> to reboot quickly (or even deadly hang in rare cases). Always without= >>> any "Syncing buffers..." leaving FS dirty. No zfs etc. just normal UF= S, >>> no EFI, no GPT. >>> I change GELI swap to normal one, but it does not help. The same >>> untouched config works for years, I see this bug for the first time i= n >>> FreeBSD. >>> >> >> I forget to mention that typescript and dmesg does not survive after >> this reboot (or rare hang). >=20 > Good to note. > The simple explanation to the problem might be r307755, depending on wh= en you last synced/built ^/head. >=20 > I have a few more questions (if reverting that doesn't pan out): I just found the cause, it is new syscons bug (bde@ cc'ed). I never compile vt driver into kernel, i.e. I don't have this lines in the kernel config: device vt device vt_vga device vt_efifb When I add them, the bug described is gone. It seems syscons goes off to early, provoking reboot. I also find some lines of the kernel messages strange colored instead of white in the syscons only mode. Even in vt mode vidcontrol errors have invisible escapes prepended (although visible through /var/log/messages).= Moreover, I can't enter KDB via Ctrl-Alt-ESC in the syscons only mode anymore - nothing happens. In the vt mode I can, but can't exit via "c" properly, all chars typed after "c" produce beep unless I switch to another screen and back. All it means that syscons becomes very broken now by itself and even damages the kernel operations. --jElXp8Sq08LWbqELVGi9d1jikOXEU7LQf-- --wOuThEcT9VaRi1T6Ppl8TVX1ftGQrVqFD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJY2v/PAAoJEKUckv0MjfbKLwwIANT1C3D9OhNicbgStnQk7/bS ipIJu6il3o/qJRr6vuBbCtafZajgn9hUpVGHbxS83l/JdH8lK0FRtDNq7s50Dl8s y9XOsg7TUjBV3qFwqFK56BLWlghaLeu4jBh3t8pKhXug0o5TYzLhjpGlfgnvgSPR lLj5MI1M5lkfiOQMpdos9yQbMqGBJ/DWpLEi5Hw7o6WhTDfEh/EeXOPNaMcQFYIZ 1DYKZF2DH2vshYcksqKJlHN4cNAXqiYrk+a7I0c7uoTy2haTnASQ3+G5CSCim7Qx JM1k6MSWQEIe5BjUxsfQtib3wK8WaxPxLol0uypljHvhG89JeZYWYXUNZmeMEyw= =2v0O -----END PGP SIGNATURE----- --wOuThEcT9VaRi1T6Ppl8TVX1ftGQrVqFD--