<pre class="notranslate">This is possibly a duplicate of 3573, but is logged since the problem does not appear to
be completely fixed at tip, so it was suggested that I relog.

$ go version
go version weekly.2012-03-27 +d8e47164f8dd

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Run one of the variations of the program at:
<a href="http://play.golang.org/p/wG8AK7AAQl" rel="nofollow">http://play.golang.org/p/wG8AK7AAQl</a>

Variations include changing const id = ... to var id = ... and also changing the values
assigned to id. The struct sp can also be defined as a struct { string int string int }
to the same effect as presented in the linked code.

What is the expected output?
The numbers 0-499 on separate line.


What do you see instead?
The numbers 0-81 on separate lines followed by any of (variable results for any given
program):
1. 'throw: hashmap assert'
when id is const or var "", var or const "a", var ~&gt;
"naaa" (4-words checked only)

2. 'invalid memory address or nil pointer dereference'
when id is var ""

3. 'unexpected fault address'
when id is const or var "a" or ~&lt; "naaa" (4-words checked)

4. no termination with 100% CPU usage.
when id is const or var ~&gt; "naaa" (4-words checked only)

NB 4-words not exhaustively checked.

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')
go version weekly.2012-03-27 +d8e47164f8dd

Please provide any additional information below.
Using sf with only the int field or the string field results in normal behaviour.</pre>
<p dir="auto">I feel like I saw this issue discussed somewhere already, but now I can't find an issue or golang-dev discussion. Apologies if this is a duplicate.</p>
<p dir="auto">The instructions at <a href="https://golang.org/doc/install/source" rel="nofollow">https://golang.org/doc/install/source</a> say</p>
<blockquote>
<p dir="auto">Go will install to a directory named go. Change to the directory that will be its parent and make sure the go directory does not exist. Then clone the repository and check out the latest release tag:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone https://go.googlesource.com/go
$ cd go
$ git checkout go1.4.1"><pre class="notranslate"><code class="notranslate">$ git clone https://go.googlesource.com/go
$ cd go
$ git checkout go1.4.1
</code></pre></div>
</blockquote>
<p dir="auto">but of course this is out of date and should be 1.4.2.</p>
<p dir="auto">It would be even better if this could be updated automatically for new releases, or at least if there were some list of all references to be updated.</p>