test: rpc_bind.py –ipv4 fails when run on s390x or arm in debian #17765

issue maflcko openend this issue on December 17, 2019
  1. maflcko commented at 9:02 pm on December 17, 2019: member

    Commit fa52a2c7b81817694c3aeddb7f6909334b8c9132

    Steps to reproduce:

    0FILE_ENV="./ci/test/00_setup_env_arm.sh" MAKEJOBS="-j9" ./ci/test_run_all.sh
    
     0 node0 2019-12-17T20:54:35.953253Z [] ThreadRPCServer method=getblockcount user=__cookie__ 
     1 test  2019-12-17T20:54:35.959000Z TestFramework.node0 (DEBUG): RPC successfully started 
     2 test  2019-12-17T20:54:35.966000Z TestFramework (ERROR): Assertion failed 
     3                                   Traceback (most recent call last):
     4                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/test_framework/test_framework.py", line 112, in main
     5                                       self.run_test()
     6                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 89, in run_test
     7                                       self._run_loopback_tests()
     8                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 97, in _run_loopback_tests
     9                                       [('127.0.0.1', self.defaultport)])
    10                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 43, in run_bind_test
    11                                       assert_equal(set(get_bind_addrs(pid)), set(expected))
    12                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/test_framework/util.py", line 46, in assert_equal
    13                                       raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    14                                   AssertionError: not(set() == {('7f000001', 16456)})
    
  2. maflcko added the label Bug on Dec 17, 2019
  3. maflcko added the label Tests on Dec 17, 2019
  4. maflcko renamed this:
    test: rpc_bind.py --ipv4 fails when run in qemu-arm
    test: rpc_bind.py --ipv4 fails when run on s390x in debian
    on Dec 18, 2019
  5. maflcko commented at 3:29 am on December 18, 2019: member
  6. maflcko renamed this:
    test: rpc_bind.py --ipv4 fails when run on s390x in debian
    test: rpc_bind.py --ipv4 fails when run on s390x or arm in debian
    on Dec 18, 2019
  7. maflcko commented at 1:45 pm on December 18, 2019: member
  8. laanwj commented at 2:12 pm on December 18, 2019: member
    This gives me the suspicion that some container-ism prevents get_bind_addrs from working (which relies on /proc being accessible, for one)
  9. maflcko commented at 6:21 pm on December 18, 2019: member

    Jup, I think docker is to blame. However, I can’t reproduce locally:

     0# ls /.dockerenv && uname -a && cat /etc/debian_version && ./test/functional/rpc_bind.py --ipv4
     1/.dockerenv
     2Linux e5c4bf14a0c2 4.15.0-1049-raspi2 [#53](/bitcoin-bitcoin/53/)-Ubuntu SMP PREEMPT Wed Oct 2 01:04:00 UTC 2019 aarch64 GNU/Linux
     3bullseye/sid
     42019-12-18T18:20:14.319000Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_7xx50ox6
     52019-12-18T18:20:14.323000Z TestFramework (INFO): Check for linux
     62019-12-18T18:20:14.323000Z TestFramework (INFO): Check for ipv6
     72019-12-18T18:20:14.325000Z TestFramework (INFO): Check for non-loopback interface
     82019-12-18T18:20:14.327000Z TestFramework (INFO): Bind test for ['127.0.0.1']
     92019-12-18T18:20:15.587000Z TestFramework (INFO): Bind test for ['127.0.0.1:32171']
    102019-12-18T18:20:16.482000Z TestFramework (INFO): Bind test for ['127.0.0.1:32171', '127.0.0.1:32172']
    112019-12-18T18:20:17.332000Z TestFramework (INFO): Stopping nodes
    122019-12-18T18:20:17.333000Z TestFramework (INFO): Cleaning up /tmp/bitcoin_func_test_7xx50ox6 on exit
    132019-12-18T18:20:17.335000Z TestFramework (INFO): Tests successful
    
  10. maflcko commented at 2:06 pm on December 31, 2019: member
    This was caused by running qemu in docker in lxd for the native platform. Fixed in https://github.com/bitcoin/bitcoin/pull/17767/commits/fa762775db8c26df0106f5b1fa79862fbb41c6c2
  11. maflcko closed this on Dec 31, 2019

  12. maflcko reopened this on Mar 23, 2020

  13. maflcko closed this on Mar 8, 2021

  14. bitcoin locked this on Aug 18, 2022
  15. bitcoin unlocked this on May 22, 2024
  16. maflcko commented at 10:08 am on May 22, 2024: member

    Possibly unrelated, but rpc_bind.py --ipv6 | ✖ Failed | 2 s

    With ASan, on GHA: https://github.com/m3dwards/bitcoin/actions/runs/9178831587/job/25239590853#step:5:5070

     0test  2024-05-21T18:27:24.024000Z TestFramework.node0 (DEBUG): RPC successfully started 
     1 test  2024-05-21T18:27:24.078000Z TestFramework (ERROR): Assertion failed 
     2                                   Traceback (most recent call last):
     3                                     File "/home/runner/work/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
     4                                       self.run_test()
     5                                     File "/home/runner/work/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/rpc_bind.py", line 86, in run_test
     6                                       self._run_loopback_tests()
     7                                     File "/home/runner/work/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/rpc_bind.py", line 103, in _run_loopback_tests
     8                                       self.run_bind_test(None, '127.0.0.1', [],
     9                                     File "/home/runner/work/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/rpc_bind.py", line 45, in run_bind_test
    10                                       assert_equal(set(get_bind_addrs(pid)), set(expected))
    11                                     File "/home/runner/work/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 74, in assert_equal
    12                                       raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    13                                   AssertionError: not({('7f000001', 19168)} == {('00000000000000000000000000000001', 19168), ('7f000001', 19168)})
    

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: 2024-11-23 09:12 UTC

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