bitcoin / bitcoin/bitcoin

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

Open
#35,845 3 comments 1 reaction 0 assignees View on GitHub
IPC
Dominant language
C++
Stars
90.2k
Forks
39.4k
Avg merge
3d 8h
Merged PRs (30d)
88

Description

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](https://drive.google.com/file/d/1HWiL9h0ZjapdesjZix1UpOq_RME9jhiT/view).

_This was found with a test running on [Antithesis](https://antithesis.com/) (see [this gist](https://gist.github.com/dergoegge/2f66365264f316b5ca60ec7565d06d74) for context on how we use it)._

Contributor guide

Open the contributing guide

Research direction

Start at node/interfaces.cpp:1057, where MinerImpl::chainman() asserts during shutdown, then review the shutdown-related logs and full test logs linked in the issue. Trace the shutdown sequence to identify why m_node.chainman is unavailable; done means the assertion no longer occurs during shutdown and the relevant test still passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.