Page MenuHomePhabricator

[test] fix asan initialization-order-fiasco
AbandonedPublicDraft

Authored by PiRK on Mar 30 2024, 17:57.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Testing a fix for

[17:39:47]
[Step 1/1] [247/500] bitcoin: testing net_tests
[17:39:47]
[Step 1/1] FAILED: src/test/CMakeFiles/check-bitcoin-net_tests
[17:39:47]
[Step 1/1] cd /work/abc-ci-builds/build-asan/src/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-asan/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-asan/test/log && /usr/bin/cmake -E env ASAN_OPTIONS=malloc_context_size=0:log_path=stdout ASAN_OPTIONS=detect_stack_use_after_return=1:log_path=stdout ASAN_OPTIONS=check_initialization_order=1:log_path=stdout ASAN_OPTIONS=strict_init_order=1:log_path=stdout LSAN_OPTIONS=suppressions=/work/test/sanitizer_suppressions/lsan:log_path=stdout /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-asan/test/log/bitcoin-net_tests.log /work/abc-ci-builds/build-asan/src/test/test_bitcoin --run_test=net_tests --logger=HRF,message:JUNIT,message,bitcoin-net_tests.xml --catch_system_errors=no
[17:39:47]
[Step 1/1] =================================================================
[17:39:47]
[Step 1/1] ==8394==ERROR: AddressSanitizer: initialization-order-fiasco on address 0x56066410e6a8 at pc 0x5606632eedff bp 0x7ffe075d15f0 sp 0x7ffe075d15e8
[17:39:47]
[Step 1/1] READ of size 8 at 0x56066410e6a8 thread T0
[17:39:47]
[Step 1/1]     #0 0x5606632eedfe in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16
[17:39:47]
[Step 1/1]     #1 0x5606632eedfe in __gnu_cxx::__enable_if<__is_char<char>::__value, bool>::__type std::operator==<char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:6173:21
[17:39:47]
[Step 1/1]     #2 0x5606632eedfe in CreateChainParams(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /work/abc-ci-builds/build-asan/../../src/chainparams.cpp:500:15
[17:39:47]
[Step 1/1]     #3 0x560660a101d8 in checkpoints_tests::MainnetConfigWithTestCheckpoints::createChainParams() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:67:33
[17:39:47]
[Step 1/1]     #4 0x560660a0fc8f in checkpoints_tests::MainnetConfigWithTestCheckpoints::MainnetConfigWithTestCheckpoints() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:59:54
[17:39:47]
[Step 1/1]     #5 0x560660a1449e in __cxx_global_var_init.14 /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:73:47
[17:39:47]
[Step 1/1]     #6 0x560660a1449e in _GLOBAL__sub_I_checkpoints_tests.cpp /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp
[17:39:47]
[Step 1/1]     #7 0x5606635732c4 in __libc_csu_init (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3eee2c4)
[17:39:47]
[Step 1/1]     #8 0x7f1b479fec99 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23c99)
[17:39:47]
[Step 1/1]     #9 0x5606602b9029 in _start (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc34029)
[17:39:47]
[Step 1/1]
[17:39:47]
[Step 1/1] 0x56066410e6a8 is located 56 bytes to the left of global variable 'CBaseChainParams::TESTNET' defined in '../../src/chainparamsbase.cpp:14:37' (0x56066410e6e0) of size 32
[17:39:47]
[Step 1/1]   registered at:
[17:39:47]
[Step 1/1]     #0 0x5606602c986d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
[17:39:47]
[Step 1/1]     #1 0x56066340f5cf in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a5cf)
[17:39:47]
[Step 1/1]
[17:39:47]
[Step 1/1] 0x56066410e6a8 is located 8 bytes inside of global variable 'CBaseChainParams::MAIN' defined in '../../src/chainparamsbase.cpp:13:37' (0x56066410e6a0) of size 32
[17:39:47]
[Step 1/1]   registered at:
[17:39:47]
[Step 1/1]     #0 0x5606602c986d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
[17:39:47]
[Step 1/1]     #1 0x56066340f5cf in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a5cf)
[17:39:47]
[Step 1/1]
[17:39:47]
[Step 1/1] SUMMARY: AddressSanitizer: initialization-order-fiasco /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const
Test Plan

With ASAN

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_initialization-order-fiasco
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28198
Build 55941: Build Diffbuild-diff · lint-circular-dependencies · build-without-wallet · build-debug · build-clang · build-clang-tidy
Build 55940: arc lint + arc unit

Event Timeline

Tail of the build log:

=================================================================
==8290==ERROR: AddressSanitizer: initialization-order-fiasco on address 0x56364da046a8 at pc 0x56364cbe4dff bp 0x7ffeaf8e5710 sp 0x7ffeaf8e5708
READ of size 8 at 0x56364da046a8 thread T0
    #0 0x56364cbe4dfe in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16
    #1 0x56364cbe4dfe in __gnu_cxx::__enable_if<__is_char<char>::__value, bool>::__type std::operator==<char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:6173:21
    #2 0x56364cbe4dfe in CreateChainParams(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /work/abc-ci-builds/build-asan/../../src/chainparams.cpp:500:15
    #3 0x56364a3061d8 in checkpoints_tests::MainnetConfigWithTestCheckpoints::createChainParams() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:67:33
    #4 0x56364a305c8f in checkpoints_tests::MainnetConfigWithTestCheckpoints::MainnetConfigWithTestCheckpoints() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:59:54
    #5 0x56364a30a49e in __cxx_global_var_init.14 /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:73:40
    #6 0x56364a30a49e in _GLOBAL__sub_I_checkpoints_tests.cpp /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp
    #7 0x56364ce692c4 in __libc_csu_init (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3eee2c4)
    #8 0x7fecf51d3c99 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23c99)
    #9 0x563649baf029 in _start (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc34029)

0x56364da046a8 is located 56 bytes to the left of global variable 'CBaseChainParams::TESTNET' defined in '../../src/chainparamsbase.cpp:14:37' (0x56364da046e0) of size 32
  registered at:
    #0 0x563649bbf86d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
    #1 0x56364cd055cf in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a5cf)

0x56364da046a8 is located 8 bytes inside of global variable 'CBaseChainParams::MAIN' defined in '../../src/chainparamsbase.cpp:13:37' (0x56364da046a0) of size 32
  registered at:
    #0 0x563649bbf86d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
    #1 0x56364cd055cf in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a5cf)

SUMMARY: AddressSanitizer: initialization-order-fiasco /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const
Shadow bytes around the buggy address:
  0x0ac749b38880: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b38890: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b388a0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b388b0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b388c0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
=>0x0ac749b388d0: f6 f6 f6 f6 f6[f6]f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b388e0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 00 f9 f9 f9
  0x0ac749b388f0: f9 f9 f9 f9 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b38900: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0ac749b38910: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 01 f9 f9 f9
  0x0ac749b38920: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 f6 f6 f6 f6
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==8290==ABORTING
ninja: build stopped: subcommand failed.
Build build-asan failed with exit code 1

try making the config a member var of the test fixture

Tail of the build log:

[200/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/apptests.cpp.o
[201/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/bitcoinaddressvalidatortests.cpp.o
[202/499] Running utility command for check-seeder-p2p_messaging_tests
[203/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/compattests.cpp.o
[204/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/guiutiltests.cpp.o
[205/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/optiontests.cpp.o
[206/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/rpcnestedtests.cpp.o
[207/499] Test Bitcoin utilities...
[208/499] seeder: testing write_name_tests
[209/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/test_main.cpp.o
[210/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/uritests.cpp.o
[211/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/util.cpp.o
[212/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/wallettests.cpp.o
[213/499] Running utility command for check-seeder-write_name_tests
[214/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/__/__/wallet/test/wallet_test_fixture.cpp.o
[215/499] avalanche: testing proof_tests
[216/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/addressbooktests.cpp.o
[217/499] Running seeder test suite
PASSED: seeder test suite
[218/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/paymentservertests.cpp.o
[219/499] Running utility command for check-avalanche-proof_tests
[220/499] avalanche: testing compactproofs_tests
[221/499] Running utility command for check-avalanche-compactproofs_tests
[222/499] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/test_bitcoin-qt_autogen/mocs_compilation.cpp.o
[223/499] Linking CXX executable src/qt/test/test_bitcoin-qt
[224/499] bitcoin-qt: testing test_bitcoin-qt
[225/499] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[226/499] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o
FAILED: src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o 
/usr/bin/ccache /usr/bin/clang++ -DBOOST_ALL_NO_LIB -DBUILD_BITCOIN_INTERNAL -DENABLE_AVX2 -DENABLE_SHANI -DENABLE_SSE41 -DHAVE_BUILD_INFO -DHAVE_CONFIG_H -DHAVE_CONSENSUS_LIB -DLEVELDB_ATOMIC_PRESENT -DLEVELDB_PLATFORM_POSIX -DOS_LINUX -I../../src/univalue/include -I../../src/. -Isrc -Isrc/crypto/.. -I../../src/secp256k1/include -I../../src/leveldb/include -isystem /usr/include/jemalloc -isystem /usr/include/miniupnpc -Werror -g -O2 -fPIE -fvisibility=hidden -fstack-protector-all -Wstack-protector -fcf-protection=full -fstack-clash-protection -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat -Wgnu -Wvla -Wcast-align -Wunused-parameter -Wmissing-braces -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunreachable-code-loop-increment -Wsign-compare -Wconditional-uninitialized -Wdocumentation -Wformat-security -Wredundant-move -Woverloaded-virtual -Wshadow -Wshadow-field -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-psabi -pthread -std=gnu++17 -MD -MT src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o -MF src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o.d -o src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o -c ../../src/test/checkpoints_tests.cpp
../../src/test/checkpoints_tests.cpp:94:53: error: use of undeclared identifier 'g_config'; did you mean 'm_config'?
    assert(std::addressof(config) == std::addressof(g_config));
                                                    ^~~~~~~~
                                                    m_config
/usr/include/assert.h:93:27: note: expanded from macro 'assert'
     (static_cast <bool> (expr)                                         \
                          ^
../../src/test/checkpoints_tests.cpp:74:38: note: 'm_config' declared here
    MainnetConfigWithTestCheckpoints m_config{};
                                     ^
1 error generated.
[227/499] pow: testing aserti32d_tests
[228/499] Running utility command for check-pow-aserti32d_tests
[229/499] Running pow test suite
PASSED: pow test suite
[230/499] avalanche: testing processor_tests
[231/499] Running utility command for check-avalanche-processor_tests
[232/499] avalanche: testing peermanager_tests
[233/499] Running utility command for check-avalanche-peermanager_tests
[234/499] avalanche: testing voterecord_tests
[235/499] Running utility command for check-avalanche-voterecord_tests
[236/499] Running avalanche test suite
PASSED: avalanche test suite
[237/499] secp256k1: testing secp256k1-exhaustive_tests
[238/499] secp256k1: testing secp256k1-tests
[239/499] Running secp256k1 test suite
PASSED: secp256k1 test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang failed with exit code 1

Tail of the build log:

wallet_importprunedfunds.py                | ○ Skipped | 0 s
wallet_importprunedfunds.py --descriptors  | ○ Skipped | 0 s
wallet_keypool.py                          | ○ Skipped | 0 s
wallet_keypool_topup.py                    | ○ Skipped | 0 s
wallet_keypool_topup.py --descriptors      | ○ Skipped | 0 s
wallet_labels.py                           | ○ Skipped | 0 s
wallet_labels.py --descriptors             | ○ Skipped | 0 s
wallet_listreceivedby.py                   | ○ Skipped | 0 s
wallet_listsinceblock.py                   | ○ Skipped | 0 s
wallet_listsinceblock.py --descriptors     | ○ Skipped | 0 s
wallet_listtransactions.py                 | ○ Skipped | 0 s
wallet_listtransactions.py --descriptors   | ○ Skipped | 0 s
wallet_multiwallet.py                      | ○ Skipped | 0 s
wallet_multiwallet.py --descriptors        | ○ Skipped | 0 s
wallet_multiwallet.py --usecli             | ○ Skipped | 0 s
wallet_reorgsrestore.py                    | ○ Skipped | 0 s
wallet_resendwallettransactions.py         | ○ Skipped | 0 s
wallet_send.py                             | ○ Skipped | 0 s
wallet_startup.py                          | ○ Skipped | 0 s
wallet_timelock.py                         | ○ Skipped | 0 s
wallet_txn_clone.py                        | ○ Skipped | 0 s
wallet_txn_clone.py --mineblock            | ○ Skipped | 0 s
wallet_txn_doublespend.py                  | ○ Skipped | 0 s
wallet_txn_doublespend.py --mineblock      | ○ Skipped | 0 s
wallet_watchonly.py                        | ○ Skipped | 0 s
wallet_watchonly.py --usecli               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 945 s (accumulated) 
Runtime: 189 s

[176/460] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s

OK
[177/460] cd /work/contrib/devtools/chainparams && /usr/bin/python3.9 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[194/460] Running seeder test suite
PASSED: seeder test suite
[206/460] Running avalanche test suite
PASSED: avalanche test suite
[211/460] Running pow test suite
PASSED: pow test suite
[215/460] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[216/460] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/script_tests.cpp.o
In file included from /usr/include/boost/test/unit_test.hpp:19,
                 from ../../src/test/script_tests.cpp:30:
../../src/test/script_tests.cpp: In member function ‘void script_tests::script_build::test_method()’:
../../src/test/script_tests.cpp:540:22: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
  540 | BOOST_AUTO_TEST_CASE(script_build) {
      |                      ^~~~~~~~~~~~
[217/460] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/util_tests.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Build build-without-wallet failed with exit code 1

Tail of the build log:

[188/492] Linking CXX executable src/pow/test/test-pow
[189/492] pow: testing daa_tests
[190/492] Running utility command for check-pow-daa_tests
[191/492] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/__/wallet/test/wallet_tests.cpp.o
[192/492] pow: testing eda_tests
[193/492] Running utility command for check-pow-eda_tests
[194/492] pow: testing grasberg_tests
[195/492] Running utility command for check-pow-grasberg_tests
[196/492] Building CXX object src/seeder/test/CMakeFiles/test-seeder.dir/message_writer_tests.cpp.o
[197/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/bitcoinaddressvalidatortests.cpp.o
[198/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/util.cpp.o
[199/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/compattests.cpp.o
[200/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/test_bitcoin-qt_autogen/mocs_compilation.cpp.o
[201/492] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s

OK
[202/492] cd /work/contrib/devtools/chainparams && /usr/bin/python3.9 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[203/492] pow: testing aserti32d_tests
[204/492] Running utility command for check-pow-aserti32d_tests
[205/492] Running pow test suite
PASSED: pow test suite
[206/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/guiutiltests.cpp.o
[207/492] Test Bitcoin utilities...
[208/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/apptests.cpp.o
[209/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/uritests.cpp.o
[210/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/optiontests.cpp.o
[211/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/test_main.cpp.o
[212/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/rpcnestedtests.cpp.o
[213/492] Building CXX object src/seeder/test/CMakeFiles/test-seeder.dir/fixture.cpp.o
[214/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/__/__/wallet/test/wallet_test_fixture.cpp.o
[215/492] Linking CXX executable src/seeder/test/test-seeder
[216/492] seeder: testing options_tests
[217/492] seeder: testing message_writer_tests
[218/492] seeder: testing parse_name_tests
[219/492] seeder: testing p2p_messaging_tests
[220/492] Running utility command for check-seeder-parse_name_tests
[221/492] seeder: testing write_name_tests
[222/492] Running utility command for check-seeder-options_tests
[223/492] Running utility command for check-seeder-p2p_messaging_tests
[224/492] Running utility command for check-seeder-message_writer_tests
[225/492] Running utility command for check-seeder-write_name_tests
[226/492] Running seeder test suite
PASSED: seeder test suite
[227/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/paymentservertests.cpp.o
[228/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/addressbooktests.cpp.o
[229/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/wallettests.cpp.o
[230/492] Linking CXX executable src/qt/test/test_bitcoin-qt
[231/492] bitcoin-qt: testing test_bitcoin-qt
[232/492] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang-tidy failed with exit code 1

Tail of the build log:

[18/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/delegation_tests.cpp.o
[19/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/scriptflags.cpp.o
[20/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/compactproofs_tests.cpp.o
[21/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/__/wallet/test/init_test_fixture.cpp.o
[22/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/activation_tests.cpp.o
[23/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/proofpool_tests.cpp.o
[24/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/proof_tests.cpp.o
[25/500] Building C object src/secp256k1/CMakeFiles/secp256k1-tests.dir/src/tests.c.o
[26/500] Linking C executable src/secp256k1/secp256k1-tests
[27/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/allocator_tests.cpp.o
[28/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/amount_tests.cpp.o
[29/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/__/wallet/test/wallet_test_fixture.cpp.o
[30/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/base32_tests.cpp.o
[31/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/base64_tests.cpp.o
[32/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/base58_tests.cpp.o
[33/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/bitmanip_tests.cpp.o
[34/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/bip32_tests.cpp.o
[35/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockchain_tests.cpp.o
[36/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockcheck_tests.cpp.o
[37/500] secp256k1: testing secp256k1-exhaustive_tests
[38/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/arith_uint256_tests.cpp.o
[39/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockmanager_tests.cpp.o
[40/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockstatus_tests.cpp.o
[41/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockfilter_index_tests.cpp.o
[42/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockfilter_tests.cpp.o
[43/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockindex_tests.cpp.o
[44/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockencodings_tests.cpp.o
[45/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/bswap_tests.cpp.o
[46/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/fixture.cpp.o
[47/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/cashaddr_tests.cpp.o
[48/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/fixture.cpp.o
[49/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o
FAILED: src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o 
/usr/bin/ccache /usr/bin/clang++ -DBOOST_ALL_NO_LIB -DBUILD_BITCOIN_INTERNAL -DENABLE_AVX2 -DENABLE_SHANI -DENABLE_SSE41 -DHAVE_BUILD_INFO -DHAVE_CONFIG_H -DHAVE_CONSENSUS_LIB -DLEVELDB_ATOMIC_PRESENT -DLEVELDB_PLATFORM_POSIX -DOS_LINUX -I../../src/univalue/include -I../../src/. -Isrc -Isrc/crypto/.. -I../../src/secp256k1/include -I../../src/leveldb/include -isystem /usr/include/miniupnpc -Werror -g -O2 -fPIE -fvisibility=hidden -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -fstack-protector-all -Wstack-protector -fcf-protection=full -fstack-clash-protection -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat -Wgnu -Wvla -Wcast-align -Wunused-parameter -Wmissing-braces -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunreachable-code-loop-increment -Wsign-compare -Wconditional-uninitialized -Wdocumentation -Wformat-security -Wredundant-move -Woverloaded-virtual -Wshadow -Wshadow-field -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-psabi -pthread -std=gnu++17 -MD -MT src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o -MF src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o.d -o src/test/CMakeFiles/test_bitcoin.dir/checkpoints_tests.cpp.o -c ../../src/test/checkpoints_tests.cpp
../../src/test/checkpoints_tests.cpp:94:53: error: use of undeclared identifier 'g_config'; did you mean 'm_config'?
    assert(std::addressof(config) == std::addressof(g_config));
                                                    ^~~~~~~~
                                                    m_config
/usr/include/assert.h:93:27: note: expanded from macro 'assert'
     (static_cast <bool> (expr)                                         \
                          ^
../../src/test/checkpoints_tests.cpp:74:38: note: 'm_config' declared here
    MainnetConfigWithTestCheckpoints m_config{};
                                     ^
1 error generated.
[50/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/blockstorage_tests.cpp.o
[51/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/checkdatasig_tests.cpp.o
[52/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/addrman_tests.cpp.o
[53/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/cashaddrenc_tests.cpp.o
[54/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/coinstatsindex_tests.cpp.o
[55/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/compilerbug_tests.cpp.o
[56/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/bloom_tests.cpp.o
[57/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/compress_tests.cpp.o
[58/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/checkqueue_tests.cpp.o
[59/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/peermanager_tests.cpp.o
[60/500] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/coins_tests.cpp.o
[61/500] Building CXX object src/avalanche/test/CMakeFiles/test-avalanche.dir/processor_tests.cpp.o
[62/500] secp256k1: testing secp256k1-tests
ninja: build stopped: subcommand failed.
Build build-asan failed with exit code 1

Tail of the build log:

chronik_disallow_prune.py                  | ○ Skipped | 0 s
chronik_mempool_conflicts.py               | ○ Skipped | 0 s
chronik_pause.py                           | ○ Skipped | 0 s
chronik_plugins_setup.py                   | ○ Skipped | 0 s
chronik_raw_tx.py                          | ○ Skipped | 0 s
chronik_resync.py                          | ○ Skipped | 0 s
chronik_script_confirmed_txs.py            | ○ Skipped | 0 s
chronik_script_history.py                  | ○ Skipped | 0 s
chronik_script_unconfirmed_txs.py          | ○ Skipped | 0 s
chronik_script_utxos.py                    | ○ Skipped | 0 s
chronik_serve.py                           | ○ Skipped | 0 s
chronik_spent_by.py                        | ○ Skipped | 0 s
chronik_token_alp.py                       | ○ Skipped | 0 s
chronik_token_broadcast_txs.py             | ○ Skipped | 0 s
chronik_token_burn.py                      | ○ Skipped | 0 s
chronik_token_id_group.py                  | ○ Skipped | 0 s
chronik_token_parse_failure.py             | ○ Skipped | 0 s
chronik_token_script_group.py              | ○ Skipped | 0 s
chronik_token_slp_fungible.py              | ○ Skipped | 0 s
chronik_token_slp_mint_vault.py            | ○ Skipped | 0 s
chronik_token_slp_nft1.py                  | ○ Skipped | 0 s
chronik_tx.py                              | ○ Skipped | 0 s
chronik_tx_removal_order.py                | ○ Skipped | 0 s
chronik_ws.py                              | ○ Skipped | 0 s
chronik_ws_ordering.py                     | ○ Skipped | 0 s
chronik_ws_ping.py                         | ○ Skipped | 0 s
chronik_ws_script.py                       | ○ Skipped | 0 s
feature_bind_port_discover.py              | ○ Skipped | 0 s
feature_bind_port_externalip.py            | ○ Skipped | 0 s
interface_usdt_net.py                      | ○ Skipped | 0 s
interface_usdt_utxocache.py                | ○ Skipped | 0 s
interface_usdt_validation.py               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 2158 s (accumulated) 
Runtime: 444 s

[165/500] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s

OK
[166/500] cd /work/contrib/devtools/chainparams && /usr/bin/python3.9 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[220/500] Running seeder test suite
PASSED: seeder test suite
[230/500] Running secp256k1 test suite
PASSED: secp256k1 test suite
[233/500] Running pow test suite
PASSED: pow test suite
[236/500] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[239/500] Running avalanche test suite
PASSED: avalanche test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-debug failed with exit code 1

Tail of the build log:

wallet_multiwallet.py                      | ✓ Passed  | 41 s
wallet_multiwallet.py --descriptors        | ✓ Passed  | 41 s
wallet_multiwallet.py --usecli             | ✓ Passed  | 14 s
wallet_reorgsrestore.py                    | ✓ Passed  | 4 s
wallet_resendwallettransactions.py         | ✓ Passed  | 6 s
wallet_send.py                             | ✓ Passed  | 10 s
wallet_startup.py                          | ✓ Passed  | 3 s
wallet_timelock.py                         | ✓ Passed  | 1 s
wallet_txn_clone.py                        | ✓ Passed  | 2 s
wallet_txn_clone.py --mineblock            | ✓ Passed  | 3 s
wallet_txn_doublespend.py                  | ✓ Passed  | 2 s
wallet_txn_doublespend.py --mineblock      | ✓ Passed  | 3 s
wallet_watchonly.py                        | ✓ Passed  | 2 s
wallet_watchonly.py --usecli               | ✓ Passed  | 1 s
chronik_avalanche.py                       | ○ Skipped | 0 s
chronik_block.py                           | ○ Skipped | 0 s
chronik_block_info.py                      | ○ Skipped | 0 s
chronik_block_txs.py                       | ○ Skipped | 0 s
chronik_blockchain_info.py                 | ○ Skipped | 0 s
chronik_blocks.py                          | ○ Skipped | 0 s
chronik_chronik_info.py                    | ○ Skipped | 0 s
chronik_disable_token_index.py             | ○ Skipped | 0 s
chronik_disallow_prune.py                  | ○ Skipped | 0 s
chronik_mempool_conflicts.py               | ○ Skipped | 0 s
chronik_pause.py                           | ○ Skipped | 0 s
chronik_plugins_setup.py                   | ○ Skipped | 0 s
chronik_raw_tx.py                          | ○ Skipped | 0 s
chronik_resync.py                          | ○ Skipped | 0 s
chronik_script_confirmed_txs.py            | ○ Skipped | 0 s
chronik_script_history.py                  | ○ Skipped | 0 s
chronik_script_unconfirmed_txs.py          | ○ Skipped | 0 s
chronik_script_utxos.py                    | ○ Skipped | 0 s
chronik_serve.py                           | ○ Skipped | 0 s
chronik_spent_by.py                        | ○ Skipped | 0 s
chronik_token_alp.py                       | ○ Skipped | 0 s
chronik_token_broadcast_txs.py             | ○ Skipped | 0 s
chronik_token_burn.py                      | ○ Skipped | 0 s
chronik_token_id_group.py                  | ○ Skipped | 0 s
chronik_token_parse_failure.py             | ○ Skipped | 0 s
chronik_token_script_group.py              | ○ Skipped | 0 s
chronik_token_slp_fungible.py              | ○ Skipped | 0 s
chronik_token_slp_mint_vault.py            | ○ Skipped | 0 s
chronik_token_slp_nft1.py                  | ○ Skipped | 0 s
chronik_tx.py                              | ○ Skipped | 0 s
chronik_tx_removal_order.py                | ○ Skipped | 0 s
chronik_ws.py                              | ○ Skipped | 0 s
chronik_ws_ordering.py                     | ○ Skipped | 0 s
chronik_ws_ping.py                         | ○ Skipped | 0 s
chronik_ws_script.py                       | ○ Skipped | 0 s
feature_bind_port_discover.py              | ○ Skipped | 0 s
feature_bind_port_externalip.py            | ○ Skipped | 0 s
interface_usdt_net.py                      | ○ Skipped | 0 s
interface_usdt_utxocache.py                | ○ Skipped | 0 s
interface_usdt_validation.py               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 1674 s (accumulated) 
Runtime: 335 s

ninja: build stopped: cannot make progress due to previous errors.
Build build-diff failed with exit code 1

fix obvious compile error

Tail of the build log:

PASSED: avalanche test suite
[437/492] bitcoin: testing sighash_tests
[438/492] Running utility command for check-bitcoin-uint256_tests
[439/492] bitcoin: testing blockmanager_tests
[440/492] Running utility command for check-bitcoin-cuckoocache_tests
[441/492] Running utility command for check-bitcoin-denialofservice_tests
[442/492] Running utility command for check-bitcoin-sighash_tests
[443/492] Running utility command for check-bitcoin-blockmanager_tests
[444/492] pow: testing daa_tests
[445/492] bitcoin: testing validation_chainstate_tests
[446/492] Running utility command for check-pow-daa_tests
[447/492] Running utility command for check-bitcoin-validation_chainstate_tests
[448/492] pow: testing eda_tests
[449/492] Running utility command for check-pow-eda_tests
[450/492] bitcoin: testing wallet_crypto_tests
[451/492] bitcoin: testing coinstatsindex_tests
[452/492] Linking CXX executable src/seeder/test/test-seeder
[453/492] pow: testing grasberg_tests
[454/492] Running utility command for check-bitcoin-wallet_crypto_tests
[455/492] Running utility command for check-bitcoin-coinstatsindex_tests
[456/492] Running utility command for check-pow-grasberg_tests
[457/492] seeder: testing options_tests
[458/492] seeder: testing p2p_messaging_tests
[459/492] seeder: testing message_writer_tests
[460/492] seeder: testing parse_name_tests
[461/492] Running utility command for check-seeder-options_tests
[462/492] Running utility command for check-seeder-message_writer_tests
[463/492] Running utility command for check-seeder-p2p_messaging_tests
[464/492] Running utility command for check-seeder-parse_name_tests
[465/492] seeder: testing write_name_tests
[466/492] Running utility command for check-seeder-write_name_tests
[467/492] Running seeder test suite
PASSED: seeder test suite
[468/492] bitcoin: testing blockcheck_tests
[469/492] Running utility command for check-bitcoin-blockcheck_tests
[470/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/util.cpp.o
[471/492] bitcoin: testing wallet_tests
[472/492] Running utility command for check-bitcoin-wallet_tests
[473/492] bitcoin: testing coinselector_tests
[474/492] Running utility command for check-bitcoin-coinselector_tests
[475/492] pow: testing aserti32d_tests
[476/492] Running utility command for check-pow-aserti32d_tests
[477/492] Running pow test suite
PASSED: pow test suite
[478/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/uritests.cpp.o
[479/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/rpcnestedtests.cpp.o
[480/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/optiontests.cpp.o
[481/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/__/__/wallet/test/wallet_test_fixture.cpp.o
[482/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/test_main.cpp.o
[483/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/paymentservertests.cpp.o
[484/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/wallettests.cpp.o
[485/492] bitcoin: testing coins_tests
[486/492] Running utility command for check-bitcoin-coins_tests
[487/492] Building CXX object src/qt/test/CMakeFiles/test_bitcoin-qt.dir/addressbooktests.cpp.o
[488/492] Linking CXX executable src/qt/test/test_bitcoin-qt
[489/492] bitcoin-qt: testing test_bitcoin-qt
[490/492] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang-tidy failed with exit code 1

Tail of the build log:

cd /work/abc-ci-builds/build-clang/src/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-clang/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-clang/test/log && /usr/bin/cmake -E env /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-clang/test/log/bitcoin-checkpoints_tests.log /work/abc-ci-builds/build-clang/src/test/test_bitcoin --run_test=checkpoints_tests --logger=HRF,message:JUNIT,message,bitcoin-checkpoints_tests.xml --catch_system_errors=no
Segmentation fault (core dumped)
[443/499] bitcoin: testing key_io_tests
[444/499] bitcoin: testing scriptpubkeyman_tests
[445/499] Running utility command for check-bitcoin-key_io_tests
[446/499] bitcoin: testing ismine_tests
[447/499] bitcoin: testing scheduler_tests
[448/499] Running utility command for check-bitcoin-scriptpubkeyman_tests
[449/499] Running utility command for check-bitcoin-ismine_tests
[450/499] Running utility command for check-bitcoin-scheduler_tests
[451/499] bitcoin: testing txvalidationcache_tests
[452/499] Running utility command for check-bitcoin-txvalidationcache_tests
[453/499] bitcoin: testing crypto_tests
[454/499] Running utility command for check-bitcoin-crypto_tests
[455/499] bitcoin: testing cuckoocache_tests
[456/499] bitcoin: testing walletdb_tests
[457/499] Running utility command for check-bitcoin-cuckoocache_tests
[458/499] Running utility command for check-bitcoin-walletdb_tests
[459/499] bitcoin: testing result_tests
[460/499] bitcoin: testing psbt_wallet_tests
[461/499] bitcoin: testing transaction_tests
[462/499] Running utility command for check-bitcoin-psbt_wallet_tests
[463/499] Running utility command for check-bitcoin-transaction_tests
[464/499] bitcoin: testing merkle_tests
[465/499] bitcoin: testing rcu_tests
[466/499] Running utility command for check-bitcoin-result_tests
[467/499] Running utility command for check-bitcoin-merkle_tests
[468/499] Running utility command for check-bitcoin-rcu_tests
[469/499] bitcoin: testing denialofservice_tests
[470/499] bitcoin: testing init_tests
[471/499] bitcoin: testing blockmanager_tests
[472/499] bitcoin: testing uint256_tests
[473/499] Running utility command for check-bitcoin-denialofservice_tests
[474/499] Running utility command for check-bitcoin-init_tests
[475/499] Running utility command for check-bitcoin-uint256_tests
[476/499] Running utility command for check-bitcoin-blockmanager_tests
[477/499] bitcoin: testing sighash_tests
[478/499] bitcoin: testing validation_chainstate_tests
[479/499] Running utility command for check-bitcoin-sighash_tests
[480/499] Running utility command for check-bitcoin-validation_chainstate_tests
[481/499] Linking CXX executable src/qt/test/test_bitcoin-qt
[482/499] bitcoin: testing coinstatsindex_tests
[483/499] bitcoin: testing wallet_crypto_tests
[484/499] Running utility command for check-bitcoin-coinstatsindex_tests
[485/499] Running utility command for check-bitcoin-wallet_crypto_tests
[486/499] bitcoin: testing radix_tests
[487/499] Running utility command for check-bitcoin-radix_tests
[488/499] bitcoin-qt: testing test_bitcoin-qt
[489/499] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[490/499] bitcoin: testing blockcheck_tests
[491/499] Running utility command for check-bitcoin-blockcheck_tests
[492/499] bitcoin: testing wallet_tests
[493/499] Running utility command for check-bitcoin-wallet_tests
[494/499] bitcoin: testing coinselector_tests
[495/499] Running utility command for check-bitcoin-coinselector_tests
[496/499] bitcoin: testing coins_tests
[497/499] Running utility command for check-bitcoin-coins_tests
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang failed with exit code 1

Tail of the build log:

wallet_keypool_topup.py --descriptors      | ○ Skipped | 0 s
wallet_labels.py                           | ○ Skipped | 0 s
wallet_labels.py --descriptors             | ○ Skipped | 0 s
wallet_listreceivedby.py                   | ○ Skipped | 0 s
wallet_listsinceblock.py                   | ○ Skipped | 0 s
wallet_listsinceblock.py --descriptors     | ○ Skipped | 0 s
wallet_listtransactions.py                 | ○ Skipped | 0 s
wallet_listtransactions.py --descriptors   | ○ Skipped | 0 s
wallet_multiwallet.py                      | ○ Skipped | 0 s
wallet_multiwallet.py --descriptors        | ○ Skipped | 0 s
wallet_multiwallet.py --usecli             | ○ Skipped | 0 s
wallet_reorgsrestore.py                    | ○ Skipped | 0 s
wallet_resendwallettransactions.py         | ○ Skipped | 0 s
wallet_send.py                             | ○ Skipped | 0 s
wallet_startup.py                          | ○ Skipped | 0 s
wallet_timelock.py                         | ○ Skipped | 0 s
wallet_txn_clone.py                        | ○ Skipped | 0 s
wallet_txn_clone.py --mineblock            | ○ Skipped | 0 s
wallet_txn_doublespend.py                  | ○ Skipped | 0 s
wallet_txn_doublespend.py --mineblock      | ○ Skipped | 0 s
wallet_watchonly.py                        | ○ Skipped | 0 s
wallet_watchonly.py --usecli               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 938 s (accumulated) 
Runtime: 188 s

[30/460] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.005s

OK
[33/460] cd /work/contrib/devtools/chainparams && /usr/bin/python3.9 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[128/460] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/script_tests.cpp.o
In file included from /usr/include/boost/test/unit_test.hpp:19,
                 from ../../src/test/script_tests.cpp:30:
../../src/test/script_tests.cpp: In member function ‘void script_tests::script_build::test_method()’:
../../src/test/script_tests.cpp:540:22: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
  540 | BOOST_AUTO_TEST_CASE(script_build) {
      |                      ^~~~~~~~~~~~
[196/460] Running seeder test suite
PASSED: seeder test suite
[206/460] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[209/460] Running pow test suite
PASSED: pow test suite
[413/460] bitcoin: testing checkpoints_tests
FAILED: src/test/CMakeFiles/check-bitcoin-checkpoints_tests 
cd /work/abc-ci-builds/build-without-wallet/src/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-without-wallet/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-without-wallet/test/log && /usr/bin/cmake -E env /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-without-wallet/test/log/bitcoin-checkpoints_tests.log /work/abc-ci-builds/build-without-wallet/src/test/test_bitcoin --run_test=checkpoints_tests --logger=HRF,message:JUNIT,message,bitcoin-checkpoints_tests.xml --catch_system_errors=no
Segmentation fault (core dumped)
[434/460] Running avalanche test suite
PASSED: avalanche test suite
[457/460] Running utility command for check-bitcoin-coins_tests
ninja: build stopped: cannot make progress due to previous errors.
Build build-without-wallet failed with exit code 1

Tail of the build log:

chronik_resync.py                          | ○ Skipped | 0 s
chronik_script_confirmed_txs.py            | ○ Skipped | 0 s
chronik_script_history.py                  | ○ Skipped | 0 s
chronik_script_unconfirmed_txs.py          | ○ Skipped | 0 s
chronik_script_utxos.py                    | ○ Skipped | 0 s
chronik_serve.py                           | ○ Skipped | 0 s
chronik_spent_by.py                        | ○ Skipped | 0 s
chronik_token_alp.py                       | ○ Skipped | 0 s
chronik_token_broadcast_txs.py             | ○ Skipped | 0 s
chronik_token_burn.py                      | ○ Skipped | 0 s
chronik_token_id_group.py                  | ○ Skipped | 0 s
chronik_token_parse_failure.py             | ○ Skipped | 0 s
chronik_token_script_group.py              | ○ Skipped | 0 s
chronik_token_slp_fungible.py              | ○ Skipped | 0 s
chronik_token_slp_mint_vault.py            | ○ Skipped | 0 s
chronik_token_slp_nft1.py                  | ○ Skipped | 0 s
chronik_tx.py                              | ○ Skipped | 0 s
chronik_tx_removal_order.py                | ○ Skipped | 0 s
chronik_ws.py                              | ○ Skipped | 0 s
chronik_ws_ordering.py                     | ○ Skipped | 0 s
chronik_ws_ping.py                         | ○ Skipped | 0 s
chronik_ws_script.py                       | ○ Skipped | 0 s
feature_bind_port_discover.py              | ○ Skipped | 0 s
feature_bind_port_externalip.py            | ○ Skipped | 0 s
interface_usdt_net.py                      | ○ Skipped | 0 s
interface_usdt_utxocache.py                | ○ Skipped | 0 s
interface_usdt_validation.py               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 2282 s (accumulated) 
Runtime: 471 s

[332/500] Running secp256k1 test suite
PASSED: secp256k1 test suite
[419/500] bitcoin: testing checkpoints_tests
FAILED: src/test/CMakeFiles/check-bitcoin-checkpoints_tests 
cd /work/abc-ci-builds/build-debug/src/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-debug/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-debug/test/log && /usr/bin/cmake -E env /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-debug/test/log/bitcoin-checkpoints_tests.log /work/abc-ci-builds/build-debug/src/test/test_bitcoin --run_test=checkpoints_tests --logger=HRF,message:JUNIT,message,bitcoin-checkpoints_tests.xml --catch_system_errors=no
Segmentation fault (core dumped)
[458/500] Running pow test suite
PASSED: pow test suite
[469/500] Test Bitcoin RPC authentication...
...
----------------------------------------------------------------------
Ran 3 tests in 0.010s

OK
[470/500] cd /work/contrib/devtools/chainparams && /usr/bin/python3.9 ./test_make_chainparams.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
[473/500] Running seeder test suite
PASSED: seeder test suite
[482/500] Running avalanche test suite
PASSED: avalanche test suite
[485/500] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[497/500] Running utility command for check-bitcoin-coins_tests
ninja: build stopped: cannot make progress due to previous errors.
Build build-debug failed with exit code 1

Tail of the build log:

wallet_multiwallet.py                      | ✓ Passed  | 46 s
wallet_multiwallet.py --descriptors        | ✓ Passed  | 45 s
wallet_multiwallet.py --usecli             | ✓ Passed  | 14 s
wallet_reorgsrestore.py                    | ✓ Passed  | 4 s
wallet_resendwallettransactions.py         | ✓ Passed  | 9 s
wallet_send.py                             | ✓ Passed  | 9 s
wallet_startup.py                          | ✓ Passed  | 4 s
wallet_timelock.py                         | ✓ Passed  | 1 s
wallet_txn_clone.py                        | ✓ Passed  | 2 s
wallet_txn_clone.py --mineblock            | ✓ Passed  | 3 s
wallet_txn_doublespend.py                  | ✓ Passed  | 2 s
wallet_txn_doublespend.py --mineblock      | ✓ Passed  | 3 s
wallet_watchonly.py                        | ✓ Passed  | 2 s
wallet_watchonly.py --usecli               | ✓ Passed  | 2 s
chronik_avalanche.py                       | ○ Skipped | 0 s
chronik_block.py                           | ○ Skipped | 0 s
chronik_block_info.py                      | ○ Skipped | 0 s
chronik_block_txs.py                       | ○ Skipped | 0 s
chronik_blockchain_info.py                 | ○ Skipped | 0 s
chronik_blocks.py                          | ○ Skipped | 0 s
chronik_chronik_info.py                    | ○ Skipped | 0 s
chronik_disable_token_index.py             | ○ Skipped | 0 s
chronik_disallow_prune.py                  | ○ Skipped | 0 s
chronik_mempool_conflicts.py               | ○ Skipped | 0 s
chronik_pause.py                           | ○ Skipped | 0 s
chronik_plugins_setup.py                   | ○ Skipped | 0 s
chronik_raw_tx.py                          | ○ Skipped | 0 s
chronik_resync.py                          | ○ Skipped | 0 s
chronik_script_confirmed_txs.py            | ○ Skipped | 0 s
chronik_script_history.py                  | ○ Skipped | 0 s
chronik_script_unconfirmed_txs.py          | ○ Skipped | 0 s
chronik_script_utxos.py                    | ○ Skipped | 0 s
chronik_serve.py                           | ○ Skipped | 0 s
chronik_spent_by.py                        | ○ Skipped | 0 s
chronik_token_alp.py                       | ○ Skipped | 0 s
chronik_token_broadcast_txs.py             | ○ Skipped | 0 s
chronik_token_burn.py                      | ○ Skipped | 0 s
chronik_token_id_group.py                  | ○ Skipped | 0 s
chronik_token_parse_failure.py             | ○ Skipped | 0 s
chronik_token_script_group.py              | ○ Skipped | 0 s
chronik_token_slp_fungible.py              | ○ Skipped | 0 s
chronik_token_slp_mint_vault.py            | ○ Skipped | 0 s
chronik_token_slp_nft1.py                  | ○ Skipped | 0 s
chronik_tx.py                              | ○ Skipped | 0 s
chronik_tx_removal_order.py                | ○ Skipped | 0 s
chronik_ws.py                              | ○ Skipped | 0 s
chronik_ws_ordering.py                     | ○ Skipped | 0 s
chronik_ws_ping.py                         | ○ Skipped | 0 s
chronik_ws_script.py                       | ○ Skipped | 0 s
feature_bind_port_discover.py              | ○ Skipped | 0 s
feature_bind_port_externalip.py            | ○ Skipped | 0 s
interface_usdt_net.py                      | ○ Skipped | 0 s
interface_usdt_utxocache.py                | ○ Skipped | 0 s
interface_usdt_validation.py               | ○ Skipped | 0 s

ALL                                        | ✓ Passed  | 1725 s (accumulated) 
Runtime: 346 s

ninja: build stopped: cannot make progress due to previous errors.
Build build-diff failed with exit code 1

try with a getter and zero initialization

Tail of the build log:

=================================================================
==8793==ERROR: AddressSanitizer: initialization-order-fiasco on address 0x55fb1e59d6a8 at pc 0x55fb1d77de3f bp 0x7ffc076bec70 sp 0x7ffc076bec68
READ of size 8 at 0x55fb1e59d6a8 thread T0
    #0 0x55fb1d77de3e in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16
    #1 0x55fb1d77de3e in __gnu_cxx::__enable_if<__is_char<char>::__value, bool>::__type std::operator==<char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:6173:21
    #2 0x55fb1d77de3e in CreateChainParams(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /work/abc-ci-builds/build-asan/../../src/chainparams.cpp:500:15
    #3 0x55fb1ae9f218 in checkpoints_tests::MainnetConfigWithTestCheckpoints::createChainParams() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:67:33
    #4 0x55fb1ae9eccf in checkpoints_tests::MainnetConfigWithTestCheckpoints::MainnetConfigWithTestCheckpoints() /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:59:54
    #5 0x55fb1aea34de in __cxx_global_var_init.14 /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp:73:47
    #6 0x55fb1aea34de in _GLOBAL__sub_I_checkpoints_tests.cpp /work/abc-ci-builds/build-asan/../../src/test/checkpoints_tests.cpp
    #7 0x55fb1da02304 in __libc_csu_init (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3eee304)
    #8 0x7f5f22181c99 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23c99)
    #9 0x55fb1a748029 in _start (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc34029)

0x55fb1e59d6a8 is located 56 bytes to the left of global variable 'CBaseChainParams::TESTNET' defined in '../../src/chainparamsbase.cpp:14:37' (0x55fb1e59d6e0) of size 32
  registered at:
    #0 0x55fb1a75886d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
    #1 0x55fb1d89e60f in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a60f)

0x55fb1e59d6a8 is located 8 bytes inside of global variable 'CBaseChainParams::MAIN' defined in '../../src/chainparamsbase.cpp:13:37' (0x55fb1e59d6a0) of size 32
  registered at:
    #0 0x55fb1a75886d in __asan_register_globals (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0xc4486d)
    #1 0x55fb1d89e60f in asan.module_ctor (/work/abc-ci-builds/build-asan/src/test/test_bitcoin+0x3d8a60f)

SUMMARY: AddressSanitizer: initialization-order-fiasco /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:902:16 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const
Shadow bytes around the buggy address:
  0x0abfe3caba80: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3caba90: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabaa0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabab0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabac0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
=>0x0abfe3cabad0: f6 f6 f6 f6 f6[f6]f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabae0: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 00 f9 f9 f9
  0x0abfe3cabaf0: f9 f9 f9 f9 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabb00: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6
  0x0abfe3cabb10: f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 f6 01 f9 f9 f9
  0x0abfe3cabb20: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 f6 f6 f6 f6
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==8793==ABORTING
ninja: build stopped: subcommand failed.
Build build-asan failed with exit code 1