Page MenuHomePhabricator

[avalanche] Fix a race in the processor tests
ClosedPublic

Authored by Fabien on Sep 1 2022, 09:27.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCa0ffea9a1129: [avalanche] Fix a race in the processor tests
Summary

The quorum detection test creates a new processor but doesn't delete the one from the fixture, causing double registration/deletion upon updated block tip and causing a potential use-after-free issue.

Test Plan

Run the test with ASAN 100 times in a loop.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable