Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: compile error due to rebase mistake between bitcoin#22937 and ipc/process #6199

Merged
merged 2 commits into from
Aug 12, 2024

Commits on Aug 12, 2024

  1. fix: compilation error due to rebase error between bitcoin#22937 and …

    …ipc/process
    kwvg authored and knst committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    aafded6 View commit details
    Browse the repository at this point in the history
  2. fix: lock ::cs_main before accessing `ChainstateManager::m_best_hea…

    …der`
    
    Avoid TSan-reported data race
    
    ```
    WARNING: ThreadSanitizer: data race (pid=360336)
      Write of size 8 at 0x7b5000002db8 by thread T15 (mutexes: write M0):
        #0 BlockManager::AddToBlockIndex(CBlockHeader const&, uint256 const&, CBlockIndex*&, BlockStatus) /src/dash/src/node/blockstorage.cpp:117:25 (dashd+0x44df7a) (BuildId: e27186c7ba08e897d376eb5779db9809baf7ad37)
        #1 ChainstateManager::AcceptBlockHeader(CBlockHeader const&, BlockValidationState&, CChainParams const&, CBlockIndex**) /src/dash/src/validation.cpp:3758:36 (dashd+0x83e45d) (BuildId: e27186c7ba08e897d376eb5779db9809baf7ad37)
        dashpay#2 CChainState::AcceptBlock(std::shared_ptr<CBlock const> const&, BlockValidationState&, CBlockIndex**, bool, FlatFilePos const*, bool*) /src/dash/src/validation.cpp:3812:37 (dashd+0x842848) (BuildId: e27186c7ba08e897d376eb5779db9809baf7ad37)
        [...]
      Previous read of size 8 at 0x7b5000002db8 by thread T12:
        #0 CDSNotificationInterface::UpdatedBlockTip(CBlockIndex const*, CBlockIndex const*, bool) /src/dash/src/dsnotificationinterface.cpp:82:42 (dashd+0x91e87e) (BuildId: e27186c7ba08e897d376eb5779db9809baf7ad37)
        #1 operator() /src/dash/src/validationinterface.cpp:199:79 (dashd+0x889f1e) (BuildId: e27186c7ba08e897d376eb5779db9809baf7ad37)
        dashpay#2 Iterate<(lambda at validationinterface.cpp:199:30)> /src/dash/src/validationinterface.cpp:88:17 (dashd+0x889f1e)
        [...]
    [...]
    SUMMARY: ThreadSanitizer: data race [...]
    ```
    kwvg authored and knst committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    540f687 View commit details
    Browse the repository at this point in the history