wrong zmq argument causes core dump or infinite loop #7496

issue jafaber opened 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.

    bitcoin-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
    bitcoin-qt: zmq/zmqpublishnotifier.cpp:92: virtual void CZMQAbstractPublishNotifier::Shutdown(): Assertion `psocket' failed.
    Aborted (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. mrbandrews cross-referenced this on Feb 29, 2016 from issue Fixes ZMQ startup with bad arguments. by mrbandrews
  8. laanwj closed this on Mar 15, 2016

  9. ysangkok cross-referenced this on Oct 18, 2019 from issue invalid zmq argument syntax on windows causes abort by ysangkok
  10. bitcoin 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: 2026-05-20 06:55 UTC