From nobody Sun Feb 12 18:30:43 2023 X-Original-To: freebsd-arm@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 4PFGJ541ZJz3qWYd for ; Sun, 12 Feb 2023 18:31:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFGJ43xpJz3pbk for ; Sun, 12 Feb 2023 18:31:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=a7wPcOdP; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676226657; bh=D0MUEyJk5alMjE7Wy/b5VDQA+duYLKLM0HRljkwOvSA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=a7wPcOdPUXwiMb47iwjAkSiXo+l/DhCiOHTnbbng5kE2MLhU7ozcSuFTYc1vEKSAJbi66YTctwiBr6bKGKhTVBADUyqo8I2IVI/Yi4Wm0WlmKgqTlbAPfyDfPxiAmqYAGXybr31XZyZgNu+P1hybC6NcbOlBCcpDZYI9o5tet/xm2O5pAs1H1e7qniDBXkfu34nCkVjJB+Z9/+SG7PJkRZHGU3ktoZSw1JGvyZCQY4QyhuXHwrWyobwo82+/peGqfu/AsDIyK8cPjii9mVhZ7BwFT08RyCJBjQBfle0KbWTBTQ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AwEgC5z5fdmCVybERIAHgv6vcV4cnFXNPmJPvHOWsmp6yfKAbFVxJ4Mq9873EYte86RYx SmLGW8I1tp2kjJZFOxLvrxSV0iWX0n27T3Rq2eWbdLY2r2gVUrXR76yDyB.O9dNThFjgY2fHtk0d OdCnMMbr7MUBibw9pwnVGzmusBJfwQpHDS37.sSerBLhdV3pWuDHPVdN.LzxuradPoaCJnVB84.2 pIAbRj6DZtwSC2rg15NBhHiHohDo1NU9xJqyC3boXSjjtMbUV0cMiffcCiwwMU0P9ChKA5FmxAd2 qFTWTnfOx0Sy7.vVr.VDHs8Md1HtPnK7w04vA8RccwzCOq5g3Q32QAYIMX2w8qQ0x4PT8IfLNly3 ubhLIToZnd1DD3cwHAE5HX9ieChqk39.xiAO2xL772wfDNoTcrcW4Z8pE6wLBU515dA29ObRBFTt 6oPACHKja6ZlayJ.Rr_n1kXQi1LzR_SXMvy9vW9RGKLaP52i3vCDhGnHsPauXsgYNekPlPbZ5wvN K4TU4gYsK7zR7fYOXIEw8l1evq_aIAZJvJMWiwXsTC8ZGGr89AhlN4k8GfnZim.WNiHhUROGl8gQ 6uWC3cZukObzPJZiLFQv4se5SDplH4jpQvZYtpCAHgt7jSzFRv4qokocqqyvBYIweJje8tbr0_Ra YiLT_u5AVB7dJJTt6fhifWCRIOuINCQViMCgOYp5kj3xO1eADGEdI0MXcJyfY1qOhzLVns3amRRb K7w-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Sun, 12 Feb 2023 18:30:57 +0000 Received: by hermes--production-bf1-57c96c66f6-76kbw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bcd734e14547388b65776b667d7c00b6; Sun, 12 Feb 2023 18:30:55 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: fsck segfaults on rpi3 running 13-stable From: Mark Millard In-Reply-To: Date: Sun, 12 Feb 2023 10:30:43 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <9A93D530-1AC4-455F-B8C9-FD1C83E04D30@yahoo.com> References: <20230211224057.GA17805@www.zefox.net> <9DC74DD9-9AA1-4822-B425-217AAC7DB3F5@yahoo.com> <20230212043524.GA19401@www.zefox.net> <984314A1-FF42-4F92-A212-6BC0D85CB630@yahoo.com> <20230212165333.GB19401@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spamd-Result: default: False [-3.32 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.82)[-0.821]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.83:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.83:from] X-Rspamd-Queue-Id: 4PFGJ43xpJz3pbk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Feb 12, 2023, at 09:21, Mark Millard wrote: > On Feb 12, 2023, at 08:53, bob prohaska wrote: >> >> On Sat, Feb 11, 2023 at 09:21:29PM -0800, Mark Millard wrote: >>> On Feb 11, 2023, at 20:35, bob prohaska wrote: >>> >>>> On Sat, Feb 11, 2023 at 06:57:41PM -0800, Mark Millard wrote: >>>>> On Feb 11, 2023, at 14:40, bob prohaska wrote: >>>>> >>>>>> While running buildworld on a Pi3 running 13-stable the machine >>>>>> panic'd. On restart using the previous kernel fsck failed with a >>>>>> segfault, which repeated when the disk was moved to a -current Pi3. >>>>>> >>>>> >>>>> Did it produce a *.core file? >>>>> >>>> >>>> The 13-current host, looking at the 13-stable disk, reports >>>> root@www:~ # savecore -C -v /dev/da1s2b >>>> checking for kernel dump on device /dev/da1s2b >>>> mediasize = 2147483648 bytes >>>> sectorsize = 512 bytes >>>> magic mismatch on last dump header on /dev/da1s2b >>> >>> 14-CURRENT? >>> >> Yes. >> >>> For system crash dumps, they may need to be handled by the same >>> type of system that produced them. (Thus the "magic mismatch"?) >>> >>> However, I was not actually after that in my question. I >>> was after fsck crash file(s), not system crash information. >>> (Also useful, just for different purposes.) >>> >>> >>> I was not after the original system crash information >>> in my question. I was after what might have been recorded >>> when fsck was run and failed. >>> >>> So, since you ran a fsck under 14(?)-CURRENT, the file >>> system for 14(?)-CURRENT might have a *.core file from >>> the fsck run. (Unsure for fsck.core vs. fsck_ffs.core >>> as the file name.) This is on a non-corrupted file >>> system. I was avoiding trying to look at files from >>> a corrupted file system. >>> >> >> Ahh! found it. >> -rw------- 1 root wheel 119074816 Feb 11 20:02 fsck_ffs.core >> >> It's been placed in >> http://www.zefox.net/~fbsd/rpi3/ > > But the debugger inforation/symbols from your system are > needed to get symbolic results from that file. My instance > of main is not going to be a match. > > You need to be the one getting the backtrace from your > system. > >>> >>> This presumes that you have the time to wait vs. having >>> to quickly just start over after quickly taking a >>> riskier route if it fails. >> >> Time isn't an issue at all, in fact the system is expendable. >> Mostly I brought the problem up out of surprise that what looked >> like a routine panic on 13-stable could result in seemingly >> un-fixable file system damage. >> >> In the meantime I'll try updating the 14-current system to see if >> that makes a difference. > > If you already did, it is too late to use the fsck_ffs.core > file unless you can revert and accurately reproduce the > original 14-CURRENT so its symbols/debugger information > can be used. > I was too focused on the specific, already existing fsck_ffs.core file. If you update 14-CURRENT and it produces a new fsck_ffs.core file, you can just use that new one under the new 14-CURRENT to try to get a backtrace. No need to revert in that case. Sorry for the earlier noise. === Mark Millard marklmi at yahoo.com