cockroachdb / cockroachdb/cockroach

Sentry: zip.go:372: panic: × (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/cli.runDebugZip.func3 | zip.go:372 | github.com/cockroachdb/cockroach/pkg/cli.run...

Open
#168,361 1 comment 0 reactions 0 assignees View on GitHub
C-bug O-sentry T-observability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

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/7412041637/?referrer=webhooks_plugin](https://cockroach-labs.sentry.io/issues/7412041637/?referrer=webhooks_plugin)

Panic Message:

```
zip.go:372: panic: ×
(1) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/cli.runDebugZip.func3
| zip.go:372
| github.com/cockroachdb/cockroach/pkg/cli.runDebugZip
| zip.go:445
| github.com/cockroachdb/cockroach/pkg/cli.init.MaybeDecorateError.func132
| pkg/cli/clierrorplus/decorate_error.go:67
| github.com/spf13/cobra.(*Command).execute
| external/com_github_spf13_cobra/command.go:916
| github.com/spf13/cobra.(*Command).ExecuteC
| external/com_github_spf13_cobra/command.go:1044
| github.com/spf13/cobra.(*Command).Execute
| external/com_github_spf13_cobra/command.go:968
| github.com/cockroachdb/cockroach/pkg/cli.Run
| cli.go:302
| github.com/cockroachdb/cockroach/pkg/cli.doMain
| cli.go:141
| github.com/cockroachdb/cockroach/pkg/cli.Main
| cli.go:66
| main.main
| pkg/cmd/cockroach/main.go:20
| runtime.main
| GOROOT/src/runtime/proc.go:285
| runtime.goexit
| src/runtime/asm_amd64.s:1693
Wraps: (2) panic: ×
Error types: (1) *withstack.withStack (2) *errutil.leafError
-- report composition:
*errutil.leafError: panic: ×
zip.go:372: *withstack.withStack (top exception)
```

Stacktrace (expand for inline code snippets):

[src/runtime/asm_amd64.s#L1692-L1694](src/runtime/asm_amd64.s#L1692-L1694)
[GOROOT/src/runtime/proc.go#L284-L286](GOROOT/src/runtime/proc.go#L284-L286)
[pkg/cmd/cockroach/main.go#L19-L21](pkg/cmd/cockroach/main.go#L19-L21)
[cli.go#L65-L67](cli.go#L65-L67)
[cli.go#L140-L142](cli.go#L140-L142)
[cli.go#L301-L303](cli.go#L301-L303)
[external/com_github_spf13_cobra/command.go#L967-L969](external/com_github_spf13_cobra/command.go#L967-L969)
[external/com_github_spf13_cobra/command.go#L1043-L1045](external/com_github_spf13_cobra/command.go#L1043-L1045)
[external/com_github_spf13_cobra/command.go#L915-L917](external/com_github_spf13_cobra/command.go#L915-L917)
[pkg/cli/clierrorplus/decorate_error.go#L66-L68](pkg/cli/clierrorplus/decorate_error.go#L66-L68)
[zip.go#L444-L446](zip.go#L444-L446)
[zip.go#L371-L373](zip.go#L371-L373)

```
src/runtime/asm_amd64.s in runtime.goexit at line 1693
GOROOT/src/runtime/proc.go in runtime.main at line 285
pkg/cmd/cockroach/main.go in main.main at line 20
cli.go in pkg/cli.Main at line 66
cli.go in pkg/cli.doMain at line 141
cli.go in pkg/cli.Run at line 302
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).Execute at line 968
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).ExecuteC at line 1044
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).execute at line 916
pkg/cli/clierrorplus/decorate_error.go in pkg/cli.init.MaybeDecorateError.func132 at line 67
zip.go in pkg/cli.runDebugZip at line 445
zip.go in pkg/cli.runDebugZip.func3 at line 372
```

### Tags

| Tag | Value |
| --- | --- |
| Command | debug zip |
| Environment | v26.2.0-beta.3 |
| Go Version | go1.25.5 |
| Platform | linux amd64 |
| Distribution | CCL |
| Cockroach Release | v26.2.0-beta.3 |
| Cockroach SHA | 1c35a1e86e9b82b99c0bf57c44877dc5a80c5c2d |
| # of CPUs | 16 |
| # of Goroutines | 9 |

Jira issue: CRDB-62914

Contributor guide

Open the contributing guide

Research direction

Start by reading pkg/cli/zip.go around runDebugZip.func3 at line 372 and runDebugZip at line 445, then inspect the attached Sentry trace for the debug zip execution path. Reproduce the debug zip command if possible and identify the panic condition; done means the reported path no longer panics on the affected environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.