cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.08k stars 3.8k forks source link

Sentry: panic.go:770: runtime error: index out of range [0] with length 0 (1) attached stack trace -- stack trace: | runtime.gopanic | GOROOT/src/runtime/panic.go:770 | runtime.goPanicIndex ... #129769

Open cockroach-sentry opened 2 months ago

cockroach-sentry commented 2 months ago

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

Sentry Link: https://cockroach-labs.sentry.io/issues/5765615833/?referrer=webhooks_plugin

Panic Message:

panic.go:770: runtime error: index out of range [0] with length 0
(1) attached stack trace
  -- stack trace:
  | runtime.gopanic
  |     GOROOT/src/runtime/panic.go:770
  | runtime.goPanicIndex
  |     GOROOT/src/runtime/panic.go:114
  | github.com/cockroachdb/cockroach/pkg/server/status.(*RuntimeStatSampler).SampleEnvironment
  |     github.com/cockroachdb/cockroach/pkg/server/status/runtime.go:719
  | github.com/cockroachdb/cockroach/pkg/server.startSampleEnvironment.func1
  |     github.com/cockroachdb/cockroach/pkg/server/env_sampler.go:162
  | github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
  |     github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:485
  | runtime.goexit
  |     src/runtime/asm_amd64.s:1695
Wraps: (2) runtime error: index out of range [0] with length 0
Error types: (1) *withstack.withStack (2) runtime.boundsError
-- report composition:
runtime.boundsError
panic.go:770: *withstack.withStack (top exception)
Stacktrace (expand for inline code snippets): [src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696) [https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/util/stop/stopper.go#L484-L486](https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/util/stop/stopper.go#L484-L486) [https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/server/env_sampler.go#L161-L163](https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/server/env_sampler.go#L161-L163) [https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/server/status/runtime.go#L718-L720](https://github.com/cockroachdb/cockroach/blob/9d77dad6162bc528e725d0c57ec01c6a07d2aea2/pkg/server/status/runtime.go#L718-L720) [GOROOT/src/runtime/panic.go#L113-L115](GOROOT/src/runtime/panic.go#L113-L115) [GOROOT/src/runtime/panic.go#L769-L771](GOROOT/src/runtime/panic.go#L769-L771)
src/runtime/asm_amd64.s in runtime.goexit at line 1695
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2 at line 485
pkg/server/env_sampler.go in pkg/server.startSampleEnvironment.func1 at line 162
pkg/server/status/runtime.go in pkg/server/status.(*RuntimeStatSampler).SampleEnvironment at line 719
GOROOT/src/runtime/panic.go in runtime.goPanicIndex at line 114
GOROOT/src/runtime/panic.go in runtime.gopanic at line 770

Tags

Tag Value
Command start-single-node
Environment v24.1.0-rc.2
Go Version go1.22.2 X:nocoverageredesign
Platform linux amd64
Distribution CCL
Cockroach Release v24.1.0-rc.2
Cockroach SHA 9d77dad6162bc528e725d0c57ec01c6a07d2aea2
# of CPUs 16
# of Goroutines 561

Jira issue: CRDB-41701

blathers-crl[bot] commented 2 months ago

Hi @cockroach-sentry, please add branch-* labels to identify which branch(es) this C-bug affects.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.