mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
fuzz: Avoid dangling prevoutfetch threads after AFL fork
This commit is contained in:
@@ -307,8 +307,10 @@ ChainTestingSetup::ChainTestingSetup(const ChainType chainType, TestOpts opts)
|
||||
.check_block_index = 1,
|
||||
.notifications = *m_node.notifications,
|
||||
.signals = m_node.validation_signals.get(),
|
||||
// Use no worker threads while fuzzing to avoid non-determinism
|
||||
// Use no worker threads while fuzzing to avoid racy non-determinism
|
||||
// and dangling thread handles if AFL forks after initialization.
|
||||
.worker_threads_num = EnableFuzzDeterminism() ? 0 : 2,
|
||||
.prevoutfetch_threads_num = EnableFuzzDeterminism() ? 0 : 2,
|
||||
};
|
||||
if (opts.min_validation_cache) {
|
||||
chainman_opts.script_execution_cache_bytes = 0;
|
||||
|
||||
Reference in New Issue
Block a user