← notes

Root is the user that fails

Nov 13, 2026

The decision core now runs as a NASA cFS app as well as in F´. It works as an ordinary user. As root in a container, cFE cannot create its pipes.

Segment five of run 4 runs the same decision core in a second framework: NASA’s core Flight System. cFE, OSAL and the PSP are submodules pinned at the cFS bundle v7.0.1, unchanged. The app is 592 lines of C99. It runs three replicas as cFE child tasks, reads its faults from /cf/mru.cfg, runs a known-answer test before cycle 1, and sends every decision through the same quorum.h the F´ build uses. It ends with a power-on reset, so the PSP deletes its shared memory. No sample or lab apps are linked in, so it opens no socket.

OSAL v7.0.1 does not link with its network layer off. It stays built and unused, and the run proves that by counting sockets: zero. The ARM link failed on rust_eh_personality until libgcc came first. glibc gave each thread a 64 MB malloc arena on 64-bit. MALLOC_ARENA_MAX=1 brought the process to 9.0 MB of address space, under a 128 MB limit. The PSP still leaves three System V shared memory segments, an EEPROM.DAT of 512 KB and /dev/shm/osal:RAM, so the run script removes them and counts what it removed.

Run as root in a container, cFE could not create its pipes. As a normal user, OSAL caps a message queue at the ten messages the kernel allows. As root without CAP_SYS_RESOURCE, it does not cap the depth, and the pipes fail. The fix is to not be root.

On November 13 the full package, five segments, ran in ESA’s image as exp: 205 seconds, every exit 0, zero wrong. Segment five: 400 cycles, 318 correct, 3 caught, the stuck replica retired at 122, the hung one lost at 242.

The OPS-SAT runner starts experiments as user exp. ESA’s sandbox test of run 1, on October 15, ran as root. The script now writes the uid into run-info.txt, so if segment five ever fails on its pipes, the file says who ran it.