From nobody Sun Aug 15 18:28:15 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 AC115176D17F for ; Sun, 15 Aug 2021 18:28:33 +0000 (UTC) (envelope-from julio@meroh.net) Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (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 4Gnm5D5TNcz3sDZ for ; Sun, 15 Aug 2021 18:28:32 +0000 (UTC) (envelope-from julio@meroh.net) Received: by mail-ot1-x335.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so1416637otf.6 for ; Sun, 15 Aug 2021 11:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meroh.net; s=google; h=mime-version:from:date:message-id:subject:to; bh=z9wnTvc6uzAunV33lDtX0lnN5iTsDLuOWavPZ8HK2Ww=; b=odvnO9YmQJMDST/qOTOqpZTel0ceeVVKqpdhmfwBiqWG7mNZ0jgwi6fbr81YIaFBnq sVNv+CkTgyyyvOGSavsAq8hgSosp7EFt5oYqnixBAffi5h1Tykmc+abtP01cQtGcyjqO PAGDiK1/u0uBE0S3Ven+ZaduiVtUCElBTKXLx8hJLzMy5bwvZshm+HjVr9SyNG7/rrZF IZIEiXqbPleKzgOtaL87/PevNArIhqbwX6D57Cmxntx8bCW6bCR1puWTfaZBgSFzimTP 4ayczBSQQFmRweCJuIztzyj4aJ81aTd+hYxKCpgxw+I0ejzQIdzojEpoIBGFjzOIW3xQ c96A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z9wnTvc6uzAunV33lDtX0lnN5iTsDLuOWavPZ8HK2Ww=; b=IergoSkLTweBsxkeqEuZWzdoSAHEe3LriOtS08o6CQLXRWyh+5NDuWGfgZZ6vutRDO KrVXB6tNN0PZNQJCU6F+zq803GfAq08zpd4zC0fBQuWVcemVsm5MAScn1qg06oO0iJLg rdPejTKbibTg4IPNN9Q5Nya0AexRn+NHFDYHefFApYmx6RcaslkfffGw0VsF1IMwJTAl MLClNz8cXNjflKqmxtZXBvv7xfF0DreI66Y0IHAVvaKlqEyG4YGgRUnaEA753XZ9/V5B V7eCweHAHKO1BSCHHsIR1aJ650Zjb+GNVAuhI9WKFToMA1hpU1Y2czDmDqW8BTOYGYJy 62Rw== X-Gm-Message-State: AOAM532hW6zV4FPCVcqRj7lP0/M3c2RiQLFKjWfnyPJdKuYray6pzTwR H5mNehW3YoFvaU6A8f5OuZHtrxBZRlvtHGRVg/UDeO7UjFEge+Ay X-Google-Smtp-Source: ABdhPJxePSmGxoVAK3VyzJ/qw8n5+SxR0A+lwtfBkZZBD/Ot803fT/AfYWUINpYCPY44HSOURD/FZrXJ9dpjse4GCgM= X-Received: by 2002:a05:6830:110a:: with SMTP id w10mr5392792otq.291.1629052105796; Sun, 15 Aug 2021 11:28:25 -0700 (PDT) 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 From: Julio Merino Date: Sun, 15 Aug 2021 11:28:15 -0700 Message-ID: Subject: Segfaults everywhere on stable/13 after recent upgrade To: freebsd-ppc@freebsd.org Content-Type: multipart/alternative; boundary="000000000000163f2105c99d402a" X-Rspamd-Queue-Id: 4Gnm5D5TNcz3sDZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=meroh.net header.s=google header.b=odvnO9Ym; dmarc=none; spf=pass (mx1.freebsd.org: domain of julio@meroh.net designates 2607:f8b0:4864:20::335 as permitted sender) smtp.mailfrom=julio@meroh.net X-Spamd-Result: default: False [0.30 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[meroh.net:s=google]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; NEURAL_SPAM_MEDIUM(0.80)[0.800]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.995]; DMARC_NA(0.00)[meroh.net]; NEURAL_SPAM_SHORT(1.00)[0.999]; DKIM_TRACE(0.00)[meroh.net:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::335:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000163f2105c99d402a Content-Type: text/plain; charset="UTF-8" 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? Thanks! -- jmmv.dev --000000000000163f2105c99d402a-- 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