This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Panic: Concurrent Map Writes #323
Closed
Description
Expected behavior
container-diff diff
does not panic due to concurrent map writes
Actual behavior
Line 118 in bca8ca4
Will cause a panic due to concurrent map writes
This is because processImage
is called in two goroutines.
processImage
eventually calls util.unpackTar
which has unsynchronized access to util.hardlinks
container-diff/pkg/util/tar_utils.go
Line 137 in bca8ca4
Information
- container-diff version: I'm trying to figure this out (it's the kaniko kokoro build)
- Operating system: I'm trying to figure this out (it's the kaniko kokoro build)
Steps to reproduce the behavior
- I haven't seen this error locally; only in the kaniko kokoro build
Metadata
Metadata
Assignees
Labels
No labels