From owner-freebsd-ppc@freebsd.org Sun May 3 14:38:14 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE38C2DF055 for ; Sun, 3 May 2020 14:38:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-54.consmr.mail.gq1.yahoo.com (sonic316-54.consmr.mail.gq1.yahoo.com [98.137.69.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49FT9x2dVtz3H01 for ; Sun, 3 May 2020 14:38:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: GK_At_sVM1nO4_VNufUJRQiRbBHFzGzYXYgVFH083iNk.b.MLZwLCxzQqnnsUNa x_8tvuR148QZ_3Kho53XjSXrKURYdHi6Mepaq0aR7AicR9ZXqrywG9b5VYoZ3p53tjxMKaaPOop0 pvyQ13wozBpoV6BHbme6jU2kelDLsAfqNTMNrWmCLTOFt2EGGIBHBW5hfOC_PN7MuUz0_k9THFAT y6nD1dJ2WZTwHhhXYmheWp7ZRs7pC4ujL0V2OF4_oDk.EvN3u_0qz8MLcU7DYY3tgGURYU7TR5Lg 4Dboz27fxBNRunL70Mv7hTI8MKCqk5oEWYh6PRlYLRDSlfJd.BEGjqPjVBtqHTPf5YZtGInMUolY ERAlV4mcsW.aY9RPf0kHlzjFuIabM2DDPVKlKinsgES2721ZQK9CNodqY8PoF_ZpPVKqjZPHHeVD EufxgxQ.uN.wJeLiOKddrQU_bJ2ALPk3Zn2Ctrd9hk0dPEWqfSlEH3GUcNZciLJ_v1JzOeaGs1b5 J1LNxKNc.vdqOAvNAOO3p9yfHTDhb1pax4SihajEkIys2VqoTL4E83jyVMLqxznBSCVKoLR0MCjP nKP1PhCNcjmj7P2EN7GMGUVq84IzaT2BjwIw_tCL9_4H1L.0k6uAblCxzNw8M2cA9tNK7nq8LtG8 fZTTJg0asx0TtwrpMKs1GzifRDtcRw41L5h2QarqElv4O.WCHXZBXu0Op9VTjJ5pmsHd4aUFEk6H HvUZZcqdKARb9Si2zlMfUyHEd0EH3qHjxCn.fVSYSvca4wpO2vInGnPl3dug7GaiCbhEvmOv4HLo iaNvd6QI2UiyFq0Ude4r4pYClsi2qiFh.usFs_8LDm9CvByvWx5.cPxMY.5VLn9U5kHKqpCtwwrE 3UacgmEl3rIqvX1THtMGWhZT2R1xplGqEvD2H8bS0wtPcyZaiAbuIy6LkGNM.58fn9HDPz4m8vQi xSNZ98UUCqjbrj5WiDIncS3de0AqzHNnQXgcqKYzq_CzJWTogxu0SiPnixGzfEQM.LMFfdcuePiH crHr1ZgP.cRnv9is1apmTGeHkuPs7l9xwhXErNydjgmq.7ebx7UbhQmDGC65uSyZeIKl9PqbQ5RU rhLSjTHbrBMJ3yMtfVAJTm1hN4Yh1LCTpazzGQa3Fhg8_bX281zBoMF9qqo.4eteSvXS5QE_hqci 0jRR3FVq.ammdhNbrjwZ55KrDaLmjcx729KoBqKZROcwXwlDD8qHcGtu8wkcpLuuXDJsGhrWm3dt v4.VXuUtkE.loMX9ZCBtIi0iI2TS8FoqXb3S8.IvI4o69lKXSZsMWG2tNtAgA2xoxfc6StW1dKSX hw0cRa6jpj8IJrdck2.YqCM9DyPZudBQg5oWBjX5Dtw02Mq0_nJspvLkRxCWyR2ffeIlDQm0SGZy I3Ka4EANwc7jutC3H4dTtDuVpAMuFJA30XpUzkCgoqE_c69mBuCy95GmkL7h6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sun, 3 May 2020 14:38:11 +0000 Received: by smtp425.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 152cb9da62572901c7e41056e9bc8777; Sun, 03 May 2020 14:38:07 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311 From: Mark Millard In-Reply-To: <1588493689.54538000.et1xl2l8@frv55.fwdcdn.com> Date: Sun, 3 May 2020 07:38:06 -0700 Cc: svn-src-head@freebsd.org, FreeBSD Current , FreeBSD Hackers , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <922FBA7C-039D-4852-AC8F-E85A221C2559@yahoo.com> References: <1588493689.54538000.et1xl2l8@frv55.fwdcdn.com> To: nonameless@ukr.net X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49FT9x2dVtz3H01 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.40 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[ukr.net]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.935,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.967,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (3.91), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[30.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[30.69.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 14:38:15 -0000 On 2020-May-3, at 01:26, nonameless at ukr.net wrote: > --- Original message --- > From: "Mark Millard" > Date: 3 May 2020, 04:47:14 >=20 >=20 >=20 >> [I'm only claiming the new jemalloc is involved and that >> reverting avoids the problem.] >>=20 >> I've been reporting to some lists problems with: >>=20 >> dhclient >> sendmail >> rpcbind >> mountd >> nfsd >>=20 >> getting SIGSEGV (signal 11) crashes and some core >> dumps on the old 2-socket (1 core per socket) 32-bit >> PowerMac G4 running head -r360311. >>=20 >> Mika=C3=ABl Urankar sent a note suggesting that I try >> testing reverting head -r360233 for my head -r360311 >> context. He got it right . . . >>=20 >>=20 >> Context: >>=20 >> The problem was noticed by an inability to have >> other machines do a: >>=20 >> mount -onoatime,soft OLDPOWERMAC-LOCAL-IP:/... /mnt >>=20 >> sort of operation and to have succeed. By contrast, on >> the old PowerMac G4 I could initiate mounts against >> other machines just fine. >>=20 >> I do not see any such problems on any of (all based >> on head -r360311): >>=20 >> powerpc64 (old PowerMac G5 2-sockets with 2 cores each) >> armv7 (OrangePi+ 2ed) >> aarch64 (Rock64, RPi4, RPi3, >> OverDrive 1000, >> Macchiatobin Double Shot) >> amd64 (ThreadRipper 1950X) >>=20 >> So I expect something 32-bit powerpc specific >> is somehow involved, even if jemalloc is only >> using whatever it is. >>=20 >> (A kyua run with a debug kernel did not find other >> unexpected signal 11 sources on the 32-bit PowerMac >> compared to past kyua runs, at least that I noticed. >> There were a few lock order reversals that I do not >> know if they are expected or known-safe or not. >> I've reported those reversals to the lists as well.) >>=20 >>=20 >> Recent experiments based on the suggestion: >>=20 >> Doing the buildworld, buildkernel and installing just >> the new kernel and rebooting made no difference. >>=20 >> But then installing the new world and rebooting did >> make things work again: I no longer get core files >> for the likes of (old cores from before the update): >>=20 >> # find / -name "*.core" -print >> /var/spool/clientmqueue/sendmail.core >> /rpcbind.core >> /mountd.core >> /nfsd.core >>=20 >> Nor do I see the various notices for sendmail >> signal 11's that did not leave behind a core file >> --or for dhclient (no core file left behind). >> And I can mount the old PowerMac's drive from >> other machines just fine. >>=20 >>=20 >> Other notes: >>=20 >> I do not actively use sendmail but it was left >> to do its default things, partially to test if >> such default things are working. Unfortunately, >> PowerMacs have a problematical status under >> FreeBSD and my context has my historical >> experiments with avoiding various problems. >>=20 >> =3D=3D=3D >> Mark Millard >> marklmi at yahoo.com >> ( dsl-only.net went >> away in early 2018-Mar) >>=20 >=20 > Hi Mark, >=20 > It should be fixed, but not by reverting to old version. We can't = stuck on old version because of ancient hardware. I think upstream is = not interested in support such hardware. So, it have to patched locally. Observing and reporting the reverting result is an initial part of problem isolation. I made no request for FreeBSD to give up on using the updated jemalloc. (Unfortunately, I'm not sure what a good next step of problem isolation might be for the dual-socket PowerMac G4 context.) Other than reverting, no patch is known for the issue at this point. More problem isolation is needed first. While I do not have access, https://wiki.freebsd.org/powerpc lists more modern 32-bit powerpc hardware as supported: MPC85XX evaluation boards and AmigaOne A1222 (powerpcspe). (The AmigaOne A1222 seems to be dual-ore/single-socket.) So folks with access to one of those may want to see if they also see the problem(s) with head -r360233 or later. Another interesting context to test could be single-socket with just one core. (I might be able to do that on another old PowerMac, booting the same media after moving the media.) If I understand right, the most common 32-bit powerpc tier 2 hardware platforms may still be old PowerMac's. They are considered supported and "mature", instead of just "stable". See https://wiki.freebsd.org/powerpc . However, the reality is that there are various problems for old PowerMacs (32-bit and 64-bit, at least when there is more than one socket present). The wiki page does not hint at such. (I'm not sure about single socket/multi-core PowerMacs: no access to such.) It is certainly possible for some problem to happen that would lead to dropping the supported-status for some or all old 32-bit PowerMacs, even as tier 2. But that has not happened yet and I'd have no say in such a choice. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)