Skip to content

p2p_getaddr_caching.py failure in TSan CI #28133

Closed

Description

@jonatack

https://cirrus-ci.com/task/5471865133596672?logs=ci#L3981

 test  2023-07-22T19:16:17.696000Z TestFramework (ERROR): Assertion failed 
                                   Traceback (most recent call last):
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 131, in main
                                       self.run_test()
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/p2p_getaddr_caching.py", line 74, in run_test
                                       addr_receiver_onion1 = self.nodes[0].add_p2p_connection(AddrReceiver(), dstport=self.onion_port1)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_node.py", line 652, in add_p2p_connection
                                       assert_equal(len(info), 1)
                                     File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 57, in assert_equal
                                       raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
                                   AssertionError: not(2 == 1)
 test  2023-07-22T19:16:17.697000Z TestFramework (DEBUG): Closing down network thread 
 test  2023-07-22T19:16:17.747000Z TestFramework (INFO): Stopping nodes 
 test  2023-07-22T19:16:17.748000Z TestFramework.node0 (DEBUG): Stopping node 

Is there an existing issue for this?

  • I have searched the existing issues

Activity

  1. maflcko commented on Jul 24, 2023

    @maflcko
    Member
  2. mzumsande commented on Jul 25, 2023

    @mzumsande
    Contributor

    See #28144 for a fix.

  3. vasild commented on Jul 25, 2023

    @vasild
    Contributor

    It is good to put asserts that can never the triggered because sometimes they are.

  4. locked and limited conversation to collaborators on Jul 31, 2024
  5. added a commit that references this issue on Jul 27, 2025
    ff7a2ee
  6. 9 remaining items

  7. added 4 commits that reference this issue on Sep 10, 2026
    508ffd1
    fd3ff52
    a82396f
    270ddaf
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions