From owner-freebsd-current@freebsd.org Tue Mar 28 21:27: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 F27B6D236FC for ; Tue, 28 Mar 2017 21:27:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id CD704A91 for ; Tue, 28 Mar 2017 21:27:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id CA048D236FB; Tue, 28 Mar 2017 21:27: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 C7FADD236FA for ; Tue, 28 Mar 2017 21:27: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 44D13A8C for ; Tue, 28 Mar 2017 21:27:28 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f68.google.com with SMTP id n78so11676867lfi.3 for ; Tue, 28 Mar 2017 14:27:28 -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=X81kd+l7Fdk5U1WsNj15pzH83se+F5dUlOIBqpA+mcE=; b=YssQ6hhTKH/PT/ZGLI9cX0QtT9ZsFWEhjkJC+OLetmcn5051ufTv9LNE89iQgc5Aq7 48+hiKr9VtNxhnbi5mE+qAgtsM8BKrArDeAA/sJLBHlQ75Y9Yei9kC0pjdj7QTwBLNld FfmqrKF42DXRDh+N5qQhpEDcWZeFKMUMcSRNE2tT/I8V5j5gvHriEYKT45v42vWn6c+x 5SdPi5dKGzOdKN0j9QVhms8hQctDEZCKKvD3PfJ6mteU0dnzjffTtysS4SC2mCASvH3O 9qkpneMtTCfllUT3NV2WNMd1349tPUOtRPB7ypPLgcD7M9t0uIfhbnK7O1EOdKYtaI5P upfQ== X-Gm-Message-State: AFeK/H0yFf63Fa95rMl2/sGJJafxkee1B8UTMVpy4bZpB4RdbjoT38TLtlkzxeD3OMcARw== X-Received: by 10.25.19.194 with SMTP id 63mr13962017lft.144.1490736446242; Tue, 28 Mar 2017 14:27:26 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id 34sm895367lfv.48.2017.03.28.14.27.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 14:27:25 -0700 (PDT) Subject: Re: shutdown -r doesn't execute rc.d sequence To: "Ngie Cooper (yaneurabeya)" References: <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> Cc: current@freebsd.org From: Andrey Chernov Message-ID: <69af07a7-ec8f-9b7f-8b93-9ba148f30fec@freebsd.org> Date: Wed, 29 Mar 2017 00:27:24 +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: <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NR6HbT8a8dF4wQaL5s2GnklSPaADeSVAE" 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: Tue, 28 Mar 2017 21:27:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NR6HbT8a8dF4wQaL5s2GnklSPaADeSVAE Content-Type: multipart/mixed; boundary="mMRgSVl1IJxkBxBQES7cVIqaTrCGMX6i3"; protected-headers="v1" From: Andrey Chernov To: "Ngie Cooper (yaneurabeya)" Cc: current@freebsd.org Message-ID: <69af07a7-ec8f-9b7f-8b93-9ba148f30fec@freebsd.org> Subject: Re: shutdown -r doesn't execute rc.d sequence References: <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> In-Reply-To: <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> --mMRgSVl1IJxkBxBQES7cVIqaTrCGMX6i3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.03.2017 0:15, Andrey Chernov wrote: > On 28.03.2017 22:33, Ngie Cooper (yaneurabeya) wrote: >> >>> On Mar 28, 2017, at 12:30, Andrey Chernov wrote: >>> >>> With latest -current amd64, reboot happens almost immediately, leavin= g >>> FS dirty. No proper backward rc.d or /usr/local/etc/rc.d sequence >>> execution is shown. No deactivating GELI swap too. >> >> Hi Andrey, >> Do you have a typescript demonstrating this? Adding rc_debug=3Dyes to= /etc/rc.conf would be super helpful, along with `boot -v`, to see whethe= r the issue is in userspace or rc(5). >> I=E2=80=99ll double check my amd64/i386 VMs too (if possible, redirec= t the output over serial to a typescript for analysis). >> Are you using vanilla FreeBSD, a fork, or a packaged variant (mfsbsd,= nanobsd, etc)? >> Thanks! >> -Ngie >> >=20 > Using rc_debug=3Dyes I see that it is the kernel problem, not rc proble= m. > Sometimes rc backward sequence executed even fully, sometimes only > partly, but in unpredictable moment inside rc sequence the kernel decid= e > to reboot quickly (or even deadly hang in rare cases). Always without > any "Syncing buffers..." leaving FS dirty. No zfs etc. just normal UFS,= > 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 in > FreeBSD. >=20 I forget to mention that typescript and dmesg does not survive after this reboot (or rare hang). --mMRgSVl1IJxkBxBQES7cVIqaTrCGMX6i3-- --NR6HbT8a8dF4wQaL5s2GnklSPaADeSVAE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJY2tU8AAoJEKUckv0MjfbK4jwIALm3DjpeU0wi31sY0rAj/kbv LfFrI/1QbBbXU16dzLth9NQqm1vygROL/VF9C6JbR+BpiFSRfD+C7PcCQJ1mONNN dzDyEGLsmwcSb0lNulBYwgBwP4rNmU5+JVhAINS1rPLPXypor3Xk2/VoG3dWB0SD rI6GSIvDFckqeMdLIGQSS2RIGTHMe4Bx7ltoKC4OWd6S8428x+VVbOA5/ULkilby C27xryMizKkHGwbdM4FUOPmACEkqMtejietCD4OPvpLJMKwVIxLCd+Ow135RxUft RSThmaY5pFJ+UruTnucBFqqP0HvU4Sudvp4E1spnipR/WSwP4vZKwmWKeGBoU8Y= =MDVS -----END PGP SIGNATURE----- --NR6HbT8a8dF4wQaL5s2GnklSPaADeSVAE--