don't pass the avalanche processor pointer by reference to the TreadImport lambda
Summary:
This causes an intermittent ASAN failure. There is probably some undefined behavior involved.
Depends on D16317
Test Plan:
cmake -GNinja .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DENABLE_SANITIZERS="address;undefined" 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=../test/sanitizer_suppressions/lsan:log_path=stdout python ./test/functional/test_runner.py feature_init
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D16319