You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This is because processImage is called in two goroutines. processImage eventually calls util.unpackTar which has unsynchronized access to util.hardlinks
Expected behavior
container-diff diffdoes not panic due to concurrent map writesActual behavior
container-diff/cmd/diff.go
Line 118 in bca8ca4
Will cause a panic due to concurrent map writes
This is because
processImageis called in two goroutines.processImageeventually callsutil.unpackTarwhich has unsynchronized access toutil.hardlinkscontainer-diff/pkg/util/tar_utils.go
Line 137 in bca8ca4
Information
Steps to reproduce the behavior