Skip to content

[macos] storage: diff fails when guest rootfs contains a FIFO #265

Closed

Description

@CharlieZiChen

Summary

On macOS HVF (a3s-box v3.2.5 / 2d5d7cb61c968d7f3dd852f42f48530066c3c03a), a3s-box diff fails when the guest writable layer contains a FIFO. A plain file change diffs successfully; adding only mkfifo is enough to trigger the failure.

Severity: P1 (core storage command fails)

Acceptance case: TC-STO-005

Local tracking: BUG-0002

Expected

a3s-box diff <box> succeeds and lists filesystem changes even when the diff set includes FIFO / common Linux metadata (hardlink, symlink, sparse, case pairs).

Actual

Error: Exec error: Guest rootfs archive failed: rootfs archive failed: paths in archives must be relative when setting path for 

Exit code 1 (same for running and stopped boxes in the original acceptance scenario).

Repro

export A3S_HOME="$(mktemp -d /private/var/tmp/a3s-bug0002.XXXXXX)"
# Use the v3.2.5 release binary; pull/load alpine:3.20 first if needed.
a3s-box --version   # expect 3.2.5
a3s-box info        # expect Hypervisor.framework / arm64

a3s-box run -d --name diff-fifo alpine:3.20 -- sleep 3600

# Baseline: plain file — PASS
a3s-box exec diff-fifo -- sh -ec 'echo hi >/tmp/x'
a3s-box diff diff-fifo
# expect: lines like "A /tmp/x", exit 0

# Trigger: FIFO only — FAIL
a3s-box exec diff-fifo -- sh -ec 'rm -f /tmp/x; mkdir -p /qa; mkfifo /qa/pipe'
a3s-box diff diff-fifo
echo "exit=$?"
# expect today: exit 1 + "paths in archives must be relative when setting path for "

# Control: metadata WITHOUT fifo — PASS
a3s-box exec diff-fifo -- sh -ec 'rm -rf /qa; mkdir -p /qa; cd /qa; printf U >File.txt; printf L >file.txt; ln File.txt hard; ln -s File.txt link; truncate -s 16777216 sparse'
a3s-box diff diff-fifo
echo "exit=$?"
# expect: exit 0

a3s-box rm -f diff-fifo

Repro rate: (isolated on 2026-09-08; also in full acceptance QA_RUN).

Environment

Item Value
OS macOS 15 (darwin 24) arm64
Backend Hypervisor.framework (HVF) / microvm
Binary release package a3s-box-v3.2.5-macos-arm64
Commit 2d5d7cb61c968d7f3dd852f42f48530066c3c03a
Image docker.io/library/alpine:3.20 (linux/arm64)
Proxy local HTTP proxy used for pulls only; repro itself is local

Please attach a3s-box info and the failing diff stderr when filing.

Notes

Guest rootfs archive path appears to emit an empty/absolute path for FIFO entries (…setting path for with nothing after for). Likely in guest rootfs archive / diff path handling for special files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions