Skip to content

workloads/cln: patch coverage build to break deadlock - #258

Open
morehouse wants to merge 1 commit into
masterfrom
cln_coverage_deadlock
Open

morehouse wants to merge 1 commit into
masterfrom
cln_coverage_deadlock

Conversation

@morehouse

Copy link
Copy Markdown
Collaborator

It turns out that removing the SIGKILL from lightningd/subd.c can cause CLN to deadlock on shutdown, which holds up coverage reporting. Add the SIGKILL back in, but first attempt to gracefully shutdown by closing the subdaemon socket and waiting 5s for it. The socket close handles most of the deadlock cases while preserving coverage data. The fallback SIGKILL causes some coverage data to be lost but prevents coverage runs from deadlocking forever.

It turns out that removing the SIGKILL from lightningd/subd.c can cause
CLN to deadlock on shutdown, which holds up coverage reporting.  Add the
SIGKILL back in, but first attempt to gracefully shutdown by closing the
subdaemon socket and waiting 5s for it.  The socket close handles most
of the deadlock cases while preserving coverage data.  The fallback
SIGKILL causes some coverage data to be lost but prevents coverage runs
from deadlocking forever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant