Skip to content

dash-spv: stop() can return while detached client tasks still hold the storage lock #1171

Closed

Description

@ZocoLini

The sync loop spawns handle_fork and stop_failed as detached tasks (client/sync_coordinator.rs), each holding a client clone and with it the storage and its lock file. stop() doesn't wait for them, so it can return while they still hold the lock (dashpay/platform#5381).

Fix: track them (e.g. a JoinSet) and join them in stop() after releasing sync_loop.

Activity

  1. self-assigned this
    on Oct 14, 2026
  2. added 3 commits that reference this issue on Oct 15, 2026
    897f822
    535379a
    21fdc7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions