2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-11-30 06:12:16 +00:00
Daniel Hilst 429d993d54 test(xcat-dep): nothing shows that a dead owner's workers still hold the lock
The ownership identity is one process. What a lock protects outlives it: a
build wrapper starts each command in its OWN process group, so SIGKILL on
the wrapper leaves that group running. An owner proven dead therefore says
nothing about the work it started, and recovery admits a second writer. No
check covered it, because every holder the existing checks kill has no
worker under it.

attach, detach and live_workers arrive here with the checks that drive
them. A caller records each process group it starts, and a group is gone
only when kill(0, -pgid) answers ESRCH, which is the test the build
wrapper's own cancellation path already uses before it releases.

BOTH halves are asserted, and the second is the one that keeps the first
honest: a lock that recovers nothing at all satisfies "the second build
stays blocked" perfectly. So the worker exits and the same lock must then
be recovered.

Three more checks pin what "the group" means. A group outlives its leader,
because children inherit it, so a check reaps the leader and asserts the
group still counts as live. detach must refuse while any process is in the
group, which makes the retention a property of what is on disk rather than
of which call site remembered to run. And an exclusive claim on the root
does not override a live group: the claim asserts no build is running, and
a live group is evidence one is.

Against the unfixed predicate 8 of the 75 checks fail.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-22 14:42:17 -03:00
2013-05-29 14:58:44 +00:00
2008-10-13 15:50:23 +00:00
2011-11-08 18:33:23 +00:00
2009-07-08 18:55:52 +00:00
2020-01-06 16:34:55 -05:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2008-04-10 19:42:20 +00:00
2011-09-21 19:13:13 +00:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2022-09-26 16:20:45 +02:00
2018-11-29 05:44:55 -05:00
2018-11-23 15:20:55 +08:00
2009-04-24 20:17:23 +00:00
2016-12-12 13:44:39 -05:00
S
Description
No description provided
245 MiB
Languages
Perl 79.3%
JavaScript 6.3%
C 3.9%
Shell 3.1%
SQLPL 2%
Other 5.2%