Skip to content

archive/zip: data race #3968

Description

@dvyukov
ThreadSanitizer says:

WARNING: DATA RACE
Write by goroutine 24:
  archive/zip.readDataDescriptor()
      src/pkg/archive/zip/reader.go:267 +0x2be
  archive/zip.(*checksumReader).Read()
      src/pkg/archive/zip/reader.go:164 +0x294
  bytes.(*Buffer).ReadFrom()
      src/pkg/bytes/buffer.go:166 +0x3cc
  io.Copy()
      src/pkg/io/io.go:352 +0xc6
  archive/zip.readTestFile()
      src/pkg/archive/zip/reader_test.go:329 +0x7ad
  archive/zip.func·001()
      src/pkg/archive/zip/reader_test.go:287 +0x16d

Previous read by goroutine 27:
  archive/zip.(*File).Open()
      src/pkg/archive/zip/reader.go:126 +0xbf
  archive/zip.readTestFile()
      src/pkg/archive/zip/reader_test.go:319 +0x4ca
  archive/zip.func·001()
      src/pkg/archive/zip/reader_test.go:287 +0x16d

Goroutine 24 (running) created at:
  archive/zip.readTestZip()
      src/pkg/archive/zip/reader_test.go:289 +0x834
  archive/zip.TestReader()
      src/pkg/archive/zip/reader_test.go:236 +0xe7
  testing.tRunner()
      src/pkg/testing/testing.go:297 +0xc9

Goroutine 27 (running) created at:
  archive/zip.readTestZip()
      src/pkg/archive/zip/reader_test.go:289 +0x834
  archive/zip.TestReader()
      src/pkg/archive/zip/reader_test.go:236 +0xe7
  testing.tRunner()
      src/pkg/testing/testing.go:297 +0xc9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions