From owner-freebsd-ports@freebsd.org Mon Nov 12 02:01:05 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C6A9112D096 for ; Mon, 12 Nov 2018 02:01:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-20.consmr.mail.ne1.yahoo.com (sonic303-20.consmr.mail.ne1.yahoo.com [66.163.188.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 AC8FC78E75 for ; Mon, 12 Nov 2018 02:01:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: QXzECLUVM1k0gbfHRzpaZi7wzwfhdIEsM_czRfjFcHTd.Yr1X6IgH_ZV9_rDMG4 SqDPdYIKVpkou_gJFERVxg13DGFlnxGKtdxO440KulfZy905MStab4Nr.NW9mgwHvr51cLROvWB_ bGQx1EtqjK2HdnxvzQOtet6FcliuUoZJQVMC6puEX.Awuh_D8fH5yGo6kx0hQ9qYIovSPVHDIma_ TDxugZVPJQT5Uf.wRqqZ6frqKoogdPer5UvWyOsiruJOoBUS0KKpuYFWgC1Q1xdro.p6JqMK8fc_ cbh5cKAETpzd6wXCXstrDYz31ife8AG.3hMgRQRtP3qVm_c58yQ7LExGc2IPYl0efdP9Pro.A9bt CpVgaNYgnL1ZTUdpaVyulMAkTxJqMlMmRvxw2ELc4Qoa6RpYmRJFpfqnkLMTk3cnPwdVG_HNGOM5 kfXqNO_3Oxbkuh1_P7Qcz1cJMZtOTtf.8vXSqCadSWIydlJbqZbUQuorOiOhU24VQCWeuW1Xcm3c I5jXQC_wD1jNvHBj9g4Ht7UeBb_5bdUcL9HmXfQA2reSpihA5t_XHl6.eVL.4yezTExcx5R0DH86 2NFWg0S72AyZCVUXnrGQgt_.KuWD11UbrYiZVkg5RityTRSRjqwJ7zSDzLVqEZ12E_TvCGfDS6oz 89qwxfWJWUMhWLlELCOX6B8tu0VYt_riUZHFqsVFutKPbE9pgJkuUM7Eman9pQy7D5uZjaIeFZ.o dJWvkcW9KYF2brmascn3JF61UqluBIf0R5uoGRcrJzQOzvEjFHgtbLgNcR1ZwHULI4J6n0g0HA29 tLdqX5l5ZnfSuQ4fTu4b2FWtAThmv.eAp_MqiBC3jfzxVfdIuJXJk1yLyi8m7rN2d33rw5kUGz_Q tBwi3_JD45nrANl8dojeWN8qdCnH1RHHWsw8FyPD5m47DpULpWbZnSpIF5FE5d7O8jbcdvm6WW10 2y6HmFgxL0oA.R9OvuIfR1zEHxu4dsdkARPXi8pWVq4lVvBobShG1XAmfNfcfHySVuE0uV29nZaR 1bkSDWaFTYKpI1QUDMpLrL_se0S4sNcQHYCrPL01FduEA6Ua2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Mon, 12 Nov 2018 02:01:03 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp406.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b498ec2ab076d78dce3a4b9ef93120b6; Mon, 12 Nov 2018 01:50:59 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: ports -r484565 : qemu-arm-static fails with: (start < end): backtrace included; start+len arithmetic overflow (abi_ulong wrap) for TARGET_FREEBSD_NR_mmap use From: Mark Millard In-Reply-To: Date: Sun, 11 Nov 2018 17:50:57 -0800 Cc: Sean Bruno , ports-list freebsd Content-Transfer-Encoding: quoted-printable Message-Id: <570ED02C-1AC6-4333-B160-F2AC3963D868@yahoo.com> References: <783DE9B1-F1F5-45B5-8C3E-0B0D8BF4CC03@yahoo.com> <04F7FF99-96DE-4A51-B17F-7F2FEE667417@yahoo.com> <7F3A94B8-C6E9-42D5-A5DF-94BF910B1D0C@yahoo.com> <09E0609A-B10E-4D00-89D2-4E102C4F3537@yahoo.com> To: Kyle Evans X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: AC8FC78E75 X-Spamd-Result: default: False [-0.53 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; NEURAL_HAM_MEDIUM(-0.82)[-0.824,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_FROM(0.00)[yahoo.com]; NEURAL_HAM_LONG(-0.83)[-0.830,0]; NEURAL_SPAM_SHORT(0.94)[0.945,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[146.188.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; IP_SCORE(0.69)[ipnet: 66.163.184.0/21(1.96), asn: 36646(1.57), country: US(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 02:01:05 -0000 On 2018-Nov-11, at 17:43, Kyle Evans wrote: > On Sun, Nov 11, 2018 at 5:24 AM Mark Millard = wrote: >>=20 >> I attached with gdb in order to stop at the assert and look around. >>=20 >>=20 >>=20 >> The following is a backtrace with notes and prints mixed in: >>=20 >> (gdb) bt >> #0 thr_kill () at thr_kill.S:3 >> #1 0x000000006028a21f in __raise (s=3D6) at = /usr/src/lib/libc/gen/raise.c:52 >> #2 0x0000000060204949 in abort () at = /usr/src/lib/libc/stdlib/abort.c:67 >> #3 0x000000006027855a in __assert (func=3D, = file=3D, line=3D, failedexpr=3D) at /usr/src/lib/libc/gen/assert.c:51 >>=20 >> Note end=3D=3D37146624 below vs. start (37146624 will show up again = in later notes) >>=20 >> #4 0x0000000060036243 in page_set_flags (start=3D4143968256, = end=3D37146624, flags=3D9) at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-2cb0cdd/a= ccel/tcg/translate-all.c:2077 >>=20 >> Note start and len below: >>=20 >> #5 0x000000006003df2b in target_mmap (start=3D4143968256, = len=3D188145664, prot=3D, flags=3D, = fd=3D, offset=3D) >> at = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-2cb0cdd/b= sd-user/mmap.c:626 >>=20 >> (gdb) print/x start >> $5 =3D 0xf6fff000 >> (gdb) print/x len >> $6 =3D 0xb36e000 >>=20 >> Note start+len for the above (without wrapping): >>=20 >> (gdb) print/x (long long)start + (long long)len >> $10 =3D 0x10236d000 >> (gdb) print (long long)start + (long long)len >> $11 =3D 4332113920 >>=20 >> With wrapping: >>=20 >> (gdb) print/x start+len >> $8 =3D 0x236d000 >> (gdb) print start+len >> $9 =3D 37146624 >>=20 >> And there is end's value again. >>=20 >=20 > Hi, >=20 > This should be fixed as of ports r484702; please do try this and let > us know how it goes. I've updated ports to -r484783 and an amd64 -> armv7 poudriere-devel/qemu-user-static cross-build is in progress. devel/cmake completed fine, overall about 63 ports have. The 1 port failure is not tied to qemu-arm-static issues. It will be hours before lang/gcc8 would finish. There are somewhat over 70 ports to go overall. So far so good. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)