Date: Sun, 11 Nov 2018 23:09:57 -0800 From: Mark Millard <marklmi@yahoo.com> To: Kyle Evans <kevans@freebsd.org> Cc: Sean Bruno <sbruno@freebsd.org>, ports-list freebsd <freebsd-ports@freebsd.org> 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 Message-ID: <31911BD3-3949-4F39-B938-289224B14DF2@yahoo.com> In-Reply-To: <570ED02C-1AC6-4333-B160-F2AC3963D868@yahoo.com> References: <783DE9B1-F1F5-45B5-8C3E-0B0D8BF4CC03@yahoo.com> <eeaa53e1-0d2c-f8d1-7d99-d82c7cffb9cb@freebsd.org> <C18EF212-7C23-4FFB-B0A0-49DAEF87705C@yahoo.com> <04F7FF99-96DE-4A51-B17F-7F2FEE667417@yahoo.com> <B680E29F-7E04-447B-8A17-D0C82B521998@yahoo.com> <CACNAnaGNUOEcSsTuZk-sb4976Y25kgQ87H8PGn9UAUGNUo97kw@mail.gmail.com> <AF2D0AA0-A1BD-4C5D-843A-3280D1BE1309@yahoo.com> <CACNAnaG%2Bqpi5BAwL1EHPB=17Vu2Uikb_4mAC67jtoLaS%2Bv4DXA@mail.gmail.com> <7F3A94B8-C6E9-42D5-A5DF-94BF910B1D0C@yahoo.com> <09E0609A-B10E-4D00-89D2-4E102C4F3537@yahoo.com> <CACNAnaEtU1P_XMsgf-xRzd-vJuEaGTrvbSW=ZvxdLdqh9OjcYA@mail.gmail.com> <570ED02C-1AC6-4333-B160-F2AC3963D868@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Nov-11, at 17:50, Mark Millard <marklmi at yahoo.com> wrote: > On 2018-Nov-11, at 17:43, Kyle Evans <kevans at freebsd.org> wrote: >=20 >> On Sun, Nov 11, 2018 at 5:24 AM Mark Millard <marklmi@yahoo.com> = 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<optimized out>, = file=3D<optimized out>, line=3D<optimized out>, failedexpr=3D<optimized = out>) 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<optimized out>, flags=3D<optimized out>, = fd=3D<optimized out>, offset=3D<optimized out>) >>> 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. >=20 > 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. >=20 > It will be hours before lang/gcc8 would finish. There > are somewhat over 70 ports to go overall. >=20 > So far so good. >=20 lang/gcc8 (full bootstrap) and the other about 70 ports built fine. (There was one example of the lld hang-up, for which I used a gdb attach/detach sequence to cause the emulated lld to continue.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31911BD3-3949-4F39-B938-289224B14DF2>