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