From owner-freebsd-arm@freebsd.org Tue Mar 17 04:48:31 2020 Return-Path: Delivered-To: freebsd-arm@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 8D38F259FA4 for ; Tue, 17 Mar 2020 04:48:31 +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 48hLK96J0yz41pw for ; Tue, 17 Mar 2020 04:48:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: V6XPq6UVM1lAAtNX7aeuvm5VFrG39_aMm0kFbMAf.pkYGNLdeXZHAchiQ9sJLOh A3orl.CWMGI0oA1AYHXkWVXQD32xCxRjF_E95UafZR0VuyD4RlibUqkkQWZQjDJ1g.4OqZx1GV0g G3vSxo91ufelXI4ygGY8amiA4_dAYsI1.Y1uxFskvgXGod2rw7kpQ3gul64iFPT19dqnbg2nyF5Q EgGB88226SOVgFay8mwsjnsXf1LoRXLZUApUzZKimKjk3YEplKdiHGILZ4Xoqu1uoBof9FJIWDFN oq0whcq6JpvWxIBMDh1CCfj5JYQKVkTrkCBKyd9fwspjvtidnNJQqX1cGmqhcEwVsEPDSQvow_RV 8PTyBr_TmSO1D3RccbdEe_tadtZGZ2Qht3PXZNX9wumU2YYmKIAEaeEHWpyyFE7D4oOsiaUniwKR 8M1J7hLYAheCT_vjDqbZcstYyIWG410qoOhI5cTtmhLH0Lgf3P2u0u4jav5L1SzUtl_DYmQgLfeW yZ4rgqdRqlJk0l79wOJwwvWgtBR3Fa638.YMBa5jLuIdUyuIVDU6oVBnha0my6Nu8nyX_RRsk733 pgaZsWee2S4CyrvzunwzWyrhKwK_1vlaRmFUSAnEBU5lgWvKbtQ3Tp1LkOtY1KQdRDV9zIyjcEvP gMQ6tuBCPM5qiL2XteqYzuN0dtE0YDEmEL7IFI.hXrKU6RJRlp6mPW7cV8rD_82UBYTMG1onUiH2 VTqI3GBfQe7LB_AgH3MOZRL45E.iCvZWqsYy6mmgmVh5N30qjVCJJl38xbg6BUFfmzwprFIyiprR fqYQzcIzy7rLqFgp.xjsmufisT.ZEl3yQUOsQ09.klXXDcREeI_ApONap61vNRGQZ1Pmes0cnyV4 _zsAYSwn6ABpXg6BM7hqMWIA3kllclvMn4WqqN0ZqmfSoIlpviaYdk5ieDGN9epnpUhl0ZtDzt5C ZYfn339O87yoQ1xaz8Bqat6FhzFfSylXls3bb9o9V6TDMrJw_A2Zv215M5b5.ofAaKVIon1Ik9Av CmjtZAXoQ4bH67dXxWiMm92aMh3o2TMuH6Y5lUBPEffsB4xGAoUj8_i2eUXXoYmLRL2AnfJbyo.e A6QRd3v1XDzYQAGVvJahzquE6dQLxeSS9CFzTz13QnwsTonTh7_VpckhseEijfys6s7EYQP_Blod tCeFJIBZm_cKZ09WqziJB1Or9V8e1u1EJZovf.mPtfX60z.92ZgKUY4gWSvAi3DwsXJP5LsZhF1U EeisX6w82GQjo3dcqevSqcX0XPW7KKi9IEQl4YDRuCVnloFyz8J1PbkHUbw8Xzb5MU88.G6gd._o mP0jBMc2LPCM0JJPAjk8zNjLzxZvp1.RosTg7gz6Qa5rno_6HdycAwWiwqE_38dzBHEuNiJxEMXF lVUBHSeHvznvPyDGh2ofd3XvN8lJ_iA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Tue, 17 Mar 2020 04:48:26 +0000 Received: by smtp404.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 742402431fba836ba803ada04b6310a1; Tue, 17 Mar 2020 04:48:25 +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.0 \(3608.60.0.2.5\)) Subject: amd64->armv7 cross-build failure for security/ca_root_nss: It failed in memcpy () from /libexec/ld-elf.so.1 Message-Id: <1EC37157-CBA2-4334-92C1-E845F63DB5CA@yahoo.com> Date: Mon, 16 Mar 2020 21:48:23 -0700 Cc: FreeBSD ports To: freebsd-arm , FreeBSD Hackers X-Mailer: Apple Mail (2.3608.60.0.2.5) References: <1EC37157-CBA2-4334-92C1-E845F63DB5CA.ref@yahoo.com> X-Rspamd-Queue-Id: 48hLK96J0yz41pw X-Spamd-Bar: + X-Spamd-Result: default: False [1.18 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.99)[0.989,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; 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)[146.64.137.98.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.69)[0.687,0]; RCVD_TLS_LAST(0.00)[]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (3.33), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2020 04:48:31 -0000 Context: head -r358966 attempting to update ports to -r528535 . Also, 50+ ports built just fine but the below has been repeatable in my context. The original failure was under devel/poudriere-devel (with nxb-bin/ materials used). But part of the below is from exploring with various steps in a handier context. The original error message was: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Building for ca_root_nss-3.51 ## Untrusted certificates omitted from this bundle: 2 openssl x509 failed with exit code 11 at = /wrkdirs/usr/ports/security/ca_root_nss/work/MAca-bundle.pl line 78. *** Error code 255 The original source that reported the message was: sub printcert_info($$) { my (undef, $certdata) =3D @_; return unless $certdata; open(OUT, "|openssl x509 -text -inform DER -fingerprint") || die "could not pipe to openssl x509"; print OUT $certdata; close(OUT) or die "openssl x509 failed with exit code $?"; } The die produced: -rw-r--r-- 1 root wheel 7909376 Mar 17 03:18:04 2020 = qemu_openssl.core gdb reported for it: Core was generated by `openssl'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0xf501adb4 in memcpy () from /libexec/ld-elf.so.1 and: (gdb) info threads Id Target Id Frame=20 * 1 LWP 1592 "x509" 0xf501adb4 in memcpy () from = /libexec/ld-elf.so.1 and: gdb) bt #0 0xf501adb4 in memcpy () from /libexec/ld-elf.so.1 #1 0xf5004cd0 in do_copy_relocations () from /libexec/ld-elf.so.1 and (from a disass): =3D> 0xf501adb4 <+436>: strd r4, [r3], #8 (It was not clear what code context to supply so I stuck to showing the instruction with the register used such that SIGSEGV could result from the use: r3 .) Finally the registers were listed as holding: (gdb) info reg r0 0xf4f5d57c 4109751676 r1 0x14 20 r2 0x93000 602112 r3 0x1 1 r4 0x10 16 r5 0x9fffdfa4 2684346276 r6 0xf4fe2404 4110296068 r7 0xf4fe2004 4110295044 r8 0x93000 602112 r9 0x93000 602112 r10 0x9fffdfe0 2684346336 r11 0x0 0 r12 0x9fffdf80 2684346240 sp 0x9fffdf80 0x9fffdf80 lr 0xf5004cd0 4110437584 pc 0xf501adb4 0xf501adb4 cpsr 0x60000010 1610612752 Yep: r3=3D=3D1 would do it. Note: I've otherwise ignored here seeing lots of: qemu: unsupported syscall: 574 (calling anyway) notices while doing things for extracting this information. I'll note that I had no such SIGSEGV when ca_root_nss 3.50 built back at OSVERSION=3D1300077 on 2020-Feb-16: it built and worked fine back then. I'm not sure when I'll have time to do more with this or if I will again just abandon qemu-user-static for a time. (Insufficient time to allocate to do more?) Hopefully the basic information is useful to someone at some point. I'm not claiming that I know qemu-user-static is the problem, or openssl, or whatever. Just that the combination is broken in my context. Having security/ca_root_nss blocked, blocks cross-building lots of other things, including devel/llvm10 . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)