From nobody Sun Aug 15 19:00:41 2021 X-Original-To: freebsd-ppc@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 88B33176E47E for ; Sun, 15 Aug 2021 19:00:55 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gnmpb2f83z3tZj for ; Sun, 15 Aug 2021 19:00:55 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from smtpclient.apple (ip1f100e9c.dynamic.kabel-deutschland.de [31.16.14.156]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id CD620721E2808; Sun, 15 Aug 2021 21:00:41 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Segfaults everywhere on stable/13 after recent upgrade From: tuexen@freebsd.org In-Reply-To: Date: Sun, 15 Aug 2021 21:00:41 +0200 Cc: freebsd-ppc@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: To: Julio Merino X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4Gnmpb2f83z3tZj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 15. Aug 2021, at 20:28, Julio Merino wrote: > > Hi all, > > I have a G5 running stable/13. A couple of weeks ago, I did the regular > fetch, rebuild world, and reinstall... and almost all new userland binaries > started crashing.I thought the crashes would be due to a kernel/userland > incompatibility, but after rebooting with the new kernel, the problem > persisted. > > It took me some effort to recover the machine into a usable state. I had to > revert the source tree to right before clang was updated to 12.0.1 on June > 13th, as I think this is the problematic change, and rebuild + reinstall > from there. > > I just updated the tree again to the most recent stable/13, done another > buildworld, and I have confirmed that most binaries are still broken in the > same way: > > root@g5:/usr/obj/usr/src/powerpc.powerpc64 # ./bin/echo/echo > Segmentation fault (core dumped) > root@g5:/usr/obj/usr/src/powerpc.powerpc64 # gdb ./bin/echo/echo > ... > Reading symbols from ./bin/echo/echo... > Reading symbols from > /usr/obj/usr/src/powerpc.powerpc64/bin/echo/echo.debug... > (gdb) run > Starting program: /usr/obj/usr/src/powerpc.powerpc64/bin/echo/echo > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000010011058 in main (argc=1, argv=0xfffffbfffeab8) at > /usr/src/bin/echo/echo.c:77 > 77 { > (gdb) > > The stacktraces I get out of the binaries are meaningless. You can see echo > crashing upon entering main. ls crashes on a local variable assignment. But > cp gets further along and is able to print its own usage message before > crashing. > > Anybody knows what might be going on? I think clang is broken... At least when I tried to do an installworld, cc crashes when started. I reported it to this list on on July 18th. Best regards Michael > > Thanks! > > -- > jmmv.dev