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
core: verified group stop accepts a zombie leader whose threads still exit #320
stopProcessGroupVerified in packages/core/src/proc.ts treats the group as gone once the leader is a zombie. readProcessStartTicks returns undefined for state Z, and listLiveProcesses skips Z entries, so processGroupGone passes. A multi-threaded leader can be Z while another thread still exits. Under load, a Node child was Z with more than one thread in up to 24 of 30 trials, for up to 11 ms, and up to 143 ms with a large heap.
PR #319 fixes this for Xvfb startup rollback only, by waiting for the owned child's exit event. Session teardown in stopXvfb and the Chrome group stop have no owned child to wait on, so they can still report a stopped group while a thread is alive.
Decide how to treat a Z leader with live threads, for example by reading num_threads from /proc/<pid>/stat
Keep tests that fake a zombie by rewriting process state working, or adapt them
Apply the rule to session teardown and the Chrome group stop
Test: a verified stop does not return while a Z leader still has a live thread
Activity