Open
Description
What version of Go are you using (go version
)?
I'm using bazel rules_go release v0.22.6 which is using go 1.14.2.
Does this issue reproduce with the latest release?
I'm not sure, this issue is not consistently reproducible.
What operating system and processor architecture are you using (go env
)?
linux_amd64
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/preston/.cache/go-build" GOENV="/home/preston/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/preston/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/snap/go/6123" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/snap/go/6123/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build083098668=/tmp/go-build -gno-record-gcc-switches"
What did you do?
I was running llvm libfuzzer tests and saw this testcase appear. Binaries compiled with gc_goopts=-d=libfuzzer and linked with address sanitizer.
What did you expect to see?
No panics from the core select logic.
What did you see instead?
An index out of range here
Line 48 in 074f2d8
Full stack error below
fatal error: index out of range
--
|
| goroutine 83 [running]:
| runtime.throw(0x28d934, 0x12)
| GOROOT/src/runtime/panic.go:1116 +0x74 fp=0x10c00007b910 sp=0x10c00007b8e0 pc=0x883a74
| runtime.panicCheck1(0x8951ed, 0x28d934, 0x12)
| GOROOT/src/runtime/panic.go:34 +0xdd fp=0x10c00007b940 sp=0x10c00007b910 pc=0x88125d
| runtime.goPanicIndex(0x3d48, 0x7)
| GOROOT/src/runtime/panic.go:87 +0x46 fp=0x10c00007b988 sp=0x10c00007b940 pc=0x881326
| runtime.sellock(0x10c00007be90, 0x7, 0x7, 0x7f60c6d2c876, 0x7, 0x7)
| GOROOT/src/runtime/select.go:48 +0xad fp=0x10c00007b9b8 sp=0x10c00007b988 pc=0x8951ed
| runtime.selectgo(0x10c00007be90, 0x10c00007bb64, 0x7, 0x5, 0x8fb701)
| GOROOT/src/runtime/select.go:319 +0xcc2 fp=0x10c00007bae0 sp=0x10c00007b9b8 pc=0x896092
| github.com/ethereum/go-ethereum/consensus/ethash.(*remoteSealer).loop(0x10c000012f00)
| external/com_github_ethereum_go_ethereum/consensus/ethash/sealer.go:278 +0x25a fp=0x10c00007bfd8 sp=0x10c00007bae0 pc=0x16098fa
| runtime.goexit()
| src/runtime/asm_amd64.s:1373 +0x1 fp=0x10c00007bfe0 sp=0x10c00007bfd8 pc=0x8b4ff1
| created by github.com/ethereum/go-ethereum/consensus/ethash.startRemoteSealer
| external/com_github_ethereum_go_ethereum/consensus/ethash/sealer.go:262 +0x2b0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage Backlog