From owner-freebsd-ports@freebsd.org Thu Jul 30 05:05:48 2020 Return-Path: Delivered-To: freebsd-ports@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 6DD61378818 for ; Thu, 30 Jul 2020 05:05:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (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 4BHJJq2J5pz3Tk9 for ; Thu, 30 Jul 2020 05:05:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: jTrF8vUVM1mTJ97bHoRISRJO4uSgiuPeNRa8G_VbcpIMe08Wz4Ta4nsdLfZrIZI D56RMV1mDefRzpTrtaN1bPlD7jcce7WhrGw6tDeJSkJCgkJR4IjCSMjDx9H0YevvJeOZZNGO1jHQ GMEPYl2UZGTdBW44u01rmK4GWtwhugARB9Veca3pSNUbatYORfUXnOmhEpdKgc8wtUBAWnB7Tx74 evbpghHg1euqGvuUntSMgN92OuySUh.svyUu5wx2UV2RN3qmj1bwjt8fVCyqajYQt0vRUwjibCBG TkymLaZHIvTYFTJaDRaqMTSnIb0JIqM5cZE5SLdzF2z1PRNuDOE2kXXojI796ul_9yfzZhQB6Es1 28lDasGHQdfybb2DZfkglZY1g2uYIhiXjX9XcEIJXYiNDxuhh9mlzKh60rshyUkiRQoeYkhOqkXI NATYzLGy1AE8X_5I3mYlfPzwDhvViNayLSOcM40M1bSsvG0MFde9Y51dRhehx5pjOboxmLRTDHMI 6DdouyRkIkAnJr.5Irb_bC619YTBv5nvCTnmj2U6FcGtFgrfEB7wmydNrngv8R_M64pd.0J0DoL4 ltPw5OSt72vdi6OYedv4pDCRwkx8zNNYoxtp6kH9drxUUmY55gp6couaY6Xz8N7ppdqeVcJAuSii vjajByojFmxA3VTkS2yzUnlmbltkk0qcRONgB2jbBJ1XrqJ3KMhAce1reHpgXzFxEr4O6H76Pkld Q_hhV7kg272IVG_TB9hB5oFuQrPf7XDQ9BFNcVqOrTIIoEAOZc3z9Jsl7P0UxprQFM2uuQBvMquB ycM0SnYORRjvgoki3vo.najAvzC7KnIVy2SvFY4zBhoCCoSPXvOLiDOCN_gtIZZP7sclqKN5zChy dDhc1bu8lWOiZuWFn11pS1OYwgSfbq3jUAJn3FfW4M4CZQySlVIzaqTx9cjYa3UB448hjOeXq6u9 QghcSGb_HkfT5X05QFSaMcCXX.GpXRJ03y5gTqkbKvNgagFy_hCrbUtd3pHnsx.Mm.RdtHPTPun6 vryMjuuf_M2cbUNvC2CZy.591vC2VE7M4ZNm.WUXmE9uDk9N9fBxL4mtk0BVd.abllHv4TMBCR13 2DiX1XY5exRnEw.s.sgORqmzyppE9ngZuEe5Gpx4GXLKUuvHQD.PBos1Q5qSTSS__URTwgB3fCad Ou7y0MpwlQogc299QphvI.FJzzj7aIlCYFJicVH8VcUuMQBLh_UOvSk_KDhk3Tx6SXBJE6qRd8X5 13IuPNRnjxvsUNMGuJWa_dOpsst7oWfXGpl3XAtstX1eG0OhGclHEHR_WZY1g4es3PxY3oqX2o29 nHVKUCAPrS_121JeY7iGR0FTCDwnFJ44UsPWF54Op4O1_3I8FEJyeZESYLGxrMp51Cea.dzN8.lq jbcAy0w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Thu, 30 Jul 2020 05:05:45 +0000 Received: by smtp426.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2285c3e1248757ab980b47cc14c5737e; Thu, 30 Jul 2020 05:05:42 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: security/nss build failure under poudriere, "symlink creation race", head -r363590 FreeBSD and head -r543636 ports Message-Id: <545B857B-6A55-4C71-BA3D-6F9F5BF9F059@yahoo.com> Date: Wed, 29 Jul 2020 22:05:41 -0700 To: FreeBSD ports X-Mailer: Apple Mail (2.3608.80.23.2.2) References: <545B857B-6A55-4C71-BA3D-6F9F5BF9F059.ref@yahoo.com> X-Rspamd-Queue-Id: 4BHJJq2J5pz3Tk9 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.93 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.01)[-1.011]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.05)[-1.054]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.146:from]; NEURAL_HAM_SHORT(-0.37)[-0.366]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FROM_EQ_ENVFROM(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]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.146:from] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 05:05:48 -0000 While building ports for a cortexA53 (aarch64) on a cortexA57 system via poudriere-devel use I got: gmake[5]: Leaving directory = '/wrkdirs/usr/ports/security/nss/work/nss-3.55/nss/lib/ckfw/builtins' gmake[4]: *** [../../coreconf/rules.mk:387: = ../../../dist/public/nss/nssckmdt.h] Abort trap (core dumped) gmake[4]: *** Deleting file '../../../dist/public/nss/nssckmdt.h' gdb reports that: Core was generated by = `../../coreconf/nsinstall/FreeBSD13.0_OPT.OBJ/nsinstall -R -m 444 = nssckmdt.h ../.' (gdb) bt #0 thr_kill () at thr_kill.S:4 #1 0x00000000404adc70 in __raise (s=3D6) at = /usr/src/lib/libc/gen/raise.c:52 #2 0x0000000040428a74 in abort () at = /usr/src/lib/libc/stdlib/abort.c:67 #3 0x0000000000212a50 in fail (format=3D) at = pathsub.c:53 #4 0x0000000000212438 in main (argc=3D, argv=3D) at nsinstall.c:330 (gdb) up 4 #4 0x0000000000212438 in main (argc=3D, argv=3D) at nsinstall.c:330 330 fail("symlink was attempted in working = directory %s " (gdb) list 325 exists =3D 0; 326 } 327 if (!exists && symlink(name, toname) < 0) { 328 if (errno =3D=3D EEXIST) { 329 fprintf(stderr, "symlink creation race: = %s\n", toname); 330 fail("symlink was attempted in working = directory %s " 331 "from %s to %s.\n", cwd, name, toname); 332 goto retry; 333 } 334 diagnosePath(toname); (gdb) print cwd $1 =3D 0x40a18000 = "/wrkdirs/usr/ports/security/nss/work/nss-3.55/nss/lib/ckfw" (gdb) print name $2 =3D 0x40a18800 "../../../nss/lib/ckfw/nssckmdt.h" (gdb) print toname $3 =3D 0x40a1b000 = "/wrkdirs/usr/ports/security/nss/work/nss-3.55/dist/public/nss/nssckmdt.h"= More specifically the code (with more context) is: retry: exists =3D (lstat(toname, &tosb) =3D=3D 0); . . . /* Check for a pre-existing symlink with identical content. = */ if (exists && (!S_ISLNK(tosb.st_mode) || readlink(toname, buf, sizeof buf) !=3D len || strncmp(buf, name, len) !=3D 0)) { int rmrv; rmrv =3D (S_ISDIR(tosb.st_mode) ? rmdir : = unlink)(toname); if (rmrv < 0) { fail("destination exists, cannot remove %s", = toname); } exists =3D 0; } if (!exists && symlink(name, toname) < 0) { if (errno =3D=3D EEXIST) { fprintf(stderr, "symlink creation race: %s\n", = toname); fail("symlink was attempted in working directory %s = " "from %s to %s.\n", cwd, name, toname); goto retry; } diagnosePath(toname); fail("cannot make symbolic link %s", toname); } . . . The "goto retry" is odd given the "fail" use and: void fail(char *format, ...) { . . . abort(); exit(1); } The poudriere bulk is still going, building other things. So it will be some time before I find out if this repeats for the next bulk run. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)