Fix super-unlikely race introduced in 236618061a445d2cb11e72 #9671

pull TheBlueMatt wants to merge 1 commits into bitcoin:master from TheBlueMatt:2017-02-fix-initnode-race changing 1 files +1 −1
  1. TheBlueMatt commented at 6:55 PM on February 2, 2017: contributor

    Once the CNode has been added to vNodes, it is possible that it is disconnected+deleted in the socket handler thread. However, after that we now call InitializeNode, which accesses the pnode.

    helgrind managed to tickle this case (somehow), but I suspect it requires in immensely braindead scheduler.

  2. Fix super-unlikely race introduced in 236618061a445d2cb11e72
    Once the CNode has been added to vNodes, it is possible that it is
    disconnected+deleted in the socket handler thread. However, after
    that we now call InitializeNode, which accesses the pnode.
    
    helgrind managed to tickle this case (somehow), but I suspect it
    requires in immensely braindead scheduler.
    885cfdd217
  3. MarcoFalke added this to the milestone 0.14.0 on Feb 2, 2017
  4. MarcoFalke added the label P2P on Feb 2, 2017
  5. dcousens approved
  6. sipa commented at 12:13 AM on February 4, 2017: member

    ACK 885cfdd2179a2aae733d0690f5a2ef23d181768e, seems to run fine with -fsanitizes.

  7. MarcoFalke commented at 1:13 AM on February 4, 2017: member

    utACK 885cfdd2179a2aae733d0690f5a2ef23d181768e

  8. TheBlueMatt cross-referenced this on Feb 4, 2017 from issue gui, wallet: random abort (segmentation fault) running master/HEAD by dooglus
  9. laanwj merged this on Feb 4, 2017
  10. laanwj closed this on Feb 4, 2017

  11. laanwj referenced this in commit 7821db30e1 on Feb 4, 2017
  12. TheBlueMatt cross-referenced this on Feb 4, 2017 from issue bitcoin-qt crashed in FinalizeNode() by dooglus
  13. codablock referenced this in commit 2cdafa0ca2 on Jan 21, 2018
  14. dagurval cross-referenced this on Jun 8, 2018 from issue More net cherries by dagurval
  15. andvgal referenced this in commit 6ee2ada9af on Jan 6, 2019
  16. CryptoCentric referenced this in commit df87cd4e79 on Feb 27, 2019
  17. furszy cross-referenced this on Dec 2, 2020 from issue [Backport] P2P open network connection, fix race condition by furszy
  18. random-zebra referenced this in commit a45e827c60 on Dec 2, 2020
  19. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC