Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2025 19:04:12 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Michal Meloun <mmel@freebsd.org>, Warner Losh <imp@bsdimp.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Still seeing Failed assertion: "p[i] == 0" on armv7 buildworld
Message-ID:  <EB6FFF67-8335-41E7-AED0-C0A185B281B9@yahoo.com>
In-Reply-To: <aRqChu2pZKrRl2Mx@kib.kiev.ua>
References:  <CANCZdfrJ8rph_rkT3Mk-sNYKNspoV15SvHWLsahzS0HnULi4ww@mail.gmail.com> <aO068RrAehdiHOoZ@www.zefox.net> <aRUJPryA4Vmu8dDD@www.zefox.net> <4957be52-e57f-4f5f-9626-d0f706480fe1@FreeBSD.org> <aRalt0YwsjV_mvMq@www.zefox.net> <87ldk9f4tt.wl-herbert@gojira.at> <CANCZdfrSaJ7snshhiV2r%2BEX_sazhJ-HFAK0e=q%2B-MOmP=uLKqg@mail.gmail.com> <aRnxOtZ8W2g6ZkVF@www.zefox.net> <CANCZdfqTZ311DGEQmH0FLKrh8csN-P=qwUt=RXGSTrehUfZi3g@mail.gmail.com> <0a93ab5f-3fdf-45a0-8b32-2df5ef4ad60a@FreeBSD.org> <aRqChu2pZKrRl2Mx@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

On Nov 16, 2025, at 18:03, Konstantin Belousov <kostikbel@gmail.com> wrote:

> On Sun, Nov 16, 2025 at 10:11:15PM +0100, Michal Meloun wrote:
>> 
>> 
>> On 16.11.2025 18:51, Warner Losh wrote:
>>> Maybe try main with the following patch. Adrian noticed the TLS
>>> mismatch. I don't think it will matter, but TLS thread model stuff
>>> always gives me a big headache. If the following fails to apply, just
>>> copy the JEMALLOC_TLS_MODEL line from i386 to arm. The default changed
>>> elsewhere, but this wasn't updated here.
>>> 
>>> Warner
>> 
>> Unfortunately, that doesn't help. I'm out of ideas on how to debug this, all
>> of my attempts have failed.
>> 
>> The problem only occurs when Clang compiles a larger project and is
>> intermediate. Attempt to compile the clang generated reproducer is always
>> successful.
>> It's clear that the parallelism introduced by make plays a significant role.
>> But the system never reached an OOM condition before failure.
> 
> Is the problem reproducable on armv7 userspace running on arm64 kernel


Yes, I've replicated the problem on a Windows Dev Kit 2023 in an
armv7 chroot with the system boot's having hw.physmem=2G via
/boot/loader.conf and the SWAP space sets to 3.5 GiBytes.
"env META_MODE= make -j8 buildworld" was executed in the chroot
until it failed with the assert Bob P. has been getting.

The aarch64 system was an installation of an official pkgbase
distribution, not a personal build. Same for the world in the
chroot. All main [so: 16 at this point].

Absent the memory pressure from the small hw.physmem, I did not
get the failure.


I also tried experiments with aarch64 doing an armv7 buildworld
with some small sizes for hw.physmem . I got no failures. So far,
only armv7 has been shown to have the issue.
 

> , or only
> on native armv7 host?

The armv7 kernel does not need to be involved at all: just
the armv7 world.


===
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EB6FFF67-8335-41E7-AED0-C0A185B281B9>