HomePhabricator

Fix the abc-p2p-compactblocks when running whith UBSAN

Description

Fix the abc-p2p-compactblocks when running whith UBSAN

Summary:
UBSAN causes the functional test abc-p2p-compactblocks to timeout, but
it does not exhibit undefined behavior (no output from the sanitizer).
Increasing the RPC timeout fixes the issue.

Test Plan:

cmake -GNinja .. \
  -DCMAKE_BUILD_TYPE=Debug \
  -DENABLE_SANITIZERS=undefined \
  -DCCACHE=OFF \
  -DCMAKE_C_COMPILER=clang \
  -DCMAKE_CXX_COMPILER=clang++
ninja
mkdir -p /tmp/sanitizer_logs
export UBSAN_OPTIONS="suppressions=../test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:log_path=/tmp/sanitizer_logs/ubsan.log"
./test/functional/test_runner.py abc-p2p-compactblocks

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4901

Details

Provenance
FabienAuthored on Jan 11 2020, 13:53
FabienPushed on Jan 13 2020, 07:12
Reviewer
Restricted Project
Differential Revision
D4901: Fix the abc-p2p-compactblocks when running whith UBSAN
Parents
rABCc726ea571ace: Fix extra parenthesis in python .format()
Branches
Unknown
Tags
Unknown