Re: Buildworld error: [_cleanworldtmp] Error code 6

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 13:27:45 UTC
On 31/10/24 10:06, David Wolfskill wrote:
> On Thu, Oct 31, 2024 at 09:50:11AM -0300, Renato Botelho wrote:
>> I do incremental builds using META_MODE on this system every ~ 2 weeks and
>> today I got an error when I tried to build world.  I considered to just
>> clean /usr/obj and move on but decided to report it here first for the case
>> anyone is interested.
>>
>> current system is running main-n273133-419249c1cac
> 
> What is the latest commit in your source tree?

commit d0f9b0bd19b (HEAD -> main, origin/main, origin/HEAD)
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
Date:   Wed Oct 30 21:19:48 2024

     malloc(9): assert wait flags.

     The check introduced in d3c11994e1e3 was bogus, combining a non-atomic
     “once” flag with an equally non-thread-safe ppsratecheck.  Rather than
     fix it, just assert what it attempts to enforce: that the malloc flags
     must include exactly one of M_WAITOK and M_NOWAIT.

     Fixes:          d3c11994e1e3de7445305abd0d41dce2b8d3e6dc
     Sponsored by:   Klara, Inc.
     Reviewed by:    olce, kevans
     Differential Revision:  https://reviews.freebsd.org/D47309

> I do similarly, but daily (modulo "issues").  The last few updates
> on my build machine were:
> 
> FreeBSD 15.0-CURRENT #14 main-n273306-f377a0c7dfa9: Tue Oct 29 10:56:31 UTC 2024     root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1500026 1500026
> 
> FreeBSD 15.0-CURRENT #15 main-n273322-22429a464a5f: Wed Oct 30 10:48:27 UTC 2024     root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1500026 1500026
> 
> FreeBSD 15.0-CURRENT #16 main-n273336-d0f9b0bd19bf: Thu Oct 31 10:54:10 UTC 2024     root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1500026 1500026
> 
> https://www.catwhisker.org/~david/FreeBSD/history/ has additional
> information (as well), in case anyone wants to do a reality check
> (for what passes for my reality, anyway :-} ).  (The above list was
> extracted from
> https://www.catwhisker.org/~david/FreeBSD/history/freebeast_uname_amd64.15.txt)
> 
> And it looks as if I built main-n273133-419249c1cacc on 23 October
> (FWIW).
> 
> Peace,
> david


-- 
Renato Botelho