From nobody Mon Jul 26 09:13:19 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DC08712BBFAD for ; Mon, 26 Jul 2021 09:13:29 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GYDk114Tvz4cYp for ; Mon, 26 Jul 2021 09:13:28 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x531.google.com with SMTP id n2so9611768eda.10 for ; Mon, 26 Jul 2021 02:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=qMMvqfbAXxHBVN30JnkM0lAprnGMw2/T+okkyWPF4Rw=; b=PvHAVb6/ke3gAoMk6DhJejjRUxUGe7Srq5AlbnqBNU0LdfbvAd8XEzd1lpb+dAIwrW 9GDtKBPWzyq0xCqOTtZpTBCWE5Ay0CPMNfQiV1+EC9eEYLHMijpUgrmERXnmmAOF406G ux/6s0fSHjWdYKadiS9PvsTgCf9zlD9fw60UApy4oGcS1d5CN6vgvma9QhnZj9QwPYrT H7NCaZAW+xIh9Hpu5FekJPnJ0l1Xjz83xgbTdyTc096kjyyBqQtzjybzSeB/kYTcY+S7 iWBnqhSKn4EDfu50v8kQuk6ntL1qrMXnpGITQQpqtDLymkde6Iruiws6YEsJjO8DvxZi soJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=qMMvqfbAXxHBVN30JnkM0lAprnGMw2/T+okkyWPF4Rw=; b=CxKZuDYrU+6BnXRHDPcbJ0RhKVik4DMolDhMJjpTY3cXyIhovUeJEXoHINU7pcwLZG n1bHoQ7AirHIproJ0vhv2FCHrbvbPT15IzHH0en16wwhYEwvW4l9lU/sRiEsL2tVyuIv SEobcXWFeuDSLMgMmG9J9Zp3L0AibEwIXl44m81x2AKaY1DGkecExUcTw096pal62caO mN+tmfsatF9aZVolvyfbDSKloDGokKkv2wQ6YSi+llHERhFa07wik/5sKYfhVfnvxDTJ O+FPducmlb75E8EdMLUX06qQUBz6XScQs5U/sM9Xnh0UlFlxZTISbgHCkaO0kl6Q+PXa Ybuw== X-Gm-Message-State: AOAM531lpjRkNvDx8QqjjjA1UaMEFWGvRWQSLx437I3QkTOax6tFtxZP vcRz7tTvqFCR+xlQ+vWGCU8SFzo/YGQ= X-Google-Smtp-Source: ABdhPJz0SU+RJ8ZMtDqR3xpNopvaHZMjVUBrWC0uDigJU2PkpFWxQyo6kGHCAwLSlrJWzrCybvuqJw== X-Received: by 2002:aa7:c349:: with SMTP id j9mr13912828edr.3.1627290801698; Mon, 26 Jul 2021 02:13:21 -0700 (PDT) Received: from ernst.home (pd9e2360f.dip0.t-ipconnect.de. [217.226.54.15]) by smtp.gmail.com with ESMTPSA id f15sm409920ejt.75.2021.07.26.02.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 02:13:21 -0700 (PDT) Date: Mon, 26 Jul 2021 11:13:19 +0200 From: Gary Jennejohn To: Warner Losh Cc: FreeBSD Current Subject: Re: boot hangs after installworld at FreeBSD 14.0-CURRENT main-n248198-72f7ddb587a Message-ID: <20210726091319.213dd5ed@ernst.home> In-Reply-To: <20210726061941.3daf514e@ernst.home> References: <20210725092848.6f64b2d3@ernst.home> <20210725170229.50621855@ernst.home> <20210726061941.3daf514e@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GYDk114Tvz4cYp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b="PvHAVb6/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-0.00 / 15.00]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[217.226.54.15:received]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::531:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[current] X-ThisMailContainsUnwantedMimeParts: N On Mon, 26 Jul 2021 08:19:41 +0200 Gary Jennejohn wrote: > On Sun, 25 Jul 2021 19:02:29 +0200 > Gary Jennejohn wrote: > > > On Sun, 25 Jul 2021 09:54:35 -0600 > > Warner Losh wrote: > > > > > On Sun, Jul 25, 2021 at 3:30 AM Gary Jennejohn wrote: > > > > > > > I updated my FBSD-14 tree yesterday. > > > > > > > > uname -a shows FreeBSD 14.0-CURRENT #5 main-n248198-72f7ddb587a. > > > > > > > > Did a buildkernel and a clean buildworld yesterday. > > > > > > > > This morning I booted the new kernel, did an installworld and rebooted > > > > the new kernel. > > > > > > > > Or, should I say, I tried to reboot the new kernel. > > > > > > > > During boot I see the following outptut: > > > > > > > > loading /boot/defaults/loader.conf > > > > / > > > > > > > > and the boot hangs. > > > > > > > > The second line should have contained > > > > /boot/test/kernel (I always install new kernels to /boot/test) > > > > > > > > followed by lines containing the various modules which get loaded. > > > > > > > > Luckily, I had a USB thumb drive with a FreeBSD memstick.img AND a > > > > complete backup of the old /boot, so I could boot from the thumb > > > > drive and restore /boot (but I moved /boot to /boot.bad before I > > > > did that just in case). With the restored (old) /boot everything > > > > works. > > > > > > > > > > Little has changed in the boot loader. Do you know the hash that worked? Or > > > if I misread above, the has that failed? > > > > > > > The /boot code which works was installed at 07:36 UTC July 9th. So, > > every change to the boot code since then is a culprit. > > > > Example: 9c1c02093b90ae49745a174eb26ea85dd1990eec change to support.4th. > > It just so happens that I had a nextboot.conf in the "bad" /boot at the > > time that the hang occurred. This is the only potential candidate I > > can see. > > > > So I'll try overwriting support.4th with the known-good version and > > see what happens. But probably not until tomorrow my time. > > > > After deleting the nextboot.conf from the "bad" /boot I was able to > boot using the "bad" /boot. That's the only change between this boot > and the previous boot which hung the computer. Whether this is a > strong hint that the change to support.4th is the culprit I can't say, > but since the commit message explicitly mentions nextboot.conf as a > reason for the change, that may very well be the case. > > I decided that removing nextboot.conf was a better test than using > the old support.4th. > > The change looks very simple and innocent, but my 4th knowledge is > pretty much non-existent, so I don't really understand what it does. > > I went back to the "old" /boot because I use nextboot.conf a lot. > I decided to do a further test. I wanted to check whether some other change in the loader might be implicated in the hung boot. I copied the old support.4th to the bad /boot (/boot.b). I then mv'd /boot to /boot.g and /boot.b to /boot and created a nextboot.conf there. After these steps I was still able to boot successfully. So, I'd say that this result is a pretty strong indication that the new support.4th together with a nextboot.conf results in the hung boot. -- Gary Jennejohn