Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile/internal/ssa: BenchmarkCSEPass panics #15801

Closed
cherrymui opened this issue May 23, 2016 · 0 comments

Comments

@cherrymui
Copy link
Contributor

commented May 23, 2016

What version of Go are you using (go version)?
go version devel +4b6e560 Sun May 22 01:41:05 2016 +0000 darwin/amd64

$ go test -v -run=XXX -bench=CSEPass cmd/compile/internal/ssa
panic: runtime error: index out of range

goroutine 6 [running]:
panic(0x223380, 0xc4200100b0)
    /Users/cherryyz/src/go-tip/src/runtime/panic.go:500 +0x18c
cmd/compile/internal/ssa.(*sortbyentry).Less(0xc42048a240, 0x0, 0x7d, 0x30)
    <autogenerated>:144 +0xba
sort.medianOfThree(0x36d2e0, 0xc42048a240, 0x0, 0x7d, 0xfa)
    /Users/cherryyz/src/go-tip/src/sort/sort.go:74 +0x3f
sort.doPivot(0x36d2e0, 0xc42048a240, 0x0, 0x3e8, 0xc4205d0000, 0x3e8)
    /Users/cherryyz/src/go-tip/src/sort/sort.go:99 +0x5e4
sort.quickSort(0x36d2e0, 0xc42048a240, 0x0, 0x3e8, 0x13)
    /Users/cherryyz/src/go-tip/src/sort/sort.go:188 +0x73
sort.Sort(0x36d2e0, 0xc42048a240)
    /Users/cherryyz/src/go-tip/src/sort/sort.go:222 +0x76
cmd/compile/internal/ssa.cse(0xc420092000)
    /Users/cherryyz/src/go-tip/src/cmd/compile/internal/ssa/cse.go:140 +0x109a
cmd/compile/internal/ssa.benchFnPass(0xc4200d2140, 0x2910b8, 0x3e8, 0x291128)
    /Users/cherryyz/src/go-tip/src/cmd/compile/internal/ssa/passbm_test.go:42 +0x15e
cmd/compile/internal/ssa.BenchmarkCSEPass(0xc4200d2140)
    /Users/cherryyz/src/go-tip/src/cmd/compile/internal/ssa/passbm_test.go:20 +0x42
testing.(*B).runN(0xc4200d2140, 0x1)
    /Users/cherryyz/src/go-tip/src/testing/benchmark.go:139 +0xa0
testing.(*B).run1.func1(0xc4200d2140)
    /Users/cherryyz/src/go-tip/src/testing/benchmark.go:208 +0x50
created by testing.(*B).run1
    /Users/cherryyz/src/go-tip/src/testing/benchmark.go:209 +0x6f
exit status 2
FAIL    cmd/compile/internal/ssa    0.057s
@gopherbot gopherbot closed this in 7a9f6c2 May 23, 2016
@golang golang locked and limited conversation to collaborators May 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.