Closed peterbourgon closed 8 years ago
Is there something I can go get to reproduce this?
go get -v -u github.com/go-kit/kit/log
Thanks for the report. This looks like the *Lsym that decode_funcincount
is trying to read into can be nil in some circumstances.
func decode_reloc_sym(s *LSym, off int32) *LSym {
r := decode_reloc(s, off)
if r == nil {
return nil
}
return r.Sym
}
Reproduction:
package main
var three = 3
type CustomT func(...interface{}) error
func (f CustomT) M() {
if 4 < three {
f.M()
}
}
func main() {
var v CustomT
v.M()
}
I believe I understand the cause and will get a CL out soon.
CL https://golang.org/cl/20566 mentions this issue.
go version devel +de4317c
linux/amd64
Travis CI ran the tests for my project, here is the job: https://travis-ci.org/go-kit/kit/jobs/115414128
Tests pass.
The build output is a little confusing, mea culpa. It looks like the test that triggers this panic is from package kit/log, you can find that by searching that page for "build failed".