Skip to content

docs/knowledge: Read the exit watchdog's line in a quit hang - #4584

Merged
vpacher merged 1 commit into
masterfrom
docs/quit-hang-watchdog
Nov 10, 2026
Merged

vpacher merged 1 commit into
masterfrom
docs/quit-hang-watchdog

Conversation

@vpacher

@vpacher vpacher commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Refs #4525

What

Updates the knowledge concept Where a quit hang waits, from the last lines of the log. The concept stopped at Number of memory leaks. Since #4309, the exit watchdog adds a last line, and since #4560 that line names the library and the plugin that loaded it.

  • Line 7 in the list of shutdown lines: exit-watchdog: exit did not finish in 10 s ..., exit code 124, Linux and macOS.
  • The table has two rows for exit handlers: line 6 with the process still running (no watchdog: Windows, older builds), and line 7 with the name.
  • New section "Read the watchdog's name": what each owner text means, and where the name can mislead (a library loaded on a plugin thread while another module loads, a library that two modules share, a destructor that joins a thread that is itself stuck).
  • "Get the stacks": the watchdog ends the process after 10 s, so gdb must attach before that.

The index line is regenerated by knowledge_lint.py --fix.

Tests

Documentation only, so no RED → GREEN. uv run --script ci/knowledge_lint.py passes (13 files ok). Locally, ./lint fails only in the Linux AppImage script tests (test_appimage_build_script, test_appimage_stable_mtimes, test_assemble_appdir), which need GNU sed -z and Linux paths and do not run on macOS. This PR does not touch them.

🤖 Generated with Claude Code

The quit-hang concept stopped at "Number of memory leaks". Since #4309
the exit watchdog adds a last line, and since #4560 that line names the
library and the plugin that loaded it. Add it as line 7, say how to read
the name and where it can mislead, and that gdb must attach within the
watchdog's 10 s.

Refs #4525

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ci-Attestation: {"at":1794333181,"gate":"rust/all/fmt","host":"darwin-arm64","key":"","lane":"lint","parents":["edd24c57e13fc326fd79620d269ee3530dd548fe"],"secs":90,"stamp":"430982cd8ee5f2d77a15469a0b233205","tree":"ccfd658271982e6b830e48f1a9ecbbc301a7088a","v":1,"via":"run"}
@vpacher
vpacher added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit d8d4421 Nov 10, 2026
39 checks passed
@vpacher
vpacher deleted the docs/quit-hang-watchdog branch November 10, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant