Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2017 03:29:03 +0300
From:      Andrey Chernov <ache@freebsd.org>
To:        "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>, bde@freebsd.org
Cc:        current@freebsd.org
Subject:   New syscons bugs: shutdown -r doesn't execute rc.d sequence and others
Message-ID:  <51045bee-a626-efb3-4b1e-0c3d36abb1ab@freebsd.org>
In-Reply-To: <8C24D1BA-1607-4C19-BA38-39256E82C7AF@gmail.com>
References:  <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> <D9EAB41D-CE19-4225-8868-F4AFE461F903@gmail.com> <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> <69af07a7-ec8f-9b7f-8b93-9ba148f30fec@freebsd.org> <8C24D1BA-1607-4C19-BA38-39256E82C7AF@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--wOuThEcT9VaRi1T6Ppl8TVX1ftGQrVqFD
Content-Type: multipart/mixed; boundary="jElXp8Sq08LWbqELVGi9d1jikOXEU7LQf";
 protected-headers="v1"
From: Andrey Chernov <ache@freebsd.org>
To: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com>, 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>
 <D9EAB41D-CE19-4225-8868-F4AFE461F903@gmail.com>
 <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 <ache@freebsd.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51045bee-a626-efb3-4b1e-0c3d36abb1ab>