Page MenuHomePhabricator

Merge #14993: rpc: Fix data race (UB) in InterruptRPC()
ClosedPublic

Authored by markblundeberg on Feb 6 2020, 09:37.

Details

Summary

Backport PR14993 . Fixes T733 .

6c10037f72073eecc674c313580ef50a4f1e1e44 rpc: Fix data race (UB) in InterruptRPC() (practicalswift)

Pull request description:

Fix data race (UB) in `InterruptRPC()`.

Before:

```
$ ./configure --with-sanitizers=thread
$ make
$ test/functional/test_runner.py feature_shutdown.py
…
SUMMARY: ThreadSanitizer: data race rpc/server.cpp:314 in InterruptRPC()
…
ALL                 | ✖ Failed  | 2 s (accumulated)
```

After:

```
$ ./configure --with-sanitizers=thread
$ make
$ test/functional/test_runner.py feature_shutdown.py
…
ALL                 | ✓ Passed  | 3 s (accumulated)
```
Test Plan

ninja check-all ; run tests with TSAN

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr14993
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9296
Build 16529: Default Diff Build & Tests
Build 16528: arc lint + arc unit

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those Bitcoin Core PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Feb 6 2020, 09:57