From nobody Wed Feb 15 07:16:03 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 4PGqBF5j4gz3rQ1H for ; Wed, 15 Feb 2023 07:16:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-8.consmr.mail.gq1.yahoo.com (sonic315-8.consmr.mail.gq1.yahoo.com [98.137.65.32]) (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 4PGqBF3xHMz3kt3 for ; Wed, 15 Feb 2023 07:16:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676445380; bh=RiJ3Twr+3DEXWump1TUwlNu8z7obZD18WhIUHCRN0g8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=dJGdtyo+Bp9ux7U7arest9e3J/4X4rfc0DjW7bVKk7o5ZGQQRii0K9IsfMrNjK/W3jQUZndfVD/y1B1sR4pcLTD/5byuaRwOCGjvDcteB02GawhexD5Q013JhgYD5tPNZAe5/ohk84/zM2sqmUTQf/wIT4RWUvyx4oW+IsLpirkJ4PZirtq28VZM7ryHxUCmokqmcfT31/caeBzfJOiqRnRFC9qQAf3z8pnhRbBZzsvfmmRKJm9qOqqW4lbfVpGe23OCEm3iKzEej2qNK63XpNkUi6vXQDs4qFfZVX9J5lJlirLwzDLkgriN2D7WiZksjejuVckk7/j3o5MuRgTH7A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676445380; bh=6J1QcXgdUkUEzxvWb0QgmMFAQJsOjyKN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WyW.rmGVE_wcD8T_ZdNuI0fH_WlVQK45BN8MIwamYbGzSnAzfTpcRyPRkea03wyjp gFNVmAgZ.KWUItdFbuRC4ijI9ILxzaJZ46._5L4YMsed2FiV4IQP2P8YBLRrwy9_JdJaOHETGfsc oybp.aFJveWwdqIvA8x4yc9TEFrQQ5BDAXJU7xi81XE5vo0IdGOdAO2Bn3595t4eY9uEnGu9sFzi dgXJXMeOXnEdyaZt_CvSAbrLD3tReXzpdqDU8bId_nwQTp5YMm_NfHJTULcM0sh_sut4K1gc74v1 j8mnqDRd0IuAfqzxkGgepsoSXULBum7mNEEvyA2qLtSsvsp7EpPdBEDcyZzJjjWSR5p6DBh8_8qu sM6M3DSgQ26p5UrBJbr_VmIWVa6e0JsqmBKBszOet7zQz2HUuQc9_4vIwr48m1XCFZ51fM.jQCh8 BnjsQV_REsjAhu.e0tYabXbNXiM6fQf3p23dXVbuF6evKE3R1yG9oXTyWe8iPdG2jgSJaKsq0Bp3 1GbaEsX0pnb7YD5TOAya9zPOXiSl6P5ktwA8fTlPIffxLI1ORBK50fD6geZPnC9zK4Pal05AUSy4 t X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Wed, 15 Feb 2023 07:16:20 +0000 Received: by hermes--production-ne1-746bc6c6c4-kcw5g (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c1967e549ce0a7459282a543cac0bf99; Wed, 15 Feb 2023 07:16:14 +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: Armv7 panic on -current, rpi2 buildworld From: Mark Millard In-Reply-To: Date: Tue, 14 Feb 2023 23:16:03 -0800 Cc: bob prohaska , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230215025741.GA32086@www.zefox.net> To: Warner Losh X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4PGqBF3xHMz3kt3 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Feb 14, 2023, at 20:16, Warner Losh wrote: > Sorry to top post... what program was dumping core? Looks like a too = strict assert Just a possible point, given recent kernel floating point work: Because of Bob's note, I tried to do a typical build and test of some benchmark programs that I sometimes use that involve floating point in some of the programs, some use with multithreading involved. (As FreeBSD and g++ progress I tend to do this once and a while, not as often on armv7 as on aarch64.) On armv7, I now get a message about a failure of an internal cross-check, which also leads to the program being stopped early. The messaging from run to run varies what the failure is, but the runs should not vary and should not fail the cross-checks --and previously did not, including when I last tried armv7. (Not recently.) For the specific example failure, the initial serial (single thread) test with float involved works but the following multi-thread test in the same program fails and causes the program to stop when it notices there is a problem. The programs that do not test floating point do not fail. These can involve floating point outside the algorithm benchmarked, but with no multi-threading involved for such and no floating point based cross- checks involved. At this point it is far from obvious to me how I would trackdown the specifics of what leads to the failed cross-checks. But the above is suggestive of there being problems for armv7 handling of saving and restoring floating point context for multi-threading. I've no clue if such are limited to the floating point values or not. > Warner >=20 > On Tue, Feb 14, 2023, 7:57 PM bob prohaska wrote: > Building world on an RPi2 armv7, buildworld stopped with > bob@www:/usr/src % panic: Called fill_fpregs while the kernel is using = the VFP > cpuid =3D 0 > time =3D 1676427410 > KDB: stack backtrace: > db_trace_self() at db_trace_self > pc =3D 0xc05e8160 lr =3D 0xc007aa04 = (db_trace_self_wrapper+0x30) > sp =3D 0xde2c5790 fp =3D 0xde2c58a8 > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > pc =3D 0xc007aa04 lr =3D 0xc02e9c54 (vpanic+0x140) > sp =3D 0xde2c58b0 fp =3D 0xde2c58d0 > r4 =3D 0x00000100 r5 =3D 0x00000000 > r6 =3D 0xc07372ef r7 =3D 0xc0b13968 > vpanic() at vpanic+0x140 > pc =3D 0xc02e9c54 lr =3D 0xc02e9a34 (dump_savectx) > sp =3D 0xde2c58d8 fp =3D 0xde2c58dc > r4 =3D 0xd70c8600 r5 =3D 0xde2c5e90 > r6 =3D 0xc3398090 r7 =3D 0xe0cfc440 > r8 =3D 0xc3398080 r9 =3D 0xd70c8600 > r10 =3D 0xde2c5960 > dump_savectx() at dump_savectx > pc =3D 0xc02e9a34 lr =3D 0xc05f51dc (set_regs) > sp =3D 0xde2c58e4 fp =3D 0xde2c58f8 > set_regs() at set_regs > pc =3D 0xc05f51dc lr =3D 0xc026f8f0 = (elf32_get_fpregset+0x2c) > sp =3D 0xde2c5900 fp =3D 0xde2c5908 > r4 =3D 0xc3398090 r5 =3D 0xc026f8c4 > elf32_get_fpregset() at elf32_get_fpregset+0x2c > pc =3D 0xc026f8f0 lr =3D 0xc026d848 (elf32_coredump+0x308) > sp =3D 0xde2c5910 fp =3D 0xde2c5988 > r4 =3D 0xc0902a7c r10 =3D 0xde2c5960 > elf32_coredump() at elf32_coredump+0x308 > pc =3D 0xc026d848 lr =3D 0xc02eea74 (sigexit+0xce0) > sp =3D 0xde2c5990 fp =3D 0xde2c5cf8 > r4 =3D 0x0000004e r5 =3D 0xdf580b60 > r6 =3D 0xdf580a78 r7 =3D 0xc026d540 > r8 =3D 0xdddcb2bc r9 =3D 0xdf580ad4 > r10 =3D 0x00000000 > sigexit() at sigexit+0xce0 > pc =3D 0xc02eea74 lr =3D 0xc02ef36c (postsig+0x128) > sp =3D 0xde2c5d00 fp =3D 0xde2c5d88 > r4 =3D 0x00000006 r5 =3D 0xdd43fba0 > r6 =3D 0xde2c5d20 r7 =3D 0xde2c5d18 > r8 =3D 0xdddcb1f8 r9 =3D 0xdf3d9ab8 > r10 =3D 0x00000005 > postsig() at postsig+0x128 > pc =3D 0xc02ef36c lr =3D 0xc02f316c (ast_sig+0x11c) > sp =3D 0xde2c5d90 fp =3D 0xde2c5e08 > r4 =3D 0xdd43fba0 r5 =3D 0xdddcb2bc > r6 =3D 0xc0734d22 r7 =3D 0x00000000 > r8 =3D 0xdddcb1f8 r9 =3D 0x00000ab8 > r10 =3D 0x22530384 > ast_sig() at ast_sig+0x11c > pc =3D 0xc02f316c lr =3D 0xc035444c (ast_handler+0xe0) > sp =3D 0xde2c5e10 fp =3D 0xde2c5e28 > r4 =3D 0xde2c5e40 r5 =3D 0x0000000e > r6 =3D 0x00004000 r7 =3D 0xc096b59c > r8 =3D 0xdd43fba0 r9 =3D 0x00000001 > ast_handler() at ast_handler+0xe0 > pc =3D 0xc035444c lr =3D 0xc035435c (ast+0x20) > sp =3D 0xde2c5e30 fp =3D 0xde2c5e38 > r4 =3D 0xde2c5e40 r5 =3D 0xdd43fba0 > r6 =3D 0x00000000 r7 =3D 0x000001b1 > r8 =3D 0x22c4b500 r9 =3D 0x00000000 > ast() at ast+0x20 > pc =3D 0xc035435c lr =3D 0xc05eaa88 (swi_exit+0x3c) > sp =3D 0xde2c5e40 fp =3D 0xbb9fbe38 > r4 =3D 0x60000013 r5 =3D 0xdd43fba0 > swi_exit() at swi_exit+0x3c > pc =3D 0xc05eaa88 lr =3D 0xc05eaa88 (swi_exit+0x3c) > sp =3D 0xde2c5e40 fp =3D 0xbb9fbe38 > KDB: enter: panic > [ thread pid 81621 tid 101111 ] > Stopped at kdb_enter+0x54: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 81621 tid 101111 td 0xdd43fba0 > db_trace_self() at db_trace_self > pc =3D 0xc05e8160 lr =3D 0xc00774a0 (db_stack_trace+0x140) > sp =3D 0xde2c55d8 fp =3D 0xde2c55f0 > db_stack_trace() at db_stack_trace+0x140 > pc =3D 0xc00774a0 lr =3D 0xc00770f0 (db_command+0x310) > sp =3D 0xde2c55f8 fp =3D 0xde2c56a0 > r4 =3D 0xc0745722 r5 =3D 0x00000062 > r6 =3D 0x00000000 r10 =3D 0x00000000 > db_command() at db_command+0x310 > pc =3D 0xc00770f0 lr =3D 0xc0076db8 (db_command_loop+0x64) > sp =3D 0xde2c56a8 fp =3D 0xde2c56b8 > r4 =3D 0xc07ac186 r5 =3D 0xc07ab7fe > r6 =3D 0xc0986f5c r7 =3D 0xc0b13968 > r8 =3D 0xc0b23738 r9 =3D 0x00000000 > r10 =3D 0x00000001 > db_command_loop() at db_command_loop+0x64 > pc =3D 0xc0076db8 lr =3D 0xc007ab88 (db_trap+0x128) > sp =3D 0xde2c56c0 fp =3D 0xde2c57d8 > r4 =3D 0x00000000 r5 =3D 0xc0986f50 > r6 =3D 0xc0b23758 r10 =3D 0x00000001 > db_trap() at db_trap+0x128 > pc =3D 0xc007ab88 lr =3D 0xc033bb84 (kdb_trap+0x258) > sp =3D 0xde2c57e0 fp =3D 0xde2c5808 > r4 =3D 0xc078390c r5 =3D 0xc08d5270 > r6 =3D 0xc0b23758 r7 =3D 0xc0b13968 > kdb_trap() at kdb_trap+0x258 > pc =3D 0xc033bb84 lr =3D 0xc05eaab8 (exception_exit) > sp =3D 0xde2c5810 fp =3D 0xde2c58a8 > r4 =3D 0x200000d3 r5 =3D 0x00000000 > r6 =3D 0xc07372ef r7 =3D 0xc0b13968 > r8 =3D 0xc093fa0c r9 =3D 0xde2c58e4 > r10 =3D 0xc0b13a68 > exception_exit() at exception_exit > pc =3D 0xc05eaab8 lr =3D 0xc033b044 (kdb_enter+0x50) > sp =3D 0xde2c58a0 fp =3D 0xde2c58a8 > r0 =3D 0x00000000 r1 =3D 0x00000001 > r2 =3D 0x00000012 r3 =3D 0x00000000 > r4 =3D 0xc0b23748 r5 =3D 0x00000000 > r6 =3D 0xc07372ef r7 =3D 0xc0b13968 > r8 =3D 0xc093fa0c r9 =3D 0xde2c58e4 > r10 =3D 0xc0b13a68 r12 =3D 0x00000000 > kdb_enter() at kdb_enter+0x58 > pc =3D 0xc033b04c lr =3D 0xc02e9ca0 (vpanic+0x18c) > sp =3D 0xde2c58b0 fp =3D 0xde2c58d0 > r4 =3D 0x00000100 r10 =3D 0xc0b13a68 > vpanic() at vpanic+0x18c > pc =3D 0xc02e9ca0 lr =3D 0xc02e9a34 (dump_savectx) > sp =3D 0xde2c58d8 fp =3D 0xde2c58dc > r4 =3D 0xd70c8600 r5 =3D 0xde2c5e90 > r6 =3D 0xc3398090 r7 =3D 0xe0cfc440 > r8 =3D 0xc3398080 r9 =3D 0xd70c8600 > r10 =3D 0xde2c5960 > dump_savectx() at dump_savectx > pc =3D 0xc02e9a34 lr =3D 0xc05f51dc (set_regs) > sp =3D 0xde2c58e4 fp =3D 0xde2c58f8 > set_regs() at set_regs > pc =3D 0xc05f51dc lr =3D 0xc026f8f0 = (elf32_get_fpregset+0x2c) > sp =3D 0xde2c5900 fp =3D 0xde2c5908 > r4 =3D 0xc3398090 r5 =3D 0xc026f8c4 > elf32_get_fpregset() at elf32_get_fpregset+0x2c > pc =3D 0xc026f8f0 lr =3D 0xc026d848 (elf32_coredump+0x308) > sp =3D 0xde2c5910 fp =3D 0xde2c5988 > r4 =3D 0xc0902a7c r10 =3D 0xde2c5960 > elf32_coredump() at elf32_coredump+0x308 > pc =3D 0xc026d848 lr =3D 0xc02eea74 (sigexit+0xce0) > sp =3D 0xde2c5990 fp =3D 0xde2c5cf8 > r4 =3D 0x0000004e r5 =3D 0xdf580b60 > r6 =3D 0xdf580a78 r7 =3D 0xc026d540 > r8 =3D 0xdddcb2bc r9 =3D 0xdf580ad4 > r10 =3D 0x00000000 > sigexit() at sigexit+0xce0 > pc =3D 0xc02eea74 lr =3D 0xc02ef36c (postsig+0x128) > sp =3D 0xde2c5d00 fp =3D 0xde2c5d88 > r4 =3D 0x00000006 r5 =3D 0xdd43fba0 > r6 =3D 0xde2c5d20 r7 =3D 0xde2c5d18 > r8 =3D 0xdddcb1f8 r9 =3D 0xdf3d9ab8 > r10 =3D 0x00000005 > postsig() at postsig+0x128 > pc =3D 0xc02ef36c lr =3D 0xc02f316c (ast_sig+0x11c) > sp =3D 0xde2c5d90 fp =3D 0xde2c5e08 > r4 =3D 0xdd43fba0 r5 =3D 0xdddcb2bc > r6 =3D 0xc0734d22 r7 =3D 0x00000000 > r8 =3D 0xdddcb1f8 r9 =3D 0x00000ab8 > r10 =3D 0x22530384 > ast_sig() at ast_sig+0x11c > pc =3D 0xc02f316c lr =3D 0xc035444c (ast_handler+0xe0) > sp =3D 0xde2c5e10 fp =3D 0xde2c5e28 > r4 =3D 0xde2c5e40 r5 =3D 0x0000000e > r6 =3D 0x00004000 r7 =3D 0xc096b59c > r8 =3D 0xdd43fba0 r9 =3D 0x00000001 > ast_handler() at ast_handler+0xe0 > pc =3D 0xc035444c lr =3D 0xc035435c (ast+0x20) > sp =3D 0xde2c5e30 fp =3D 0xde2c5e38 > r4 =3D 0xde2c5e40 r5 =3D 0xdd43fba0 > r6 =3D 0x00000000 r7 =3D 0x000001b1 > r8 =3D 0x22c4b500 r9 =3D 0x00000000 > ast() at ast+0x20 > pc =3D 0xc035435c lr =3D 0xc05eaa88 (swi_exit+0x3c) > sp =3D 0xde2c5e40 fp =3D 0xbb9fbe38 > r4 =3D 0x60000013 r5 =3D 0xdd43fba0 > swi_exit() at swi_exit+0x3c > pc =3D 0xc05eaa88 lr =3D 0xc05eaa88 (swi_exit+0x3c) > sp =3D 0xde2c5e40 fp =3D 0xbb9fbe38 > db>=20 >=20 > The machine was last updated about a week ago, the > sources were updated earlier today. This panic is > new to me. >=20 > Thanks for reading, >=20 > bob prohaska >=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com