<p dir="auto">by <strong>euug3576</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. download the attached test program
2. obtain a relatively large zip file (e.g.
<a href="http://www.xmind.net/xmind/downloads/xmind-portable-3.2.1.201011212218.zip)" rel="nofollow">http://www.xmind.net/xmind/downloads/xmind-portable-3.2.1.201011212218.zip)</a>
3. run 8g ziptest.go  &amp;&amp; 8l -o ziptest ziptest.8  &amp;&amp; ./ziptest
~/downloads/xmind-portable-3.2.1.201011212218.zip

What is the expected output?
program should loop forever with stable memory usage

What do you see instead?
after about 30 seconds:

runtime: memory allocated by OS not in usable range
runtime: memory allocated by OS not in usable range
runtime: out of memory: cannot allocate 524288-byte block (536870912 in use)
throw: out of memory

goroutine 1 [running]:
bytes.(*Buffer).ReadFrom(0x384f90c0, 0x18616da0, 0x384ee140, 0x3fe00, 0x0, ...)
    /home/Downloads/go/src/pkg/bytes/buffer.go:137 +0x2f0
io.Copy(0x18616d80, 0x384f90c0, 0x18616da0, 0x384ee140, 0x0, ...)
    /home/Downloads/go/src/pkg/io/io.go:328 +0x86
main.main()
    /home/programs/go-fuse/ziptest.go:27 +0x1a7


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

Which operating system are you using?
Ubuntu 11.10 (32-bit)

Which revision are you using?  (hg identify)
82fdc445f2ff weekly.2011-12-14
also tested on 09e6b7463474 tip

Please provide any additional information below.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/2703/0/ziptest.go" rel="nofollow">ziptest.go</a> (685 bytes)</li>
</ol>
<pre class="notranslate">When cgo is used to compile objective-C code (see also CL 4476049), the resulting
objects cannot be linked.
I get errors like this:

_test/tst-go.nowhere.com/tst.a(tst.cgo2.o)(__DATA/__objc_classrefs): unhandled
relocation for OBJC_CLASS_$_NSApplication (type 20 rtype 120)

Given that it is necessary to use Objective-C to interact with much of the Mac OS system
functionality (e.g. graphics), it would be nice to be able to fix this.

Attached is a package that demonstrates the problem (gotest to try).

6g darwin 502384dd99e8+ tip</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/1781/0/tstcgo.zip" rel="nofollow">tstcgo.zip</a> (788 bytes)</li>
</ol>