Skip to content

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

Closed

Description

@maflcko

Commit fa52a2c7b81817694c3aeddb7f6909334b8c9132

Steps to reproduce:

FILE_ENV="./ci/test/00_setup_env_arm.sh" MAKEJOBS="-j9" ./ci/test_run_all.sh
 node0 2019-12-17T20:54:35.953253Z [] ThreadRPCServer method=getblockcount user=__cookie__ 
 test  2019-12-17T20:54:35.959000Z TestFramework.node0 (DEBUG): RPC successfully started 
 test  2019-12-17T20:54:35.966000Z TestFramework (ERROR): Assertion failed 
                                   Traceback (most recent call last):
                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/test_framework/test_framework.py", line 112, in main
                                       self.run_test()
                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 89, in run_test
                                       self._run_loopback_tests()
                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 97, in _run_loopback_tests
                                       [('127.0.0.1', self.defaultport)])
                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/rpc_bind.py", line 43, in run_bind_test
                                       assert_equal(set(get_bind_addrs(pid)), set(expected))
                                     File "/home/marco/bitcoin/build/bitcoin-arm-linux-gnueabihf/test/functional/test_framework/util.py", line 46, in assert_equal
                                       raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
                                   AssertionError: not(set() == {('7f000001', 16456)})

Activity

  1. changed the title [-]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
  2. changed the title [-]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
  3. laanwj commented on Dec 18, 2019

    @laanwj
    Member

    This gives me the suspicion that some container-ism prevents get_bind_addrs from working (which relies on /proc being accessible, for one)

  4. maflcko commented on Dec 18, 2019

    @maflcko
    MemberAuthor

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

    # ls /.dockerenv && uname -a && cat /etc/debian_version && ./test/functional/rpc_bind.py --ipv4
    /.dockerenv
    Linux e5c4bf14a0c2 4.15.0-1049-raspi2 #53-Ubuntu SMP PREEMPT Wed Oct 2 01:04:00 UTC 2019 aarch64 GNU/Linux
    bullseye/sid
    2019-12-18T18:20:14.319000Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_7xx50ox6
    2019-12-18T18:20:14.323000Z TestFramework (INFO): Check for linux
    2019-12-18T18:20:14.323000Z TestFramework (INFO): Check for ipv6
    2019-12-18T18:20:14.325000Z TestFramework (INFO): Check for non-loopback interface
    2019-12-18T18:20:14.327000Z TestFramework (INFO): Bind test for ['127.0.0.1']
    2019-12-18T18:20:15.587000Z TestFramework (INFO): Bind test for ['127.0.0.1:32171']
    2019-12-18T18:20:16.482000Z TestFramework (INFO): Bind test for ['127.0.0.1:32171', '127.0.0.1:32172']
    2019-12-18T18:20:17.332000Z TestFramework (INFO): Stopping nodes
    2019-12-18T18:20:17.333000Z TestFramework (INFO): Cleaning up /tmp/bitcoin_func_test_7xx50ox6 on exit
    2019-12-18T18:20:17.335000Z TestFramework (INFO): Tests successful
    
  5. maflcko commented on Dec 31, 2019

    @maflcko
    MemberAuthor

    This was caused by running qemu in docker in lxd for the native platform. Fixed in fa76277

  6. locked as resolved and limited conversation to collaborators on Aug 18, 2022
  7. unlocked this conversation on May 22, 2024
  8. maflcko commented on May 22, 2024

    @maflcko
    MemberAuthor

    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

    test  2024-05-21T18:27:24.024000Z TestFramework.node0 (DEBUG): RPC successfully started 
     test  2024-05-21T18:27:24.078000Z TestFramework (ERROR): Assertion failed 
                                       Traceback (most recent call last):
                                         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
                                           self.run_test()
                                         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
                                           self._run_loopback_tests()
                                         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
                                           self.run_bind_test(None, '127.0.0.1', [],
                                         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
                                           assert_equal(set(get_bind_addrs(pid)), set(expected))
                                         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
                                           raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
                                       AssertionError: not({('7f000001', 19168)} == {('00000000000000000000000000000001', 19168), ('7f000001', 19168)})
    
  9. locked and limited conversation to collaborators on May 22, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions