<p dir="auto">by <strong>ZhaoChengbing87</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
<a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a>  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What does 'go version' print?

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1.  go version go1.2 linux/amd64
2.  init *regexp.Regexp with an empty string, run MatchString()
3. codes are posted here

package main

import (
    "fmt"
    "regexp"
)

var (
    //fileRegexp = `chat.log`
    fileRegexp string
    reg        = regexp.MustCompile(fileRegexp)
)

func main() {
    fileRegexp = `chat.log`
    var teststring = []string{"chat.log", "a", "b", "c", "not_match"}
    fmt.Println("reg pointer is :", reg)
    for _, testcase := range teststring {
        if reg.MatchString(testcase) {
            fmt.Println(testcase, "matches", fileRegexp)
        }
    }

}

What happened?
we get answers like
reg pointer is : 
chat.log matches chat.log
a matches chat.log
b matches chat.log
c matches chat.log
not_match matches chat.log

which is obviously wrong

What should have happened instead?
programme should panic or report an compile error
Please provide any additional information below.
no additional information</pre>
<p dir="auto">by <strong>nathan.eriksen</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. ./all.bash

What is the expected output? What do you see instead?

6g -o _gotest_.6 common.go reader.go writer.go reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.6
make[2]: Leaving directory `/scratch/build_scratch/go64/src/pkg/archive/tar'
 /scratch/build_scratch/go64/bin/gotest: line 152: 24002  Killed                  $E ./$O.out "$@"
 make[1]: *** [test] Error 137
 make[1]: Leaving directory
 `/scratch/build_scratch/go64/src/pkg/archive/tar'
 make: *** [archive/tar.test] Error 2


What is your $GOOS?  $GOARCH?
GOOS=linux
GOARCH=amd64

Which revision are you sync'ed to?  (hg log -l 1)
changeset: 4037:cd0140653802 


Please provide any additional information below.
uname -a: Linux 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov 2 12:38:56 EDT 2007 x86_64 x86_64
x86_64 GNU/Linux



Seems like something on my system is not configured conducive to Go/64.  I also did a
hello.go right 
after the test on archive/tar fails, and get this: 

$ strace hello
execve("./hello", ["hello"], [/* 80 vars */]) = 0
+++ killed by SIGKILL +++
Process 1391 detached</pre>