Skip to content

TP v.0.1.12 aborts (core dumped) #82

Closed

Description

@GitGab19

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

While analyzing some logs on the benchmarking-tool, I noticed that all the SV2 stack (miner side, so JDC, Translator Proxy) was restarted because of this error on TP:

bitcoind: ./streams.h:76: void VectorWriter::write(Span<const std::byte>): Assertion `nPos <= vchData.size()' failed.
Aborted (core dumped)

Expected behaviour

TP should ideally never die

Steps to reproduce

I just run the stack for hours.

The TP in question was the one only used by JDC. The Pool had its own TP.

Relevant log output

2025-02-27T04:20:24Z CreateNewBlock(): block weight: 171428 txs: 134 fees: 121039 sigops 436
2025-02-27T04:20:24Z [sv2] Send 0x71 NewTemplate id=1497 future=0 to client id=0
2025-02-27T04:20:25Z [sv2] Received 0x73 RequestTransactionData from client id=0
2025-02-27T04:20:25Z [sv2] Send 0x74 RequestTransactionData.Success to client id=0
2025-02-27T04:20:28Z Saw new header hash=00000000000074452096ab9fe30a38e7a9b68c0cfa9781088bf8669d2c830d27 height=71836
2025-02-27T04:20:28Z Saw new header hash=0000000000008bd6c490840b3aa7d5f096540f09bfb8401d7801e033f494a6d3 height=71837
2025-02-27T04:20:28Z Saw new header hash=000000000000940d666a07ac15010f2227f096523f4168a688bc7142c2aa1840 height=71838
2025-02-27T04:20:28Z Saw new header hash=0000000000006b0aa9f67d893acc548cd0e60b8c43a82770debc7b3856d51690 height=71839
2025-02-27T04:20:28Z Saw new header hash=0000000000003496412b246aac780f1e50a5ff7aade95fc9a2ca12a394839116 height=71840
2025-02-27T04:20:28Z UpdateTip: new best=0000000000000003d7028a3f0280b6cb6f509c86e9fbca8af5305f65d1810d35 height=71835 version=0x23af6000 log2_work=72.811919 tx=7111453 date='2025-02-27T04:38:01Z' progress=1.000000 cache=39.1MiB(190713txo)
2025-02-27T04:20:28Z UpdateTip: new best=00000000000074452096ab9fe30a38e7a9b68c0cfa9781088bf8669d2c830d27 height=71836 version=0x20000000 log2_work=72.811919 tx=7111779 date='2025-02-27T04:58:02Z' progress=1.000000 cache=39.2MiB(191543txo)
2025-02-27T04:20:28Z UpdateTip: new best=0000000000008bd6c490840b3aa7d5f096540f09bfb8401d7801e033f494a6d3 height=71837 version=0x20000000 log2_work=72.811919 tx=7111829 date='2025-02-27T05:18:03Z' progress=1.000000 cache=39.2MiB(191650txo)
2025-02-27T04:20:28Z CreateNewBlock(): block weight: 99807 txs: 62 fees: 72280 sigops 409
2025-02-27T04:20:28Z [sv2] Send 0x71 NewTemplate id=1498 future=1 to client id=0
2025-02-27T04:20:28Z [sv2] Send 0x72 SetNewPrevHash to client id=0
2025-02-27T04:20:28Z [sv2] Received 0x73 RequestTransactionData from client id=0
2025-02-27T04:20:28Z [sv2] Send 0x74 RequestTransactionData.Success to client id=0
2025-02-27T04:20:28Z UpdateTip: new best=000000000000940d666a07ac15010f2227f096523f4168a688bc7142c2aa1840 height=71838 version=0x20000000 log2_work=72.811919 tx=7111834 date='2025-02-27T05:38:04Z' progress=1.000000 cache=39.2MiB(191655txo)
2025-02-27T04:20:28Z CreateNewBlock(): block weight: 97699 txs: 58 fees: 71752 sigops 407
2025-02-27T04:20:28Z [sv2] Send 0x71 NewTemplate id=1499 future=1 to client id=0
2025-02-27T04:20:28Z [sv2] Send 0x72 SetNewPrevHash to client id=0
2025-02-27T04:20:28Z UpdateTip: new best=0000000000006b0aa9f67d893acc548cd0e60b8c43a82770debc7b3856d51690 height=71839 version=0x20000000 log2_work=72.811919 tx=7111836 date='2025-02-27T05:58:05Z' progress=1.000000 cache=39.2MiB(191658txo)
bitcoind: ./streams.h:76: void VectorWriter::write(Span<const std::byte>): Assertion `nPos <= vchData.size()' failed.
Aborted (core dumped)

How did you obtain Bitcoin Core

Pre-built binaries

What version of Bitcoin Core are you using?

TP v.0.1.12

Operating system and version

Ubuntu 24.04.1 LTS

Machine specifications

No response

Activity

  1. GitGab19 commented on Feb 27, 2025

    @GitGab19
    Author

    Here the corresponding logs of the TP used by the Pool in the meantime, where we can see it has not aborted:

    2025-02-27T04:20:23Z CreateNewBlock(): block weight: 167674 txs: 130 fees: 118585 sigops 436
    2025-02-27T04:20:23Z [sv2] Send 0x71 NewTemplate id=1504 future=0 to client id=0
    2025-02-27T04:20:28Z Saw new header hash=00000000000074452096ab9fe30a38e7a9b68c0cfa9781088bf8669d2c830d27 height=71836
    2025-02-27T04:20:28Z Saw new header hash=0000000000008bd6c490840b3aa7d5f096540f09bfb8401d7801e033f494a6d3 height=71837
    2025-02-27T04:20:28Z Saw new header hash=000000000000940d666a07ac15010f2227f096523f4168a688bc7142c2aa1840 height=71838
    2025-02-27T04:20:28Z Saw new header hash=0000000000006b0aa9f67d893acc548cd0e60b8c43a82770debc7b3856d51690 height=71839
    2025-02-27T04:20:28Z Saw new header hash=0000000000003496412b246aac780f1e50a5ff7aade95fc9a2ca12a394839116 height=71840
    2025-02-27T04:20:28Z UpdateTip: new best=0000000000000003d7028a3f0280b6cb6f509c86e9fbca8af5305f65d1810d35 height=71835 version=0x23af6000 log2_work=72.811919 tx=7111453 date='2025-02-27T04:38:01Z' progress=1.000000 cache=35.8MiB(210514txo)
    2025-02-27T04:20:28Z UpdateTip: new best=00000000000074452096ab9fe30a38e7a9b68c0cfa9781088bf8669d2c830d27 height=71836 version=0x20000000 log2_work=72.811919 tx=7111779 date='2025-02-27T04:58:02Z' progress=1.000000 cache=35.8MiB(211043txo)
    2025-02-27T04:20:28Z UpdateTip: new best=0000000000008bd6c490840b3aa7d5f096540f09bfb8401d7801e033f494a6d3 height=71837 version=0x20000000 log2_work=72.811919 tx=7111829 date='2025-02-27T05:18:03Z' progress=1.000000 cache=35.8MiB(211125txo)
    2025-02-27T04:20:28Z CreateNewBlock(): block weight: 97918 txs: 60 fees: 71164 sigops 408
    2025-02-27T04:20:28Z [sv2] Send 0x71 NewTemplate id=1505 future=1 to client id=0
    2025-02-27T04:20:28Z [sv2] Send 0x72 SetNewPrevHash to client id=0
    2025-02-27T04:20:28Z UpdateTip: new best=000000000000940d666a07ac15010f2227f096523f4168a688bc7142c2aa1840 height=71838 version=0x20000000 log2_work=72.811919 tx=7111834 date='2025-02-27T05:38:04Z' progress=1.000000 cache=35.8MiB(211130txo)
    2025-02-27T04:20:28Z CreateNewBlock(): block weight: 95810 txs: 56 fees: 70636 sigops 406
    2025-02-27T04:20:28Z [sv2] Send 0x71 NewTemplate id=1506 future=1 to client id=0
    2025-02-27T04:20:28Z [sv2] Send 0x72 SetNewPrevHash to client id=0
    2025-02-27T04:20:28Z UpdateTip: new best=0000000000006b0aa9f67d893acc548cd0e60b8c43a82770debc7b3856d51690 height=71839 version=0x20000000 log2_work=72.811919 tx=7111836 date='2025-02-27T05:58:05Z' progress=1.000000 cache=35.8MiB(211133txo)
    2025-02-27T04:20:28Z UpdateTip: new best=0000000000003496412b246aac780f1e50a5ff7aade95fc9a2ca12a394839116 height=71840 version=0x20000000 log2_work=72.811919 tx=7111843 date='2025-02-27T06:18:06Z' progress=1.000000 cache=35.8MiB(211148txo)
    2025-02-27T04:20:28Z CreateNewBlock(): block weight: 86982 txs: 49 fees: 64561 sigops 404
    2025-02-27T04:20:28Z [sv2] Send 0x71 NewTemplate id=1507 future=1 to client id=0
    2025-02-27T04:20:28Z [sv2] Send 0x72 SetNewPrevHash to client id=0
    2025-02-27T04:20:29Z Saw new header hash=0000000000007b44c69b08a3a4cdb757ccc08250fa1d2d3008ec487f84b7795a height=71839
    2025-02-27T04:20:29Z Saw new cmpctblock header hash=0000000000007b44c69b08a3a4cdb757ccc08250fa1d2d3008ec487f84b7795a peer=15
    2025-02-27T04:20:29Z Saw new header hash=00000000000088d4fd21569bbd7f8e9b9080ba62c182dd97341054ccb1c874eb height=71837
    2025-02-27T04:20:29Z Saw new cmpctblock header hash=00000000000088d4fd21569bbd7f8e9b9080ba62c182dd97341054ccb1c874eb peer=2
    2025-02-27T04:20:31Z Saw new header hash=00000000000084e6e00cc21fa545880c486699c58d670e03bb821b3e7a23926a height=71838
    2025-02-27T04:20:53Z CreateNewBlock(): block weight: 131179 txs: 91 fees: 91768 sigops 414
    2025-02-27T04:20:53Z [sv2] Send 0x71 NewTemplate id=1508 future=0 to client id=0
    

    I hope this can help your research :)

  2. Sjors commented on Feb 27, 2025

    @Sjors
    Owner

    There's not much use in debugging v0.1.12, would be useful to know if this still happens in v0.1.14.

    Is this the IPC version or the regular one?

  3. GitGab19 commented on Feb 27, 2025

    @GitGab19
    Author

    Yeah I know, but since I got this error, I preferred to report it.

    Is this the IPC version or the regular one?

    Regular one

  4. Sjors commented on Apr 15, 2025

    @Sjors
    Owner

    Let me know if you're still seeing this in more recent versions...

  5. GitGab19 commented on Apr 15, 2025

    @GitGab19
    Author

    Nope, up to now I never saw this on v.0.1.15

  6. added a commit that references this issue on Dec 29, 2025
  7. added a commit that references this issue on May 12, 2026
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