test: p2p_message_capture.py fails with GCC 13-15 & undefined sanitizer #32016

issue fanquake openend this issue on March 7, 2025
  1. fanquake commented at 9:59 am on March 7, 2025: member

    Using Fedora 41:

    0# gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
    1
    2dnf install git cmake gcc-c++ make python3 libevent-devel boost-devel sqlite-devel zeromq-devel systemtap-sdt-devel ccache
    3git clone https://github.com/bitcoin/bitcoin
    4cd bitcoin
    5cmake -B build -DSANITIZERS=undefined
    6cmake --build build
    7./build/test/functional/test_runner.py p2p_message_capture.py
    
     0./build/test/functional/test_runner.py p2p_message_capture.py
     1<snip>
     2stdout:
     32025-06-24T13:21:52.543212Z TestFramework (INFO): PRNG seed is: 7493633970328004406
     42025-06-24T13:21:52.545101Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250624_132152/p2p_message_capture_0
     52025-06-24T13:21:52.970276Z TestFramework (INFO): Stopping nodes
     6
     7
     8stderr:
     9Traceback (most recent call last):
    10  File "/root/bitcoin/build/test/functional/p2p_message_capture.py", line 72, in <module>
    11    MessageCaptureTest(__file__).main()
    12    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    13  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 214, in main
    14    exit_code = self.shutdown()
    15  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 376, in shutdown
    16    self.stop_nodes()
    17    ~~~~~~~~~~~~~~~^^
    18  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 625, in stop_nodes
    19    node.wait_until_stopped()
    20    ~~~~~~~~~~~~~~~~~~~~~~~^^
    21  File "/root/bitcoin/test/functional/test_framework/test_node.py", line 460, in wait_until_stopped
    22    self.wait_until(lambda: self.is_node_stopped(**kwargs), timeout=timeout)
    23    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    24  File "/root/bitcoin/test/functional/test_framework/test_node.py", line 862, in wait_until
    25    return wait_until_helper_internal(test_function, timeout=timeout, timeout_factor=self.timeout_factor, check_interval=check_interval)
    26  File "/root/bitcoin/test/functional/test_framework/util.py", line 314, in wait_until_helper_internal
    27    if predicate():
    28       ~~~~~~~~~^^
    29  File "/root/bitcoin/test/functional/test_framework/test_node.py", line 460, in <lambda>
    30    self.wait_until(lambda: self.is_node_stopped(**kwargs), timeout=timeout)
    31                            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
    32  File "/root/bitcoin/test/functional/test_framework/test_node.py", line 445, in is_node_stopped
    33    raise AssertionError("Unexpected stderr {} != {}".format(stderr, expected_stderr))
    34AssertionError: Unexpected stderr /root/bitcoin/src/streams.cpp:85:24: runtime error: null pointer passed as argument 1, which is declared to never be null != 
    35[node 0] Cleaning up leftover process
    
  2. dergoegge commented at 1:27 pm on March 7, 2025: member
  3. instagibbs commented at 7:36 pm on March 27, 2025: member
    I’m seeing this on 13.3.0 fwiw
  4. maflcko added the label Upstream on Mar 27, 2025
  5. maflcko commented at 9:07 pm on March 27, 2025: member

    Maybe related: #28761

    Yeah, it is the same one. It was fixed upstream in the standard as of this year, see https://www.open-std.org/JTC1/SC22/WG14/www/docs/n3466.pdf

  6. fanquake renamed this:
    test: `p2p_message_capture.py` fails with GCC 14 & undefined sanitizer
    test: `p2p_message_capture.py` fails with GCC 13-15 & undefined sanitizer
    on Jun 24, 2025

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: 2025-07-09 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me