In libarchive#3816, Pratik Farkase had already narrowed the suspect down to test_option_c, which packs a 10-byte file (1234567890), a symlink, and an empty directory into the legacy ASCII odc cpio format. An odc header only has six octal digits for an inode number (a ceiling of 262,143), whereas ext4 routinely assigns larger 32-bit inodes. Oversized inodes had tripped up a sibling cpio test before.
To capture a failing archive we could open ourselves, we ran Yocto’s packaged test suite for libarchive 3.8.10 in a loop on ext4 under ARM64 QEMU. Runs 1 through 102 passed. Run 103 failed with the same three-error count as Yocto and left the 512-byte archive behind. On ext4, our 10-byte file did have inode 327,697, and the symlink and directory were over 262,143 as well, yet opening the 512 bytes exonerated the inode logic right away: libarchive had cleanly remapped the three entries to synthetic serials 1, 2, and 3.
All three failures came instead from t <= now in cpio/test/test_option_c.c. Right after creating the three filesystem entries, the test sampled the wall clock into now and rejected any archive header with a newer modification time. On run 103, both ext4 and the archive recorded 16:18:45 across all three entries. Instrumenting the test to print both sides caught the one-second tick on the next failure:
/* Diagnostic run on ext4 (qemuarm64):
* test clock: now = 16:26:32
* ext4 & odc: t = 16:26:33 (file, symlink, and directory)
*/
- assert(t <= now); /* File wasn't created in future. */
+ assert(t <= now + 1);
Alejandro Perez had already given the newer newc format test that same one-second allowance. We submitted the matching change for odc in libarchive#3869 and ran 64 passes on ext4 (32 with ordinary inodes and 32 verified above 262,143, all 80 checks passing on each run). That settled why a valid archive failed our local runs; whether Yocto’s autobuilder hit the exact same clock tick still awaits the per-line assertions from its temporary directory on the next failure.