Skip to content
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
Closed
@cvgw

Description

@cvgw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions