gui: Fix segfault for loading and immediately unloading wallet #18387

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20200319-fix-modelwallet-segfault changing 4 files +25 −0
  1. hebasto commented at 9:54 PM on March 19, 2020: member

    These changes block a wallet unload until the GUI completes the process of its model loading.

    Fix #18362

  2. hebasto commented at 9:57 PM on March 19, 2020: member

    @ryanofsky Not sure about this PR approach w.r.t. upcoming multiprocessing.

  3. hebasto renamed this:
    qt: Fix segfault for loading and immediately unloading wallet
    gui: Fix segfault for loading and immediately unloading wallet
    on Mar 19, 2020
  4. gui: Fix segfault for loading and immediately unloading wallet 81d4a7b7e3
  5. hebasto force-pushed on Mar 19, 2020
  6. DrahtBot added the label GUI on Mar 19, 2020
  7. DrahtBot added the label Wallet on Mar 19, 2020
  8. promag commented at 10:32 PM on March 19, 2020: member

    NACK, sorry but I think this is really the wrong approach.

  9. DrahtBot commented at 12:14 AM on March 20, 2020: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #17966 (qt, refactor: Optimize signal-slot connections logic by hebasto)
    • #17954 (wallet: Remove calls to Chain::Lock methods by ryanofsky)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  10. ryanofsky commented at 2:51 AM on March 20, 2020: member

    Confirmed 81d4a7b7e3d096ef6f7586eb34dfd2653432c504 works and stops the segfaults. Thanks for the fix! Also agree that the simpler, non-blocking fix 838ea490dd2641e746f870182822dcdf060caa89 from #18338 is probably more robust, and less likely to lead to gui hangs or deadlocks if code is changed in the future.

    @ryanofsky Not sure about this PR approach w.r.t. upcoming multiprocessing.

    Should be no interaction, at least with #10102 all stc/interfaces calls are normal blocking calls that run in the same order, just slower

  11. hebasto commented at 7:34 AM on March 23, 2020: member

    Close in favor of 179051c9e7835ba24baf623a2a37ba465792f1ad from #18338 (comment).

  12. hebasto closed this on Mar 23, 2020

  13. hebasto deleted the branch on Jun 13, 2020
  14. DrahtBot locked this on Feb 15, 2022

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-21 15:14 UTC

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