day10 now builds every package offline on all four platforms, matching obuilder; a use-after-free went away by building with OCaml 4.14; banning immutable let rec cycles breaks about 30% of opam-repository until 41 patches are applied; the Windows lazy-writer workaround held up in a controlled trial; and most machines are now patched for last month’s kernel CVE.
day10 #
Builds without network #
My first approach was to prefetch everything a build might need into each base image: sources, every system package, and any system dependencies, depexts, that might be requested. That got as far as working prototypes on Linux, FreeBSD and MSYS2, and using a patched opam for Cygwin, before I stopped. The issue is that the offline system packages would always be a retrospective view of the packages needed by opam-repository, so if a contributor adds a new conf-* package, the system package they need won’t be in the base because nobody knew to prefetch it. The idea of caching system packages was appealing, as it also addresses the mirror drift issue, where distributions, Arch in particular, end up with a stale package database pointing to URLs that no longer exist.
Only about 5% of package versions have depexts at all, so the design now is: a layer with depexts gets a short networked start which runs only day10-install --depexts-only, and then the build itself runs with no network; everything else builds entirely offline. Sources are staged on the host into the build’s opam-repository cache/ through archive-mirrors:; this includes the few git sources, which are fetched shallow and turned into a tarball with git archive, with submodules grafted in using git mktree and the commit time as the mtime so the bytes are reproducible. opam rejected a plain tar (Unknown archive type) because cache entries have no extension, so they are .tar.gz.
The new approach was tested on each platform: thyme (FreeBSD), navajo (Windows), m1-worker-04 (macOS), and my machine (Linux). The design is the same everywhere, but the mechanism differs: a networked jail followed by a vnet jail with only lo0 on FreeBSD; two container starts on the same snapshot on Windows; and two boots of the same disk clone on macOS.
A use-after-free and OCaml 4.14 #
Last week, day10-install --reinstall --with-test was crashing on doris and okypous with Fatal error: allocation failure during minor GC, but not on my machine with the identical binary. A core dump showed the GC promoting a Forward_tag block, a forced Lazy, whose field pointed 48 bytes into a string in the major heap holding a path under .opam-switch/build/. The GC read the bytes witch/bu as a block header and tried to allocate about 8x10^15 words.
day10-install had been built with OCaml 5.3.0. opam’s own releases are built with 4.14, so I tried that as an easy workaround: 6 out of 6 runs crashed with 5.3.0 and 3 out of 3 passed with 4.14.4. The root cause has not been investigated.
pin-depends and Windows build/exec #
A project’s pin-depends are now resolved on the host (mtelvers/day10#9): each git source is fetched one commit deep, its opam file is added to the repository with the URL rewritten to the resolved commit, and the source is staged like any other, so the build stays offline. This was tested on all four platforms.
On Windows, build and exec of a project directory had never been implemented. This has now been implemented using a bind mount of the project directory into the container. I acknowledge that Windows bind mounts have been problematic, but these were mostly with system packages, and that dune build would be fine on a bind mount. In limited testing, this has been fine. My test build with an empty cache took about 1,140 s on Cygwin and 1,280 s on MSYS2, and subsequent rebuilds take 22 s - 29 s.
I also noticed that day10 ci is unused except for a test case. OCaml-CI uses build, so that partially implemented function was removed.
Agreeing with obuilder #
Differences between day10 and obuilder this week have been:
x-ci-accept-failureslists opam-repo-ci’s platform names, such asfreebsd-15.1andmacos-homebrew. opam on FreeBSD reportsos-versionas1501000, andday10was matching against that. It now matches opam-repo-ci’s names. A scan of opam-repository found 70 distinct accept-failure strings in 509 opam files.- On #31282,
day10had 84 failures against obuilder’s 1. 38 were the accept-failures names. The other 46 wereconf-bison.2on CentOS: opam’sos-familythere isrhel, which conf-bison doesn’t list, and obuilder passed only becauseocaml/opam:centos-*already ships bison. 25 other packages still testos-family = "centos", which never matches. - #31290, merge-fmt, is the mirror image: it fails on obuilder’s alpine image because
diffis BusyBox, which prints unified diffs, and passes onday10because its base installs GNU diffutils. The package is missingconf-diffutils. I’ve promised to align the default package sets of the two systems. - ostap.0.6.1 failed only under
day10. The cause is that Dune 3.25.0 no longer puts the install area onOCAMLPATHfor actions (dune#16617), and obuilder masks it because it runs the tests with the package still installed.
macOS #
All four Apple Silicon Macs have now been updated to macOS 27.2.1 with OpenZFS 2.4.1p2.
Windows #
The FsDepends leak #
On Windows Server 2025, the per-volume lazy writer can leak a reference, causing every container volume that is removed to remain mounted until reboot. This week I ran a trial on two identical VMs, one treated with EnablePerVolumeLazyWriter=0 and one not.
The treated machines ran 416 builds without a jam. The untreated ones jammed after 10 and 14 builds, and kept jamming after each reboot: four jams in four segments.
The key prevents ReFS volumes from mounting at boot, so navajo’s day10 worker was moved to NTFS. I posted the results on Windows-Containers#663.
ltsc2025-3 hit an issue Could not resolve host: github.com as the scheduled task that writes containerd’s CNI config had raced the host network service at boot, leaving containers on a dead subnet. I’ve updated the script so it now waits for the network before writing the configuration.
Other CI work #
Banning immutable let rec cycles #
David asked how much of opam-repository would break with mkoconnor’s branch of OCaml 5.4.1, which rejects recursive definitions such as let rec x = 1 :: x. The first result was that dune itself fails to bootstrap as its fiber scheduler’s root context refers to itself. However, while this was interesting, it didn’t really show the impact of the change, as dune might be the only package which uses the feature.
With dune patched, 1,059 of 3,582 packages that build on 5.4.1 failed. Of those, only 22 were rejected directly; the rest failed through dependencies, mostly menhirLib (491) and lwt (395). The pattern is almost never a cyclic list. It’s a sentinel, root or self-pointer: menhirLib’s empty stack points to itself, and an lwt channel record contains itself.

Each round patches the packages rejected directly, then rebuilds everything
Next I ran this in a loop: each round ran day10 to quickly test the entirety of opam-repository, and Claude then fixed all the failing packages, usually by making the closing field mutable or using Obj.set_field, and then repeated. day10 reuses every unchanged layer, so a round took 36 minutes at first and 6 minutes by the end. Round 2 found some real cyclic lists (catala’s parenthesis colours, oskel’s spinner). Round 4 found two of Claude’s own patches had broken packages on both compilers. It converged after five rounds: 41 patches across 31 packages, 127 lines, on a branch. The single remaining failure asks for ocaml-base-compiler by name.
One EMFILE, 654 missing jobs #
On opam-repository, Fedora 44 x8664 OCaml 4.14 showed “not started” for both obuilder and day10. Every Linux build node depends on a weekly Docker.peek of its base image, and the peek for that image failed when the opam-repo-ci engine ran out of file descriptors: Unix.Unix_error(15, "pipe", ""). 15 is the position of EMFILE in OCaml’s Unix.error type, not errno 15. The failure was cached, so 654 variants across all PRs had no job. day10 doesn’t _need the peek result, but in the way I’ve patched day10 to run alongside obuilder in ocurrent, it is an unused input.
Smaller items #
- ocaml/opam#7229, adding CLI version 2.6, is merged.
- The Docker base images builder now builds images with OCaml 4.14.5 and adds images for openSUSE Leap 16.1 (#364).
- Both the Docker base image builder and OCaml-CI (#1085) had stopped building because
COPY --chown=opam --linkis now an error. That came from Dockerfile frontend 1.28.0 (buildkit #7134), picked up automatically through# syntax=docker/dockerfile:1, not from a Docker upgrade. Numeric1000:1000works. - OCaml-CI builds on OpenBSD 8.0 (#1084, obuilder#226), and the 7.6 to 7.9 images are gone. oregano’s capacity was measured at 10, 15 and 20: about 55, 75 and 70 jobs an hour, so it stays at 15.
- The Intel Macs are powered off.
- The Apple Silicon Macs are in a temporary location awaiting transit to Cambridge Datacenter.
Cambridge machines #
A fleet patch round #
The interim nftables filter for CVE-2026-98432 is coming off as machines move to fixed kernels. Rather than rebooting just to update the kernel, I took the opportunity to run a full apt full-upgrade across the board, one machine at a time. I also assessed each machine’s activity and found a few idle machines at Scaleway.
About 50 machines were done this week. A few notes:
- opam.ocaml.org Each server was booted into the new kernel once with
grub-rebootandpanic=30, leaving the old kernel as the default in case it didn’t come back. The first attempt failed before any reboot: the cloud image’s GRUB configuration discardedpanic=30. With that fixed, both servers came back in under 30 s. - Warm-reboot hangs. Four of six Dell R630s hung in firmware after a clean shutdown, as did fermat (SuperMicro) and doris (R6525), and toxis came back with no network link. Each needed a full power cycle, and two a BMC reset. The first hypothesis, old kernels after long uptime, was ruled out by doris, which was already on a current kernel. The second, the R630 model, was ruled out by fermat and doris. The BIOS versions are identical across the R630s. I’ve rebooted these machines hundreds of times without needing a power cycle, so it’s a bit of a mystery why that’s started happening.
- aello, a PostgreSQL server, was also on 20.04. It went to 22.04 and then 24.04, with PostgreSQL 14 to 16 done as a link-mode
pg_upgradeof about 18 TB in about 11 minutes. - doc, the nameserver for caelum.ci.dev, spent two minutes of every boot waiting for an uncabled network port, so I have applied a fix for that in netplan.
Ceph #
Six OSDs were at 85% full on a cluster, triggering a space warning. This comes from the balancer’s default upmap_max_deviation of 5. Setting it to 1 brought the OSDs from 62-85% to 72-77% and raised usable headroom from 47 TiB to 86 TiB.
daintree’s CephFS client was silently evicted three times in nine days, each time on a heavily written mount holding up to a million caps, with nothing logged except the eviction. I’ve increased the session_timeout to 120 s on daintree’s mounts and enabled recover_session=clean. Why daintree stops renewing is not known.
monteverde #
I couldn’t find anyone else online complaining about the issues with their PS1010, which raised the question that this was a software issue rather than a hardware one. Every NVMe command was logged: on the PS1010, 22 commands had a buffer ending exactly at 2^64, and all 22 were rejected with Data SGL Length Invalid; on the Samsung PM1743 in the same machine, 376 ended there, and none were rejected. The addresses come from the IOMMU’s per-CPU address caches; with 768 logical CPUs, they hold about 24 GiB of address space for 128 KiB buffers alone, so allocations spill out of the low 4 GiB window into the top of the 64-bit space.
I challenged Claude to write a script to reproduce the problem separate from anything else. Claude wrote a user-space VFIO reproducer which drives the drive directly. It failed on the first try, exactly as predicted: SGL writes ending at 2^64 are rejected; the same pages via PRP, or ending 128 KiB lower, succeed. Hopefully Dell will now arrange a firmware fix or a replacement drive.
Tessera #
The Greenland run for EPFL is complete for 2017, 2019, and 2023, including a refill of 114 shards for 2017, whose existing embeddings were only partially populated. A second, much smaller request for central Senegal was six shard-years and took two and a half hours.
Other #
inbox.ci.dev #
inbox.ci.dev, the caml-list archive, was running on Ubuntu 20.04, which has no fixed kernel. As part of the CVE work, it moved to a new 24.04 VM, and then to a Debian Trixie container image (664 MB, down from 1.13 GB). The old bullseye image can no longer be rebuilt because bullseye-backports has gone.
At the same time, I applied a stylesheet to make it look more like ocaml.org.
32-bit OCaml #
The nightly rebase of the 32-bit backends hit conflicts in runtime/power.S for several days, then a stray #endif from resolving them, then a missing #else that left PPC64’s caml_c_call_stack_args with no call in it, so ocamlc.opt crashed on startup. Since Wednesday, it has been green every day.