Re: Still seeing Failed assertion: "p[i] == 0" [ *** i386 chroot on amd64 can get the failure on main 16 too *** ] [failed without new kernel check detection]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Fri, 21 Nov 2025 18:29:36 UTC
I patched the vintage of /usr/src/ on amd64 that is for
the pkgbase vintage that I've been using on the test
machines.

# sysctl debug.vm_check_pg_zero=1
debug.vm_check_pg_zero: 0 -> 1

# env WITH_META_MODE= make -j10 buildworld
--- buildworld ---
. . .
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGBuiltin.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/PatternInit.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/SanitizerMetadata.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/SwiftCallingConv.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/TargetInfo.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/AArch64.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/AMDGPU.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/ARC.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/ARM.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/AVR.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/BPF.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/CSKY.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/Hexagon.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/Lanai.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/LoongArch.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/M68k.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/MSP430.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/Mips.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/NVPTX.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/PNaCl.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/PPC.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/RISCV.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/SPIR.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/Sparc.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/SystemZ.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/TCE.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/VE.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/WebAssembly.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/X86.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/Targets/XCore.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/VarBypassDetector.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CrossTU/CrossTranslationUnit.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Action.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Compilation.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Distro.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Driver.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/DriverOptions.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Job.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Multilib.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/MultilibBuilder.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/OptionUtils.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Phases.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/SanitizerArgs.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/Tool.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChain.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/AIX.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/AMDGPU.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/AMDGPUOpenMP.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/AVR.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/AArch64.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/ARM.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/CSKY.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/LoongArch.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/M68k.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/Mips.pico
<jemalloc>: /usr/src/contrib/jemalloc/include/jemalloc/internal/ehooks.h:170: Failed assertion: "p[i] == 0"
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/PPC.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/RISCV.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/Driver/ToolChains/Arch/Sparc.pico
Abort trap (core dumped)
*** [CodeGen/CGBuiltin.pico] Error code 134



I had also previously tested without enabling debug.vm_check_pg_zero
just to check if failures were still happening. It turns out that
for my current context that failed building the same .pico file:

Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGBuiltin.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGHLSLRuntime.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGLoopInfo.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGNonTrivialStruct.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGObjC.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGObjCGNU.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGObjCMac.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGObjCRuntime.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGOpenCLRuntime.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGOpenMPRuntime.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGOpenMPRuntimeGPU.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGPointerAuth.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGRecordLayoutBuilder.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGStmt.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGStmtOpenMP.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGVTT.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CGVTables.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenAction.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenFunction.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenModule.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenPGO.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenTBAA.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CodeGenTypes.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/ConstantInitBuilder.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/CoverageMappingGen.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/ItaniumCXXABI.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/LinkInModulesPass.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/MacroPPCallbacks.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/MicrosoftCXXABI.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/ModuleBuilder.pico
Building /usr/obj/usr/src/i386.i386/lib/clang/libclang/CodeGen/ObjectFilePCHContainerOperations.pico
<jemalloc>: /usr/src/contrib/jemalloc/include/jemalloc/internal/ehooks.h:170: Failed assertion: "p[i] == 0"
Abort trap (core dumped)
*** [CodeGen/CGBuiltin.pico] Error code 134


===
Mark Millard
marklmi at yahoo.com