You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e67fc75
Browse filesBrowse the repository at this point in the historyBrowse files
sandbox: remove the VM directories that terminated runs left
A `sandbox run` or a cold `nvx run` that is terminated, as when a
supervisor ends `nvx.exe`, cannot remove its temporary VM directory,
`nvx-sandbox-run-` or `nvx-run-` and 32 hexadecimal digits in the
temporary directory, which then stays behind with OpenVMM's log
(#1910, case 1). Only another process can remove it, and
only once it is sure that no run or OpenVMM still uses it.
On Windows, where a run's OpenVMM now ends with the run, a run first
removes the directories of the user's earlier runs that hold nothing
but NVX's files and whose log no process holds open any longer: an
open of the log that shares nothing succeeds only once both the run,
which now keeps a handle of its log until it returns, and its
OpenVMM, which holds the log as its standard output until it exits,
are gone. It leaves any other directory, such as one without a log,
one that holds another file, or one that is not private. A run whose
directory another run removed first, in the moment after it released
its log, takes the directory for removed. Other hosts keep their
behavior, since a terminated run leaves its OpenVMM running there.
Evidence on Windows 11 with WHP: after `nvx.exe` was killed during
`sandbox run`, `%TEMP%\nvx-sandbox-run-805fa5be...` held its log; the
next run removes such a directory.
Tests: the removal takes only the directories that runs abandoned,
and a `sandbox run` removes the directory that a killed run left.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments