In this article
Map the fault to the backing object and its size history before attributing SIGBUS to model or GPU capacity.
A worker crashes with SIGBUS while touching memory-mapped weights. It is tempting to label every large-model crash as insufficient GPU memory, but an access beyond the mapped file’s current end is a documented mmap signal condition. Investigate the backing object’s lifetime before changing device allocation or model precision.
Preserve signal and address
Record the actual signal, fault address and relevant mapping metadata through authorized crash diagnostics. Locate the address within the process mapping and identify its file offset. A runtime exception mentioning allocation is not interchangeable with a kernel-delivered SIGBUS. Avoid collecting private request buffers when a restricted mapping record is sufficient to explain the faulting range.
Compare the backing file size
Relate the mapped offset and accessed page to the backing file’s observed size. A successful mapping call does not guarantee that every future access is backed by valid file contents. Concurrent truncation can remove data after startup. Preserve file identity and update timing; inspecting only the current pathname may describe a replacement object rather than the mapped one.
Reconstruct artifact publication
Look for download, extraction or cleanup tools that rewrite an active weight file in place. A read-only mapping protects the consumer’s access permissions, not the producer’s ability to truncate its file. File size checks at initial open do not protect later accesses against another writer. Correlate the writer’s operation with the fault instead of assuming a persistent storage device failure.
Keep alternative causes open
SIGBUS has causes beyond this specific EOF scenario, including platform and backing-store failures. Read the available signal details, filesystem errors and mapping type. Do not declare truncation proven solely because it is plausible. A different signal or an unrelated address requires a different investigation, and an accelerator out-of-memory error belongs to its own runtime evidence.
Reproduce with synthetic data
In an isolated process, map a harmless test file and deliberately shorten that same object before accessing the removed range. Contrast with replacing a pathname while keeping the old object intact. Acceptance demonstrates the file-lifetime mechanism and supports an immutable publication design. It does not authorize modifying active weights or prove that every observed SIGBUS has the same cause.
Primary references
Related reading: OS page cache and cold model loading: what to record; Reproducible inference stacks: preserving a GPU pilot’s result.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.