<pre class="notranslate">What steps will reproduce the problem?

Don't know quite how to reproduce this but it seems to happen when deflating a tarball
we are creating using archive/tar to contain about 6 log files each of about 500 MB in
size. Maybe we are hitting some kind of 2 GB limit somewhere?

What do you see instead?

top of stack:

compress/flate.(*compressor).findMatch(0xf84153f0b0, 0x7fd87fff0000aa57, 0x55a900000002,
0x2, 0x0, ...)
go/src/pkg/compress/flate/deflate.go:157 +0x10e
compress/flate.(*compressor).deflate(0xf84153f0b0, 0xf8b5181e00)
go/src/pkg/compress/flate/deflate.go:266 +0x413
compress/flate.(*compressor).write(0xf84153f0b0, 0xf8b5189e00, 0x199a51a5199a51a5,
0xf81d25afa5, 0x0, ...)
go/src/pkg/compress/flate/deflate.go:359 +0xa0
compress/flate.(*Writer).Write(0xf84153f0b0, 0xf8b18d4000, 0x1d25afa51d25afa5,
0xf91d25afa5, 0x0, ...)
go/src/pkg/compress/flate/deflate.go:469 +0x54
compress/gzip.(*Writer).Write(0xf840112f20, 0xf8b18d4000, 0x1d25afa51d25afa5,
0xf929745094, 0x16c00000007, ...)
go/src/pkg/compress/gzip/gzip.go:190 +0x56c
archive/tar.(*Writer).Write(0xf8400a3f80, 0xf8b18d4000, 0x1d25afa51d25afa5, 0x0, 0x0,
...)
go/src/pkg/archive/tar/writer.go:184 +0xc7

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using?  (run 'go version')

revision 8db1b9223486

Please provide any additional information below.</pre>
<p dir="auto">Now that we have internal packages we should make the go tool use an internal copy of the <code class="notranslate">vcs</code> package from the <code class="notranslate">tools</code> repo, so that we can keep the two in sync.</p>