Skip to content

net: replace manual reference counting of CNode with shared_ptr

Cirrus CI / fuzzer,address,undefined,integer, no depends failed Mar 7, 2025 in 1h 13m 51s

Task Summary

Instruction ci failed in 01:13:42

Details

✅ 00:03 clone
✅ 00:01 merge_base
❌ 01:13:42 ci

[05:17:44.029] SUMMARY: libFuzzer: deadly signal
[05:17:44.029] MS: 0 ; base unit: 0000000000000000000000000000000000000000
[05:17:44.029] 0xa7,
[05:17:44.029] \247
[05:17:44.029] artifact_prefix='./'; Test unit written to ./crash-dcf5bf6c63ba8e32483f75660b3a6a0f5d764483
[05:17:44.029] Base64: pw==
[05:17:44.029] 
[05:17:44.030] INFO: Running with entropic power schedule (0xFF, 100).
[05:17:44.030] INFO: Seed: 3758320807
[05:17:44.030] INFO: Loaded 1 modules   (623247 inline 8-bit counters): 623247 [0x55ff32a3b0a8, 0x55ff32ad3337), 
[05:17:44.030] INFO: Loaded 1 PC tables (623247 PCs): 623247 [0x55ff32ad3338,0x55ff33455c28), 
[05:17:44.030] INFO:     1177 files found in /ci_container_base/ci/scratch/qa-assets/fuzz_corpora/p2p_headers_presync
[05:17:44.030] INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 1048551 bytes
[05:17:44.030] INFO: seed corpus: files: 1177 min: 1b max: 1048551b total: 13014368b rss: 152Mb
[05:17:44.030] net_processing.cpp:295 SetTxRelay: Assertion `!m_tx_relay' failed.
[05:17:44.030] ==7873== ERROR: libFuzzer: deadly signal
[05:17:44.030]     #0 0x55ff2f4aa895 in __sanitizer_print_stack_trace (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1d5a895) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #1 0x55ff2f3f97bc in fuzzer::PrintStackTrace() (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1ca97bc) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #2 0x55ff2f3dea47 in fuzzer::Fuzzer::CrashCallback() (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c8ea47) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #3 0x7fb03ea8932f  (/lib/x86_64-linux-gnu/libc.so.6+0x4532f) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #4 0x7fb03eae2b2b in pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2b) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #5 0x7fb03ea8927d in raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527d) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #6 0x7fb03ea6c8fe in abort (/lib/x86_64-linux-gnu/libc.so.6+0x288fe) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #7 0x55ff2f2eac20 in assertion_fail(std::basic_string_view<char, std::char_traits<char>>, int, std::basic_string_view<char, std::char_traits<char>>, std::basic_string_view<char, std::char_traits<char>>) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/util/./util/check.cpp:34:5
[05:17:44.030]     #8 0x55ff30d089cb in bool&& inline_assertion_check<false, bool>(bool&&, char const*, int, char const*, char const*) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/./util/check.h:59:13
[05:17:44.030]     #9 0x55ff30d089cb in (anonymous namespace)::Peer::SetTxRelay() /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/./net_processing.cpp:295:9
[05:17:44.030]     #10 0x55ff30cbd613 in (anonymous namespace)::PeerManagerImpl::ProcessMessage(CNode&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, DataStream&, std::chrono::duration<long, std::ratio<1l, 1000000l>>, std::atomic<bool> const&) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/./net_processing.cpp:3503:42
[05:17:44.030]     #11 0x55ff30cd3ce3 in (anonymous namespace)::PeerManagerImpl::ProcessMessages(CNode*, std::atomic<bool>&) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/./net_processing.cpp:4990:9
[05:17:44.030]     #12 0x55ff309e678c in ConnmanTestMsg::ProcessMessagesOnce(CNode&) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/util/./test/util/net.h:80:27
[05:17:44.030]     #13 0x55ff309e678c in ConnmanTestMsg::Handshake(CNode&, bool, ServiceFlags, ServiceFlags, int, bool) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/util/./test/util/net.cpp:54:13
[05:17:44.030]     #14 0x55ff2f9e3679 in (anonymous namespace)::HeadersSyncSetup::ResetAndInitialize() /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/./test/fuzz/p2p_headers_presync.cpp:66:17
[05:17:44.030]     #15 0x55ff2f9e3679 in p2p_headers_presync_fuzz_target(std::span<unsigned char const, 18446744073709551615ul>) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/./test/fuzz/p2p_headers_presync.cpp:164:22
[05:17:44.030]     #16 0x55ff2fd5a37e in std::function<void (std::span<unsigned char const, 18446744073709551615ul>)>::operator()(std::span<unsigned char const, 18446744073709551615ul>) const /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:591:9
[05:17:44.030]     #17 0x55ff2fd5a37e in test_one_input(std::span<unsigned char const, 18446744073709551615ul>) /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/util/./test/fuzz/fuzz.cpp:85:5
[05:17:44.030]     #18 0x55ff2fd5a37e in LLVMFuzzerTestOneInput /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/util/./test/fuzz/fuzz.cpp:223:5
[05:17:44.030]     #19 0x55ff2f3e001f in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c9001f) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #20 0x55ff2f3df629 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool, bool*) (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c8f629) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #21 0x55ff2f3e13a2 in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::vector<fuzzer::SizedFile, std::allocator<fuzzer::SizedFile>>&) (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c913a2) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #22 0x55ff2f3e18c0 in fuzzer::Fuzzer::Loop(std::vector<fuzzer::SizedFile, std::allocator<fuzzer::SizedFile>>&) (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c918c0) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #23 0x55ff2f3cdf15 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c7df15) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #24 0x55ff2f3fa326 in main (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1caa326) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030]     #25 0x7fb03ea6e1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #26 0x7fb03ea6e28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
[05:17:44.030]     #27 0x55ff2f3c2354 in _start (/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1c72354) (BuildId: 9702fbcc445effb4e76157123fcfc4d1fe999dba)
[05:17:44.030] 
[05:17:44.030] NOTE: libFuzzer has rudimentary signal handlers.
[05:17:44.030]       Combine libFuzzer with AddressSanitizer or similar for better crash reports.
[05:17:44.030] SUMMARY: libFuzzer: deadly signal
[05:17:44.030] MS: 0 ; base unit: 0000000000000000000000000000000000000000
[05:17:44.030] 0xa7,
[05:17:44.030] \247
[05:17:44.030] artifact_prefix='./'; Test unit written to ./crash-dcf5bf6c63ba8e32483f75660b3a6a0f5d764483
[05:17:44.030] Base64: pw==
[05:17:44.030] 
[05:17:44.030] ⚠️ Failure generated from target with exit code 77: ['/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/fuzz/fuzz', '-runs=1', PosixPath('/ci_container_base/ci/scratch/qa-assets/fuzz_corpora/p2p_headers_presync')]
������