SQLite SessionDB connection leak on exception paths
NousResearch/hermes-agent · cluster 83226 · agent
Data as of
Nothing open on GitHub. Fix merged in #86667. Check it covers your case.
The short answer
- Known?
- Yes. 6 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #86667. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #86667. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These members concern a file descriptor leak where SessionDB SQLite connections are not closed when exceptions occur, potentially causing EMFILE crashes. The group includes a bug report and related fix attempts addressing the same exception-path cleanup issue.
Open issues0
Open PRs0
Fixes on record
-
#86667 fix(state): close leaked SessionDB connections on exception paths (salvage #83237 + #83620 + #72822)
files:
agent/auxiliary_client.py,agent/trace_upload.py,cli.py,cron/scheduler.py,gateway/platforms/api_server.py,gateway/shutdown_flush.py,gateway/slash_commands.py,hermes_cli/main.py,hermes_cli/sessions_cmd.py,hermes_state.py,mcp_serve.py,plugins/memory/retaindb/__init__.py,run_agent.py,tests/agent/test_trace_upload.py,tests/cli/test_cli_insights_command.py,tests/cron/test_sessiondb_init_hang.py,tests/gateway/test_platform_reconnect_fd_leak.py,tests/gateway/test_shutdown_flush.py,tests/plugins/memory/test_retaindb_provider.py,tests/run_agent/test_async_httpx_del_neuter.py(+9 more) -
#86691 fix: close leaked SessionDB connections on exception paths (#83226)
files:
gateway/slash_commands.py,hermes_cli/sessions_cmd.py,hermes_state.py
3 PRs closed without merging
From the close comments: merged via another change 2 · duplicate 1
-
#83237 fix: close leaked SessionDB connections on exception paths (#83226) · merged via another change →
#86691,#83226 -
#83397 [Bug] SQLite file descriptor leak: close SessionDB connections on exception paths · duplicate →
#83226,#83237,#83620 -
#83620 fix(state): close leaked SessionDB connections on exception paths · merged via another change →
#86667,#72822,#72782
Closed issues · 1
- Closed#83226SQLite file descriptor leak — SessionDB connections not closed on exception paths (EMFILE crash)
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.53: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the Lab