rpc: segfault if combinepsbt called with empty inputs #15300

issue fanquake opened this issue on January 31, 2019
  1. fanquake commented at 3:36 PM on January 31, 2019: member

    Running master 4d661ba:

    src/bitcoin-cli combinepsbt [""] or src/bitcoin-cli combinepsbt []
    
      * frame [#0](/bitcoin-bitcoin/0/): 0x000000010016054a bitcoind`PartiallySignedTransaction::PartiallySignedTransaction(PartiallySignedTransaction const&) [inlined] boost::optional_detail::optional_base<CMutableTransaction>::is_initialized(this=0x0000000000000000) const at optional.hpp:394 [opt]
        frame [#1](/bitcoin-bitcoin/1/): 0x000000010016054a bitcoind`PartiallySignedTransaction::PartiallySignedTransaction(PartiallySignedTransaction const&) [inlined] boost::optional_detail::optional_base<CMutableTransaction>::optional_base(this=<unavailable>, rhs=0x0000000000000000) at optional.hpp:196 [opt]
        frame [#2](/bitcoin-bitcoin/2/): 0x0000000100160542 bitcoind`PartiallySignedTransaction::PartiallySignedTransaction(PartiallySignedTransaction const&) [inlined] boost::optional<CMutableTransaction>::optional(this=0x000070000b9fe7c0, (null)=0x0000000000000000) at optional.hpp:958 [opt]
        frame [#3](/bitcoin-bitcoin/3/): 0x0000000100160542 bitcoind`PartiallySignedTransaction::PartiallySignedTransaction(PartiallySignedTransaction const&) [inlined] boost::optional<CMutableTransaction>::optional(this=0x000070000b9fe7c0, (null)=0x0000000000000000) at optional.hpp:958 [opt]
        frame [#4](/bitcoin-bitcoin/4/): 0x0000000100160542 bitcoind`PartiallySignedTransaction::PartiallySignedTransaction(this=0x000070000b9fe7c0, psbt_in=0x0000000000000000) at sign.h:576 [opt]
        frame [#5](/bitcoin-bitcoin/5/): 0x0000000100142ae5 bitcoind`combinepsbt(JSONRPCRequest const&) [inlined] PartiallySignedTransaction::PartiallySignedTransaction(this=0x000070000b9fe700, psbt_in=<unavailable>) at sign.h:576 [opt]
        frame [#6](/bitcoin-bitcoin/6/): 0x0000000100142ae0 bitcoind`combinepsbt(request=<unavailable>) at rawtransaction.cpp:1526 [opt]
        frame [#7](/bitcoin-bitcoin/7/): 0x0000000100170f0a bitcoind`CRPCTable::execute(this=<unavailable>, request=0x000070000b9fead0) const at server.cpp:557 [opt]
    
  2. fanquake added the label RPC/REST/ZMQ on Jan 31, 2019
  3. MarcoFalke added this to the milestone 0.18.0 on Feb 4, 2019
  4. MarcoFalke closed this on Feb 11, 2019

  5. MarcoFalke referenced this in commit e84e0d4b5e on Feb 11, 2019
  6. linuxsh2 referenced this in commit 457ea759a2 on Jul 30, 2021
  7. linuxsh2 referenced this in commit 8ce5b6b099 on Aug 3, 2021
  8. DrahtBot locked this on Dec 16, 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-04-13 15:15 UTC

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