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

sentry: stopper.go:182: runtime.errorString: runtime error: index out of range #34674

Closed
cockroach-teamcity opened this issue Feb 6, 2019 · 1 comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report.

Comments

@cockroach-teamcity
Copy link
Member

This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.

Sentry link: https://sentry.io/cockroach-labs/cockroachdb/issues/875070955/?referrer=webhooks_plugin

Panic message:

stopper.go:182: runtime.errorString: runtime error: index out of range

Stacktrace (expand for inline code snippets):

/usr/local/go/src/runtime/asm_amd64.s#L572-L574 in runtime.call32
/usr/local/go/src/runtime/panic.go#L501-L503 in runtime.gopanic
/usr/local/go/src/runtime/panic.go#L27-L29 in runtime.panicindex

if m.ScanFormat != 0 {
dAtA[i] = 0x20
i++
in pkg/roachpb.(*ScanRequest).MarshalTo

cockroach/pkg/roachpb/api.pb.go

Lines 10415 to 10417 in 89ce71e

i = encodeVarintApi(dAtA, i, uint64(m.Scan.Size()))
n145, err := m.Scan.MarshalTo(dAtA[i:])
if err != nil {
in pkg/roachpb.(*RequestUnion_Scan).MarshalTo

cockroach/pkg/roachpb/api.pb.go

Lines 10316 to 10318 in 89ce71e

if m.Value != nil {
nn138, err := m.Value.MarshalTo(dAtA[i:])
if err != nil {
in pkg/roachpb.(*RequestUnion).MarshalTo

cockroach/pkg/roachpb/api.pb.go

Lines 11728 to 11730 in 89ce71e

i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
in pkg/roachpb.(*BatchRequest).MarshalTo

cockroach/pkg/roachpb/api.pb.go

Lines 11703 to 11705 in 89ce71e

dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
in pkg/roachpb.(*BatchRequest).Marshal
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/encoding/proto/proto.go#L69-L71 in vendor/google.golang.org/grpc/encoding/proto.codec.Marshal
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/rpc_util.go#L486-L488 in vendor/google.golang.org/grpc.encode
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/stream.go#L478-L480 in vendor/google.golang.org/grpc.(*csAttempt).sendMsg
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/stream.go#L478-L480 in vendor/google.golang.org/grpc.(*csAttempt).sendMsg
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/stream.go#L399-L401 in vendor/google.golang.org/grpc.(*clientStream).SendMsg
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/call.go#L74-L76 in vendor/google.golang.org/grpc.invoke
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/client.go#L43-L45 in vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingClientInterceptor.func1
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/call.go#L34-L36 in vendor/google.golang.org/grpc.(*ClientConn).Invoke
https://github.com/cockroachdb/cockroach/blob/89ce71e9b733df3855b370aa20bb809db3d4362c/vendor/google.golang.org/grpc/call.go#L59-L61 in vendor/google.golang.org/grpc.Invoke
out := new(BatchResponse)
err := grpc.Invoke(ctx, "/cockroach.roachpb.Internal/Batch", in, out, c.cc, opts...)
if err != nil {
in pkg/roachpb.(*internalClient).Batch
}
reply, err := iface.Batch(ctx, &ba)
// If we queried a remote node, perform extra validation and
in pkg/kv.(*grpcTransport).sendBatch
ba.Replica = client.replica
reply, err := gt.sendBatch(ctx, iface, ba)
in pkg/kv.(*grpcTransport).SendNext
}
br, err := transport.SendNext(ctx, ba)
in pkg/kv.(*DistSender).sendToReplicas
return ds.sendToReplicas(
ctx,
in pkg/kv.(*DistSender).sendRPC
br, err := ds.sendRPC(ctx, desc.RangeID, replicas, ba, cachedLeaseHolder)
if err != nil {
in pkg/kv.(*DistSender).sendSingleRange
reply, pErr = ds.sendSingleRange(ctx, ba, desc)
in pkg/kv.(*DistSender).sendPartialBatch
ds.metrics.AsyncSentCount.Inc(1)
responseCh <- ds.sendPartialBatch(ctx, ba, rs, desc, evictToken, batchIdx, true /* needsTruncate */)
},
in pkg/kv.(*DistSender).sendPartialBatchAsync.func1
f(ctx)
}()
in pkg/util/stop.(*Stopper).RunLimitedAsyncTask.func1

/usr/local/go/src/runtime/asm_amd64.s in runtime.call32 at line 573
/usr/local/go/src/runtime/panic.go in runtime.gopanic at line 502
/usr/local/go/src/runtime/panic.go in runtime.panicindex at line 28
pkg/roachpb/api.pb.go in pkg/roachpb.(*ScanRequest).MarshalTo at line 7422
pkg/roachpb/api.pb.go in pkg/roachpb.(*RequestUnion_Scan).MarshalTo at line 10416
pkg/roachpb/api.pb.go in pkg/roachpb.(*RequestUnion).MarshalTo at line 10317
pkg/roachpb/api.pb.go in pkg/roachpb.(*BatchRequest).MarshalTo at line 11729
pkg/roachpb/api.pb.go in pkg/roachpb.(*BatchRequest).Marshal at line 11704
vendor/google.golang.org/grpc/encoding/proto/proto.go in vendor/google.golang.org/grpc/encoding/proto.codec.Marshal at line 70
vendor/google.golang.org/grpc/rpc_util.go in vendor/google.golang.org/grpc.encode at line 487
vendor/google.golang.org/grpc/stream.go in vendor/google.golang.org/grpc.(*csAttempt).sendMsg at line 479
vendor/google.golang.org/grpc/stream.go in vendor/google.golang.org/grpc.(*csAttempt).sendMsg at line 479
vendor/google.golang.org/grpc/stream.go in vendor/google.golang.org/grpc.(*clientStream).SendMsg at line 400
vendor/google.golang.org/grpc/call.go in vendor/google.golang.org/grpc.invoke at line 75
vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/client.go in vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingClientInterceptor.func1 at line 44
vendor/google.golang.org/grpc/call.go in vendor/google.golang.org/grpc.(*ClientConn).Invoke at line 35
vendor/google.golang.org/grpc/call.go in vendor/google.golang.org/grpc.Invoke at line 60
pkg/roachpb/api.pb.go in pkg/roachpb.(*internalClient).Batch at line 6570
pkg/kv/transport.go in pkg/kv.(*grpcTransport).sendBatch at line 199
pkg/kv/transport.go in pkg/kv.(*grpcTransport).SendNext at line 169
pkg/kv/dist_sender.go in pkg/kv.(*DistSender).sendToReplicas at line 1319
pkg/kv/dist_sender.go in pkg/kv.(*DistSender).sendRPC at line 391
pkg/kv/dist_sender.go in pkg/kv.(*DistSender).sendSingleRange at line 469
pkg/kv/dist_sender.go in pkg/kv.(*DistSender).sendPartialBatch at line 1095
pkg/kv/dist_sender.go in pkg/kv.(*DistSender).sendPartialBatchAsync.func1 at line 1017
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunLimitedAsyncTask.func1 at line 385
Tag Value
Cockroach Release v2.1.4
Cockroach SHA: 89ce71e
Platform linux amd64
Distribution CCL
Environment v2.1.4
Command server
Go Version go1.10.7
# of CPUs 64
# of Goroutines 6319
@cockroach-teamcity cockroach-teamcity added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. labels Feb 6, 2019
@nvanbenschoten
Copy link
Member

Closed by #37495.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report.
Projects
None yet
Development

No branches or pull requests

2 participants