Skip to content

interfaces: MinerImpl::chainman(): Assertion 'm_node.chainman' failed. #35845

Open

Description

@dergoegge

The following assertion may fail during shutdown:

node/interfaces.cpp:1057 ChainstateManager &node::(anonymous namespace)::MinerImpl::chainman(): Assertion `m_node.chainman' failed.

Debug logs for the node that hit the assertion as well as the full test logs can be found here.

This was found with a test running on Antithesis (see this gist for context on how we use it).

Activity

  1. fanquake commented on Jul 30, 2026

    @fanquake
    Member
  2. dergoegge commented on Jul 30, 2026

    @dergoegge
    MemberAuthor

    This only started failing a couple days ago, so likely a new issue from a ~recent PR.

  3. added this to the 32.0 milestone on Jul 30, 2026
  4. ryanofsky commented on Jul 30, 2026

    @ryanofsky
    Contributor

    This bug looks like the one reported and described in #33387 (comment).

    I think it is probably not a new issue. Or at least I don't see any recent Bitcoin core changes that should cause it to happen more, so I wonder if this started failing due to some expansion of antithesis test coverage?

    Unfortunately it doesn't look like the fix suggested in the other issue is enough to fix this crash because it only waits for about-to-be executed requests to finish, not currently executing requests. This crash looks like the latter because of request #46 canceled while executing in the log. (IIRC the suggested diff prevents crashes when requests are not executing because Cap'nProto destroys Proxy server objects in that case, and the ProxyServerBase destructor calls addAsyncCleanup to delete the server objects, and then disconnectIncoming waits for a final async cleanup function to execute. But disconnectIncoming won't wait for existing requests to finish because ProxyServer objects won't be destroyed while requests are executing so their cleanups will not be queued). One possible fix is ryanofsky@116c3a8 (branch) but I think other approaches might be possible hooking different capnproto events to determine when calls have really finished.

  5. removed this from the 32.0 milestone on Jul 30, 2026
  6. 21 remaining items

  7. added 3 commits that reference this issue on Dec 2, 2026
    bdafcba
    a389fed
    6e11cc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions