Skip to content

Fix nil pointer dereference in BM25Strategy.watchLoop during session teardown#2334

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/docker-agent-github-issue-2326-status-854fa908
Apr 7, 2026
Merged

Fix nil pointer dereference in BM25Strategy.watchLoop during session teardown#2334
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/docker-agent-github-issue-2326-status-854fa908

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 7, 2026

Capture the watcher reference as a local variable at goroutine start to avoid racing with Close() which sets s.watcher = nil under watcherMu. Also add a nil guard before calling addPathToWatcher on Create events.

This matches the fix already applied to VectorStore.watchLoop.

Assisted-By: docker-agent

…teardown

Capture the watcher reference as a local variable at goroutine start to
avoid racing with Close() which sets s.watcher = nil under watcherMu.
Also add a nil guard before calling addPathToWatcher on Create events.

This matches the fix already applied to VectorStore.watchLoop.

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner April 7, 2026 07:52
@dgageot dgageot merged commit c43c6d8 into docker:main Apr 7, 2026
8 checks passed
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.

2 participants