Unit tests failing with -DDEBUG_LOCKORDER #4084

issue gavinandresen opened this issue on April 22, 2014
  1. gavinandresen commented at 7:59 PM on April 22, 2014: contributor

    @laanwj : your new AssertLockHeld() assertions break unit tests. We should probably compile pull-tester unit-test binaries with -DDEBUG_LOCKORDER to catch these:

    unknown location:0: fatal error in "test_IsStandard": signal: SIGABRT (application abort requested)
    transaction_tests.cpp:274: last checkpoint
    Assertion failed: lock cs_main not held in main.cpp:560; locks held:
    pwalletMain->cs_wallet  rpc_wallet_tests.cpp:68
    

    Fixing that, I ran into another:

    script_P2SH_tests.cpp:182: last checkpoint
    Assertion failed: lock cs_main not held in main.cpp:560; locks held:
    

    (I haven't gone any further)

  2. gavinandresen assigned laanwj on Apr 22, 2014
  3. laanwj commented at 5:48 AM on April 23, 2014: member

    Hm, interesting, I did run everything with DEBUG_LOCKORDER at some point (even the qa/rpc-tests).

    Looking...

    Edit: enabling DEBUG_LOCKORDER for the pulltester would make sense

  4. laanwj commented at 6:23 AM on April 23, 2014: member

    [ignore last post, this was in the wrong issue]

  5. laanwj closed this on Apr 23, 2014

  6. DrahtBot 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-13 18:15 UTC

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