Date: Sun, 11 Nov 2018 19:43:24 -0600 From: Kyle Evans <kevans@freebsd.org> To: marklmi@yahoo.com 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: <CACNAnaEtU1P_XMsgf-xRzd-vJuEaGTrvbSW=ZvxdLdqh9OjcYA@mail.gmail.com> In-Reply-To: <09E0609A-B10E-4D00-89D2-4E102C4F3537@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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 11, 2018 at 5:24 AM Mark Millard <marklmi@yahoo.com> wrote: > > I attached with gdb in order to stop at the assert and look around. > > > > The following is a backtrace with notes and prints mixed in: > > (gdb) bt > #0 thr_kill () at thr_kill.S:3 > #1 0x000000006028a21f in __raise (s=6) 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=<optimized out>, file=<optimized out>, line=<optimized out>, failedexpr=<optimized out>) at /usr/src/lib/libc/gen/assert.c:51 > > Note end==37146624 below vs. start (37146624 will show up again in later notes) > > #4 0x0000000060036243 in page_set_flags (start=4143968256, end=37146624, flags=9) at /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-2cb0cdd/accel/tcg/translate-all.c:2077 > > Note start and len below: > > #5 0x000000006003df2b in target_mmap (start=4143968256, len=188145664, prot=<optimized out>, flags=<optimized out>, fd=<optimized out>, offset=<optimized out>) > at /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-2cb0cdd/bsd-user/mmap.c:626 > > (gdb) print/x start > $5 = 0xf6fff000 > (gdb) print/x len > $6 = 0xb36e000 > > Note start+len for the above (without wrapping): > > (gdb) print/x (long long)start + (long long)len > $10 = 0x10236d000 > (gdb) print (long long)start + (long long)len > $11 = 4332113920 > > With wrapping: > > (gdb) print/x start+len > $8 = 0x236d000 > (gdb) print start+len > $9 = 37146624 > > And there is end's value again. > Hi, This should be fixed as of ports r484702; please do try this and let us know how it goes. Thanks, Kyle Evans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaEtU1P_XMsgf-xRzd-vJuEaGTrvbSW=ZvxdLdqh9OjcYA>