[Qt] Fix bitcoin-qt --help Assertion failed #4532

pull cozz wants to merge 1 commits into bitcoin:master from cozz:cozz7 changing 1 files +3 −0
  1. cozz commented at 2:56 AM on July 15, 2014: contributor

    bitcoin-qt --help shows error bitcoin-qt: chainparamsbase.cpp:56: const CBaseChainParams& BaseParams(): Assertion 'pCurrentBaseParams' failed. Aborted

    after the help is printed. The reason is we return before SelectParamsFromCommandLine(), not sure if there is a cleaner fix to this problem though.

  2. [Qt] Fix bitcoin-qt --help crash d784608dc4
  3. BitcoinPullTester commented at 3:13 AM on July 15, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4532_d784608dc40b37c85130f038cd657c66a890670d/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  4. laanwj commented at 6:04 AM on July 15, 2014: member

    We should look for a better fix, this is really ugly. Why is this needed here an not in bitcoind/bitcoin-cli etc?

  5. laanwj commented at 7:54 AM on July 15, 2014: member

    Looks like underlying issue is here: It tries to do a LogPrint before initialization of the logging system / datadir.

    [#10](/bitcoin-bitcoin/10/) 0x00005555555c5a89 in LogPrint (category=0x0, format=0x555555887b23 "Stopping thread\n") at ./util.h:141
    [#11](/bitcoin-bitcoin/11/) BitcoinApplication::~BitcoinApplication (this=0x7fffffffdc30, __in_chrg=<optimized out>) at qt/bitcoin.cpp:293
    [#12](/bitcoin-bitcoin/12/) 0x00005555555b7d25 in main (argc=2, argv=<optimized out>) at qt/bitcoin.cpp:613
    

    Going to solve this by making LogPrintStr check that the chain parameters have been configured.

  6. laanwj commented at 8:27 AM on July 15, 2014: member

    See #4534

  7. laanwj closed this on Jul 15, 2014

  8. MarcoFalke 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-04-21 18:15 UTC

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