libnetwork icon indicating copy to clipboard operation
libnetwork copied to clipboard

DATA RACE in network.go and store.go

Open Vanient opened this issue 5 years ago • 1 comments

Hi all~

when i use TSAN to test docker,data race found in libnetwork store.go:148 and network.go:1165 when n.ctrlr is written in getNetworksFromStore() image it is read by CreateEndpoint() image

is anybody has good idea to fix it? Thanks~

Vanient avatar Aug 31 '21 12:08 Vanient

Thanks for reporting!

Note that the code in this repo has been moved to https://github.com/moby/moby/tree/master/libnetwork. This repo is effectively defunct, and not actively watched by maintainers.

Also, this code migh have changed in the last three years, and we're aware that there are races in some of our 'business logic' (although this one seems to be more like a 'technical race').

As such, let me close this issue.

akerouanton avatar Oct 02 '24 21:10 akerouanton