Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2018 14:30:16 -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), function page_set_flags, file . . . accel/tcg/translate-all.c, line 2077
Message-ID:  <AF2D0AA0-A1BD-4C5D-843A-3280D1BE1309@yahoo.com>
In-Reply-To: <CACNAnaGNUOEcSsTuZk-sb4976Y25kgQ87H8PGn9UAUGNUo97kw@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Nov-10, at 12:28, Kyle Evans <kevans at freebsd.org> wrote:

> On Sat, Nov 10, 2018 at 11:38 AM Mark Millard via freebsd-ports
> <freebsd-ports@freebsd.org> wrote:
>>=20
>> Having actually installed the reverted code fist ( -r438807 ),
>> cmake's package stage is now well past were it was failing.
>>=20
>> So it is not the pkg vintage that matters: it is the qemu-sbruno
>> vintage that matters.
>>=20
>> (gcc8 getting that far is hours away: full bootstrap, so mostly
>> emulated.)
>>=20
>=20
> I find the assertion you've reported fairly bizarre, since all of the
> page_set_flags invocations we would've touched are generally of the
> form `page_set_flags(start, start + len, ...)` -- I'm working on
> reproducing locally, though.

Looking at the overall sources for the two versions ( as seen via
-r483807 and -r484565 ) I find a possibly-significant changed file:

# diff -u =
/wrkdirs/usr/ports/emulators/qemu-user-static/*work/qemu-bsd-user-*/bsd-us=
er/mmap.c | more
--- =
/wrkdirs/usr/ports/emulators/qemu-user-static/483807-work/qemu-bsd-user-49=
5fb3a/bsd-user/mmap.c     2018-05-25 07:28:13.000000000 -0700
+++ =
/wrkdirs/usr/ports/emulators/qemu-user-static/484565-work/qemu-bsd-user-2c=
b0cdd/bsd-user/mmap.c     2018-11-09 09:27:18.000000000 -0800

(I'll not list much of the differences here.)

It includes things like:

-static abi_ulong mmap_find_vma_reserved(abi_ulong start, abi_ulong =
size)
+static abi_ulong mmap_find_vma_reserved(abi_ulong start, abi_ulong =
size, abi_ulong alignment)
. . .
-abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
+static abi_ulong mmap_find_vma_aligned(abi_ulong start, abi_ulong size, =
abi_ulong alignment)
. . .
+abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
+{
+    return mmap_find_vma_aligned(start, size, 0);
+}
+

and changes inside:

 abi_long target_mmap(abi_ulong start, abi_ulong len, int prot,
                      int flags, int fd, off_t offset)


This looks like it might change what address ranges are used.
(But I do not claim familiarity with the code or its use.)

=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?AF2D0AA0-A1BD-4C5D-843A-3280D1BE1309>