bitcoind exits with SIGPIPE after Ctrl+C in bitcoin-cli #6660

issue paveljanik opened this issue on September 11, 2015
  1. paveljanik commented at 9:04 AM on September 11, 2015: contributor

    Current master, OS X self built.

    bitcoind exits after I press Ctrl+C in the other terminal after running the command

    bitcoin-cli getrawmempool true
    

    The output of the command is quite large right now... When I press Ctrl+C, the bitcoind running in the other terminal window will exit. The exit code is 141 (141-128 = 13, SIGPIPE).

    When the mempool gets large enough, ie. cca 30000 txs, I can reproduce with cca 30% probability.

    Looks like new libevent based webserver doesn't handle SIGPIPE correctly.

  2. jonasschnelli commented at 9:45 AM on September 11, 2015: contributor

    Confirmed. Needs fixing.

  3. laanwj referenced this in commit 5ce43da03d on Sep 18, 2015
  4. laanwj cross-referenced this on Sep 18, 2015 from issue libevent http fixes by laanwj
  5. laanwj closed this on Sep 21, 2015

  6. str4d cross-referenced this on Jan 24, 2020 from issue Bitcoin 0.12 wallet PRs by str4d
  7. 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