wrong zmq argument causes core dump or infinite loop #7496

issue jafaber openend this issue on February 10, 2016
  1. jafaber commented at 9:32 am on February 10, 2016: none

    bitcoin-0.12.0/bin/bitcoin-qt -testnet -server -zmqpubhashblock=127.0.0.1

    It’s very unclear what the format of “address” should be, so I just tried a bunch. This is 0.12rc3.

    The above causes an infinite loop at startup. “Verifying wallet” and when quitting the scary window “Do not shut down the computer until this window disappears.” Luckily nothing is corrupted by just killing it and trying again.

    Missing .// in the address causes assertion + core dump. At least less scary/confusing than above.

    0bitcoin-0.12.0/bin/bitcoin-qt -testnet -server -debug=1 -zmqpubhashblock=tcp://127.0.0.1:28332 -zmqpuawtx=tcp://127.0.0.1:28332 -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawblock=tcp:127.0.0.1:28332
    1bitcoin-qt: zmq/zmqpublishnotifier.cpp:92: virtual void CZMQAbstractPublishNotifier::Shutdown(): Assertion `psocket' failed.
    2Aborted (core dumped)
    
  2. laanwj added the label RPC on Feb 10, 2016
  3. dcousens commented at 2:29 am on February 11, 2016: contributor

    -zmqpuawtx

  4. jafaber commented at 8:03 am on February 11, 2016: none
    Hmm.. Or that. Not sure which is the cause. Not able to test today unfortunately.
  5. unsystemizer commented at 8:07 am on February 27, 2016: contributor

    It’s very unclear what the format of “address” should be, so I just tried a bunch.

    It’s documented here. https://github.com/bitcoin/bitcoin/blob/0.12/doc/zmq.md

  6. mrbandrews commented at 6:13 pm on February 29, 2016: contributor
    In PublishNotifier, if it fails to bind the address, it leaves the socket open which causes zmq_destroy() to hang later on. I’ll submit a fix.
  7. laanwj closed this on Mar 15, 2016

  8. DrahtBot locked this on Sep 8, 2021

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-12-02 21:13 UTC

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