Fix empty exception values from bad ThrowFn declaration #33

pull ryanofsky wants to merge 1 commits into bitcoin-core:master from ryanofsky:pr/except changing 4 files +11 −1
  1. ryanofsky commented at 10:06 PM on March 22, 2020: collaborator

    Also extend libmultiprocess unit test with coverage for this case.

    Bad non-const ThrowFn declaration was causing ReadDestEmplace to try read exception values after throwing them instead of before (in update_fn(construct()) expression when construct() callback throws).

    This was causing bitcoin functional tests to fail because JSONRPCError exceptions caught were just null UniValue objects instead of objects with code and message fields set.

  2. Fix empty exception values from bad ThrowFn declaration
    Also extend libmultiprocess unit test with coverage for this case.
    
    Bad non-const ThrowFn declaration was causing ReadDestEmplace to try read
    exception values after throwing them instead of before (in
    update_fn(construct()) expression when construct() callback throws).
    
    This was causing bitcoin functional tests to fail because JSONRPCError
    exceptions caught were just null UniValue objects instead of objects with code
    and message fields set.
    c3efcae099
  3. ryanofsky merged this on Mar 22, 2020
  4. ryanofsky closed this on Mar 22, 2020

  5. bitcoin-core locked this on Jun 25, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-18 13:30 UTC

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