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

Create a file with these contents and run `go test -race`:

    package main
    import _ "testing"


What is the expected output?

PASS

What do you see instead?

# testmain
/var/folders/gs/mznx8_ps7299rqztvxhggq7c0000gn/T/go-build422539209/_/Users/titanous/projects/go-tests/regexp-import/_test/_testmain.go:5:
can't find import: "regexp"
FAIL

Which version are you using?

go version devel +9c91baff43a1 Wed Sep 25 18:15:29 2013 +1000 darwin/amd64

Please provide any additional information below.

This is a regression since go1.1.2. `hg bisect` indicates that this issue is caused by:

    changeset:   17191:70a7a4257467
    user:        Russ Cox &lt;rsc@golang.org&gt;
    date:        Thu Jun 27 17:04:39 2013 -0400
    summary:     cmd/go: add -coverpkg
    <a href="https://code.google.com/p/go/source/detail?r=70a7a4257467dffb3ec7aa0ec6c1838e9143366a" rel="nofollow">https://code.google.com/p/go/source/detail?r=70a7a4257467dffb3ec7aa0ec6c1838e9143366a</a></pre>
<p dir="auto">by <strong>kevin.dankwardt</strong>:</p>
<pre class="notranslate">1. What is a short input program that triggers the error?

A short program doesn't seem to trigger the error.

The program, called crazylib1.go, that does trigger the error starts with:

package crazylib1
func Crazy1() int {
 s = "bbbbbbbbbbbb"+
"aaaaaaaaaaaaaaaaaaaaaaaaa"+
"aaaaaaaaaaaaaaaaaaaaaaaaa"+


and then has about 10,000 subsequent lines that makes the string longer and longer. All
duplicating that "aaaaaaaaaaaaaaaaaaaa"+ line.
and then is followed by:

"aaaaaaaaaaaaaaaaaaaaaaaaa"+
"aaaaaaaaaaaaaaaaaaaaaaaaa"
    return len(s);
}

func Crazy2() int {
return 2;
}


2. What is the full compiler output?
go build crazylib1: signal: segmentation fault (core dumped)

3. What version of the compiler are you using?  (Run it with the -V flag.)
The command "go version" prints: go version go1.3.3 linux/amd64</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/9035/0/crazylib1.go" rel="nofollow">crazylib1.go</a> (290171 bytes)</li>
</ol>