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.18k stars 3.82k forks source link

cli: v24.3.0-alpha: logging already active #132913

Open cockroach-sentry opened 1 month ago

cockroach-sentry commented 1 month 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/6001951798/?referrer=webhooks_plugin

Panic Message:

crash_reporting.go:411: logging already active; first used at:
(1) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/cli.setupLogging
  |     github.com/cockroachdb/cockroach/pkg/cli/log_flags.go:52
  | [...repeated from below...]
Wraps: (2) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/util/log/logcrash.ReportOrPanic
  |     github.com/cockroachdb/cockroach/pkg/util/log/logcrash/crash_reporting.go:411
  | github.com/cockroachdb/cockroach/pkg/cli.setupLogging
  |     github.com/cockroachdb/cockroach/pkg/cli/log_flags.go:52
  | github.com/cockroachdb/cockroach/pkg/cli.doMain.func1
  |     github.com/cockroachdb/cockroach/pkg/cli/cli.go:118
  | github.com/spf13/cobra.(*Command).execute
  |     github.com/spf13/cobra/external/com_github_spf13_cobra/command.go:901
  | github.com/spf13/cobra.(*Command).ExecuteC
  |     github.com/spf13/cobra/external/com_github_spf13_cobra/command.go:1044
  | github.com/spf13/cobra.(*Command).Execute
  |     github.com/spf13/cobra/external/com_github_spf13_cobra/command.go:968
  | github.com/cockroachdb/cockroach/pkg/cli.Run
  |     github.com/cockroachdb/cockroach/pkg/cli/cli.go:301
  | github.com/cockroachdb/cockroach/pkg/cli.doMain
  |     github.com/cockroachdb/cockroach/pkg/cli/cli.go:139
  | github.com/cockroachdb/cockroach/pkg/cli.Main
  |     github.com/cockroachdb/cockroach/pkg/cli/cli.go:64
  | main.main
  |     main/pkg/cmd/cockroach/main.go:21
  | runtime.main
  |     GOROOT/src/runtime/proc.go:271
  | runtime.goexit
  |     src/runtime/asm_amd64.s:1695
Wraps: (3) logging already active; first used at:
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
  | ×
Error types: (1) *withstack.withStack (2) *withstack.withStack (3) *errutil.leafError
-- report composition:
*errutil.leafError: logging already active; first used at:
crash_reporting.go:411: *withstack.withStack (top exception)
log_flags.go:52: *withstack.withStack (1)
(check the extra data payloads)
Stacktrace (expand for inline code snippets): [src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696) [GOROOT/src/runtime/proc.go#L270-L272](GOROOT/src/runtime/proc.go#L270-L272) [main/pkg/cmd/cockroach/main.go#L20-L22](main/pkg/cmd/cockroach/main.go#L20-L22) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L63-L65](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L63-L65) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L138-L140](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L138-L140) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L300-L302](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L300-L302) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L967-L969](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L967-L969) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L1043-L1045](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L1043-L1045) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L900-L902](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L900-L902) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L117-L119](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L117-L119) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/log_flags.go#L51-L53](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/log_flags.go#L51-L53) [src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696) [GOROOT/src/runtime/proc.go#L270-L272](GOROOT/src/runtime/proc.go#L270-L272) [main/pkg/cmd/cockroach/main.go#L20-L22](main/pkg/cmd/cockroach/main.go#L20-L22) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L63-L65](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L63-L65) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L138-L140](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L138-L140) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L300-L302](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L300-L302) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L967-L969](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L967-L969) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L1043-L1045](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L1043-L1045) [github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L900-L902](github.com/spf13/cobra/external/com_github_spf13_cobra/command.go#L900-L902) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L117-L119](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/cli.go#L117-L119) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/log_flags.go#L51-L53](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/cli/log_flags.go#L51-L53) [https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/util/log/logcrash/crash_reporting.go#L410-L412](https://github.com/cockroachdb/cockroach/blob/833dadd212fa4b12b1442ae8e00e85ee80a8cdce/pkg/util/log/logcrash/crash_reporting.go#L410-L412)
src/runtime/asm_amd64.s in runtime.goexit at line 1695
GOROOT/src/runtime/proc.go in runtime.main at line 271
main/pkg/cmd/cockroach/main.go in main.main at line 21
pkg/cli/cli.go in pkg/cli.Main at line 64
pkg/cli/cli.go in pkg/cli.doMain at line 139
pkg/cli/cli.go in pkg/cli.Run at line 301
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).Execute at line 968
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).ExecuteC at line 1044
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).execute at line 901
pkg/cli/cli.go in pkg/cli.doMain.func1 at line 118
pkg/cli/log_flags.go in pkg/cli.setupLogging at line 52
src/runtime/asm_amd64.s in runtime.goexit at line 1695
GOROOT/src/runtime/proc.go in runtime.main at line 271
main/pkg/cmd/cockroach/main.go in main.main at line 21
pkg/cli/cli.go in pkg/cli.Main at line 64
pkg/cli/cli.go in pkg/cli.doMain at line 139
pkg/cli/cli.go in pkg/cli.Run at line 301
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).Execute at line 968
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).ExecuteC at line 1044
github.com/spf13/cobra/external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).execute at line 901
pkg/cli/cli.go in pkg/cli.doMain.func1 at line 118
pkg/cli/log_flags.go in pkg/cli.setupLogging at line 52
pkg/util/log/logcrash/crash_reporting.go in pkg/util/log/logcrash.ReportOrPanic at line 411

Tags

Tag Value
Command workload run tpcc
Environment development
Go Version go1.22.5 X:nocoverageredesign
Platform linux amd64
Distribution CCL
Cockroach Release v24.3.0-alpha.3-dev-833dadd212fa4b12b1442ae8e00e85ee80a8cdce
Cockroach SHA 833dadd212fa4b12b1442ae8e00e85ee80a8cdce
# of CPUs 8
# of Goroutines 10

Jira issue: CRDB-43346

blathers-crl[bot] commented 1 month 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.