Skip to content

qa: interface_ipc.py and interface_ipc_mining.py fail on NetBSD 11.0 #35823

Closed

Description

@hebasto

From https://github.com/hebasto/bitcoin-core-nightly/actions/runs/30262156497/job/89964444230:

437/478 - interface_ipc.py failed, Duration: 1 s

stdout:
2026-07-27T12:18:33.553545Z TestFramework (INFO): PRNG seed is: 5499086366882415171
2026-07-27T12:18:33.554950Z TestFramework (INFO): Initializing test directory /root/test_runner_₿_🏃_20260727_120744/interface_ipc_34
2026-07-27T12:18:34.208105Z TestFramework (INFO): Running echo test
2026-07-27T12:18:34.221174Z TestFramework (INFO): Running mining test
2026-07-27T12:18:34.249361Z TestFramework (INFO): Running deprecated mining interface test
2026-07-27T12:18:34.318918Z TestFramework (ERROR): Unexpected exception:
Traceback (most recent call last):
  File "/root/build/test/functional/interface_ipc.py", line 79, in async_routine
    await init.makeMiningOld2()
capnp.lib.capnp.KjException: capnp/rpc.c++:2779: disconnected: Peer disconnected.
stack: 752f72b48da8 752f72b42a80 752f72b34dd0 752f72cdd4aa 752f72cdddea

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 145, in main
    self.run_test()
    ~~~~~~~~~~~~~^^
  File "/root/build/test/functional/interface_ipc.py", line 168, in run_test
    self.run_deprecated_mining_test()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/root/build/test/functional/interface_ipc.py", line 84, in run_deprecated_mining_test
    asyncio.run(capnp.run(async_routine()))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/pkg/lib/python3.13/asyncio/runners.py", line 196, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/pkg/lib/python3.13/asyncio/runners.py", line 119, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/pkg/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "capnp/lib/capnp.pyx", line 2085, in run
  File "capnp/lib/capnp.pyx", line 2086, in capnp.lib.capnp.run
    return await coro
  File "/root/build/test/functional/interface_ipc.py", line 82, in async_routine
    assert_equal(e.description, "remote exception: std::exception: Old mining interface (@2) not supported. Please update your client!")
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/bitcoin/test/functional/test_framework/util.py", line 94, in assert_equal
    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(Peer disconnected. == remote exception: std::exception: Old mining interface (@2) not supported. Please update your client!)
2026-07-27T12:18:34.329787Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
2026-07-27T12:18:34.329936Z TestFramework (WARNING): Not cleaning up dir /root/test_runner_₿_🏃_20260727_120744/interface_ipc_34
2026-07-27T12:18:34.330003Z TestFramework (ERROR): Test failed. Test logging available at /root/test_runner_₿_🏃_20260727_120744/interface_ipc_34/test_framework.log
2026-07-27T12:18:34.330781Z TestFramework (ERROR): 
2026-07-27T12:18:34.330954Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/root/test_runner_₿_🏃_20260727_120744/interface_ipc_34' to consolidate all logs
2026-07-27T12:18:34.331033Z TestFramework (ERROR): 
2026-07-27T12:18:34.331104Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2026-07-27T12:18:34.331186Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
2026-07-27T12:18:34.331241Z TestFramework (ERROR): 

2026-07-27T12:19:09.8796051Z 477/478 - interface_ipc_mining.py failed, Duration: 35 s
2026-07-27T12:19:09.8796855Z 
2026-07-27T12:19:09.8797318Z stdout:
2026-07-27T12:19:09.8817993Z 2026-07-27T12:18:34.762068Z TestFramework (INFO): PRNG seed is: 3897203796581371368
2026-07-27T12:19:09.8819941Z 2026-07-27T12:18:34.764233Z TestFramework (INFO): Initializing test directory /root/test_runner_₿_🏃_20260727_120744/interface_ipc_mining_33
2026-07-27T12:19:09.8822977Z 2026-07-27T12:18:35.617473Z TestFramework (INFO): Running Mining interface test
2026-07-27T12:19:09.8823991Z 2026-07-27T12:18:44.940515Z TestFramework (INFO): Running Mining interface early startup test
2026-07-27T12:19:09.8824990Z 2026-07-27T12:18:45.453568Z TestFramework (INFO): Running BlockTemplate interface test
2026-07-27T12:19:09.8825992Z 2026-07-27T12:19:09.504322Z TestFramework (INFO): Running coinbase construction and submission test
2026-07-27T12:19:09.8827061Z 2026-07-27T12:19:09.701428Z TestFramework (ERROR): Unexpected exception:
2026-07-27T12:19:09.8827686Z Traceback (most recent call last):
2026-07-27T12:19:09.8828379Z   File "/root/build/test/functional/interface_ipc_mining.py", line 527, in async_routine
2026-07-27T12:19:09.8829192Z     await template.submitSolution(ctx, 0, 0, 0, b"\x00")
2026-07-27T12:19:09.8829977Z capnp.lib.capnp.KjException: capnp/rpc.c++:2779: disconnected: Peer disconnected.
2026-07-27T12:19:09.8830842Z stack: 7cd8f6741da8 7cd8f673ba80 7cd8f672ddd0 7cd8f68d64aa 7cd8f68d6dea
2026-07-27T12:19:09.8831333Z 
2026-07-27T12:19:09.8831647Z During handling of the above exception, another exception occurred:
2026-07-27T12:19:09.8832123Z 
2026-07-27T12:19:09.8832284Z Traceback (most recent call last):
2026-07-27T12:19:09.8833056Z   File "/root/bitcoin/test/functional/test_framework/ipc_util.py", line 43, in destroying
2026-07-27T12:19:09.8833872Z     yield obj
2026-07-27T12:19:09.8834531Z   File "/root/build/test/functional/interface_ipc_mining.py", line 530, in async_routine
2026-07-27T12:19:09.8835781Z     assert_capnp_failed(e, "remote exception: std::exception: SpanReader::read(): end of data:")
2026-07-27T12:19:09.8837482Z     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-07-27T12:19:09.8838432Z   File "/root/bitcoin/test/functional/test_framework/ipc_util.py", line 163, in assert_capnp_failed
2026-07-27T12:19:09.8839804Z     assert e.description.startswith(description_prefix), f"Expected description starting with '{description_prefix}', got '{e.description}'"
2026-07-27T12:19:09.8840980Z            ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
2026-07-27T12:19:09.8842177Z AssertionError: Expected description starting with 'remote exception: std::exception: SpanReader::read(): end of data:', got 'Peer disconnected.'
2026-07-27T12:19:09.8843220Z 
2026-07-27T12:19:09.8843823Z During handling of the above exception, another exception occurred:
2026-07-27T12:19:09.8844544Z 
2026-07-27T12:19:09.8844975Z Traceback (most recent call last):
2026-07-27T12:19:09.8845695Z   File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 145, in main
2026-07-27T12:19:09.8846328Z     self.run_test()
2026-07-27T12:19:09.8846805Z     ~~~~~~~~~~~~~^^
2026-07-27T12:19:09.8847320Z   File "/root/build/test/functional/interface_ipc_mining.py", line 819, in run_test
2026-07-27T12:19:09.8848502Z     self.run_coinbase_and_submission_test()
2026-07-27T12:19:09.8849036Z     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2026-07-27T12:19:09.8849860Z   File "/root/build/test/functional/interface_ipc_mining.py", line 729, in run_coinbase_and_submission_test
2026-07-27T12:19:09.8850723Z     asyncio.run(capnp.run(async_routine()))
2026-07-27T12:19:09.8851192Z     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-07-27T12:19:09.8851760Z   File "/usr/pkg/lib/python3.13/asyncio/runners.py", line 196, in run
2026-07-27T12:19:09.8852567Z     return runner.run(main)
2026-07-27T12:19:09.8852925Z            ~~~~~~~~~~^^^^^^
2026-07-27T12:19:09.8853370Z   File "/usr/pkg/lib/python3.13/asyncio/runners.py", line 119, in run
2026-07-27T12:19:09.8853907Z     return self._loop.run_until_complete(task)
2026-07-27T12:19:09.8854343Z            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
2026-07-27T12:19:09.8854926Z   File "/usr/pkg/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
2026-07-27T12:19:09.8855540Z     return future.result()
2026-07-27T12:19:09.8855872Z            ~~~~~~~~~~~~~^^
2026-07-27T12:19:09.8856259Z   File "capnp/lib/capnp.pyx", line 2085, in run
2026-07-27T12:19:09.8856991Z   File "capnp/lib/capnp.pyx", line 2086, in capnp.lib.capnp.run
2026-07-27T12:19:09.8857473Z     return await coro
2026-07-27T12:19:09.8857993Z   File "/root/build/test/functional/interface_ipc_mining.py", line 508, in async_routine
2026-07-27T12:19:09.8858996Z     async with destroying((await mining.createNewBlock(ctx, self.default_block_create_options)).result, ctx) as template:
2026-07-27T12:19:09.8859959Z                ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-07-27T12:19:09.8860585Z   File "/usr/pkg/lib/python3.13/contextlib.py", line 235, in __aexit__
2026-07-27T12:19:09.8861098Z     await self.gen.athrow(value)
2026-07-27T12:19:09.8861671Z   File "/root/bitcoin/test/functional/test_framework/ipc_util.py", line 45, in destroying
2026-07-27T12:19:09.8862287Z     await obj.destroy(ctx)
2026-07-27T12:19:09.8862823Z capnp.lib.capnp.KjException: capnp/rpc.c++:2779: disconnected: Peer disconnected.
2026-07-27T12:19:09.8863486Z stack: 7cd8f6741da8 7cd8f672ddd0 7cd8f68d64aa 7cd8f68d6dea
2026-07-27T12:19:09.8864407Z 2026-07-27T12:19:09.768388Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
2026-07-27T12:19:09.8866012Z 2026-07-27T12:19:09.768549Z TestFramework (WARNING): Not cleaning up dir /root/test_runner_₿_🏃_20260727_120744/interface_ipc_mining_33
2026-07-27T12:19:09.8868003Z 2026-07-27T12:19:09.768614Z TestFramework (ERROR): Test failed. Test logging available at /root/test_runner_₿_🏃_20260727_120744/interface_ipc_mining_33/test_framework.log
2026-07-27T12:19:09.8869038Z 2026-07-27T12:19:09.768797Z TestFramework (ERROR): 
2026-07-27T12:19:09.8872348Z 2026-07-27T12:19:09.768903Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/root/test_runner_₿_🏃_20260727_120744/interface_ipc_mining_33' to consolidate all logs
2026-07-27T12:19:09.8873536Z 2026-07-27T12:19:09.768951Z TestFramework (ERROR): 
2026-07-27T12:19:09.8874622Z 2026-07-27T12:19:09.768987Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2026-07-27T12:19:09.8875899Z 2026-07-27T12:19:09.769150Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
2026-07-27T12:19:09.8876568Z 2026-07-27T12:19:09.769220Z TestFramework (ERROR): 

Activity

  1. hebasto commented on Jul 27, 2026

    @hebasto
    MemberAuthor
  2. hebasto commented on Aug 1, 2026

    @hebasto
    MemberAuthor

    I believe this is caused by the upstream bug.

    Also, cross-posting from bitcoin-core/libmultiprocess#321 (comment):

    Apparently, until this is fixed upstream, GCC <14.x requires -DKJ_NO_EXCEPTIONS=0 whenever it processes capnproto/c++/src/kj/common.h.

    On NetBSD 11.0, the default compiler is GCC 12.5, which means the devel/capnproto binary package cannot be used.

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