Skip to content

firecracker: the handler-exit error carries the handler's log - #1785

Merged
nikhilunni merged 4 commits into
mainfrom
fix/handler-exit-carries-log
Nov 10, 2026
Merged

nikhilunni merged 4 commits into
mainfrom
fix/handler-exit-carries-log

Conversation

@nikhilunni

Copy link
Copy Markdown
Contributor

Summary

A post-copy restore whose uffd handler exits before the load fails with uffd handler exited before the load (exit status: 1). The reason is only in the handler's log in the jail directory, and a failed restore removes that directory.

The two-host teleport tests in the Firecracker root lane fail this way now and then, on different tests in different runs, and the CI log cannot say why. The error now ends with the tail of uffd-handler.log, so the next failure names its cause. This PR does not fix that failure.

Test plan

  • cargo fmt --check, cargo clippy --target aarch64-unknown-linux-musl -p engram-sandbox-firecracker -- -D warnings
  • CI Gate

🤖 Generated with Claude Code

https://claude.ai/code/session_01HNhpmz4QPYaVCE7tFna54D

nikhilunni and others added 4 commits November 10, 2026 07:22
A post-copy restore whose uffd handler exits before the load failed with
"uffd handler exited before the load (exit status: 1)". The reason is
only in the handler's log in the jail directory, which a failed restore
removes. The two-host teleport tests fail this way now and then, and the
CI log cannot say why.

The error now ends with the tail of `uffd-handler.log`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNhpmz4QPYaVCE7tFna54D
The kernel's partition scan reads the start of a new ublk device. On newer kernels it runs in a work item, so the read can arrive after the test's first guest read, and the source records it as read cold. The test then saw chunks [3, 0] where it expected [3]. The test now leaves the first chunk out of the comparison; chunks 1 and up still prove that the copy's stream is not recorded.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNhpmz4QPYaVCE7tFna54D
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNhpmz4QPYaVCE7tFna54D
@nikhilunni
nikhilunni merged commit a81222d into main Nov 10, 2026
28 checks passed
@nikhilunni
nikhilunni deleted the fix/handler-exit-carries-log branch November 10, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant