Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Panic: Concurrent Map Writes #323

Closed
cvgw opened this issue Jan 3, 2020 · 1 comment
Closed

Panic: Concurrent Map Writes #323

cvgw opened this issue Jan 3, 2020 · 1 comment

Comments

@cvgw
Copy link

cvgw commented Jan 3, 2020

Expected behavior

container-diff diff does not panic due to concurrent map writes

Actual behavior

image1 = processImage(image1Arg, errChan)

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

hardlinks[target] = linkname

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

  1. I haven't seen this error locally; only in the kaniko kokoro build
@nkubala
Copy link
Contributor

nkubala commented Jan 7, 2020

@cvgw thanks for the issue. our team doesn't really have the engineering bandwidth to fix this issue right now, but contributions are certainly welcome. this should be fixable by using a SyncMap

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants