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
proc test fails in debug builds: u32::MAX as i32 gives -1 and rustix asserts on negative pids #179
Fails only in debug builds on both arm64 Linux hosts. Release passes, which is why CI (release) does not show it.
Cause: the test passes u32::MAX as a pid. Casting it with as i32 gives -1, and rustix's Pid::from_raw has a debug_assert against negative values.
Suggested fix: convert pids with a checked conversion (negative or out-of-range values return an error or are treated as no such process), so debug and release behave the same. Add a debug-profile test.
Activity
fix: route shell_exited pid through checked_pid (#179)
fix: route shell_exited pid through checked_pid (#179) (#182)