Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/hyperlight_host/src/mem/shared_mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2800,7 +2800,7 @@ mod tests {

/// Returns true if `status` indicates the process died from a
/// memory access fault (SIGSEGV on unix, STATUS_ACCESS_VIOLATION
/// on Windows).
/// (or 0xDEAD) on Windows).
fn killed_by_access_violation(status: &std::process::ExitStatus) -> bool {
#[cfg(unix)]
{
Expand All @@ -2810,7 +2810,8 @@ mod tests {
#[cfg(windows)]
{
use windows::Win32::Foundation::STATUS_ACCESS_VIOLATION;
status.code() == Some(STATUS_ACCESS_VIOLATION.0)
// See https://github.com/hyperlight-dev/hyperlight/issues/1507
status.code() == Some(STATUS_ACCESS_VIOLATION.0) || status.code() == Some(0xDEAD)
}
}
}
Expand Down
Loading