cockroachdb / cockroachdb/cockroach

Sentry: signal_unix.go:881: runtime error: invalid memory address or nil pointer dereference (1) attached stack trace -- stack trace: | runtime.sigpanic | GOROOT/src/runtime/signal_unix.go:881 ...

Open
#164,862 2 comments 0 reactions 0 assignees View on GitHub
branch-release-24.3 C-bug O-sentry T-db-server X-blathers-triaged
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/7310296791/?referrer=webhooks_plugin](https://cockroach-labs.sentry.io/issues/7310296791/?referrer=webhooks_plugin)

Panic Message:

```
signal_unix.go:881: runtime error: invalid memory address or nil pointer dereference
(1) attached stack trace
-- stack trace:
| runtime.sigpanic
| GOROOT/src/runtime/signal_unix.go:881
| runtime.memmove
| src/runtime/memmove_amd64.s:174
| fmt.(*buffer).writeString
| GOROOT/src/fmt/print.go:108
| fmt.(*fmt).padString
| GOROOT/src/fmt/format.go:110
| fmt.(*fmt).fmtS
| GOROOT/src/fmt/format.go:359
| fmt.(*pp).fmtString
| GOROOT/src/fmt/print.go:497
| fmt.(*pp).printArg
| GOROOT/src/fmt/print.go:741
| fmt.(*pp).doPrintf
| GOROOT/src/fmt/print.go:1075
| fmt.Sprintf
| GOROOT/src/fmt/print.go:239
| github.com/spf13/cobra.(*Command).checkCommandGroups
| external/com_github_spf13_cobra/command.go:1105
| github.com/spf13/cobra.(*Command).checkCommandGroups
| external/com_github_spf13_cobra/command.go:1108
| github.com/spf13/cobra.(*Command).checkCommandGroups
| external/com_github_spf13_cobra/command.go:1108
| github.com/spf13/cobra.(*Command).checkCommandGroups
| external/com_github_spf13_cobra/command.go:1108
| github.com/spf13/cobra.(*Command).ExecuteC
| external/com_github_spf13_cobra/command.go:1003
| github.com/spf13/cobra.(*Command).Execute
| external/com_github_spf13_cobra/command.go:968
| github.com/cockroachdb/cockroach/pkg/cli.Run
| cli.go:301
| github.com/cockroachdb/cockroach/pkg/cli.doMain
| cli.go:139
| github.com/cockroachdb/cockroach/pkg/cli.Main
| cli.go:64
| 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: (2) runtime error: invalid memory address or nil pointer dereference
Error types: (1) *withstack.withStack (2) runtime.errorString
-- report composition:
runtime.errorString
signal_unix.go:881: *withstack.withStack (top exception)
```

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)
[pkg/cmd/cockroach/main.go#L20-L22](pkg/cmd/cockroach/main.go#L20-L22)
[cli.go#L63-L65](cli.go#L63-L65)
[cli.go#L138-L140](cli.go#L138-L140)
[cli.go#L300-L302](cli.go#L300-L302)
[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#L1002-L1004](external/com_github_spf13_cobra/command.go#L1002-L1004)
[external/com_github_spf13_cobra/command.go#L1107-L1109](external/com_github_spf13_cobra/command.go#L1107-L1109)
[external/com_github_spf13_cobra/command.go#L1107-L1109](external/com_github_spf13_cobra/command.go#L1107-L1109)
[external/com_github_spf13_cobra/command.go#L1107-L1109](external/com_github_spf13_cobra/command.go#L1107-L1109)
[external/com_github_spf13_cobra/command.go#L1104-L1106](external/com_github_spf13_cobra/command.go#L1104-L1106)
[GOROOT/src/fmt/print.go#L238-L240](GOROOT/src/fmt/print.go#L238-L240)
[GOROOT/src/fmt/print.go#L1074-L1076](GOROOT/src/fmt/print.go#L1074-L1076)
[GOROOT/src/fmt/print.go#L740-L742](GOROOT/src/fmt/print.go#L740-L742)
[GOROOT/src/fmt/print.go#L496-L498](GOROOT/src/fmt/print.go#L496-L498)
[GOROOT/src/fmt/format.go#L358-L360](GOROOT/src/fmt/format.go#L358-L360)
[GOROOT/src/fmt/format.go#L109-L111](GOROOT/src/fmt/format.go#L109-L111)
[GOROOT/src/fmt/print.go#L107-L109](GOROOT/src/fmt/print.go#L107-L109)
[src/runtime/memmove_amd64.s#L173-L175](src/runtime/memmove_amd64.s#L173-L175)
[GOROOT/src/runtime/signal_unix.go#L880-L882](GOROOT/src/runtime/signal_unix.go#L880-L882)

```
src/runtime/asm_amd64.s in runtime.goexit at line 1695
GOROOT/src/runtime/proc.go in runtime.main at line 271
pkg/cmd/cockroach/main.go in main.main at line 21
cli.go in pkg/cli.Main at line 64
cli.go in pkg/cli.doMain at line 139
cli.go in pkg/cli.Run at line 301
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 1003
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).checkCommandGroups at line 1108
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).checkCommandGroups at line 1108
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).checkCommandGroups at line 1108
external/com_github_spf13_cobra/command.go in github.com/spf13/cobra.(*Command).checkCommandGroups at line 1105
GOROOT/src/fmt/print.go in fmt.Sprintf at line 239
GOROOT/src/fmt/print.go in fmt.(*pp).doPrintf at line 1075
GOROOT/src/fmt/print.go in fmt.(*pp).printArg at line 741
GOROOT/src/fmt/print.go in fmt.(*pp).fmtString at line 497
GOROOT/src/fmt/format.go in fmt.(*fmt).fmtS at line 359
GOROOT/src/fmt/format.go in fmt.(*fmt).padString at line 110
GOROOT/src/fmt/print.go in fmt.(*buffer).writeString at line 108
src/runtime/memmove_amd64.s in runtime.memmove at line 174
GOROOT/src/runtime/signal_unix.go in runtime.sigpanic at line 881
```

### Tags

| Tag | Value |
| --- | --- |
| Command | server |
| Environment | v24.3.22 |
| Go Version | go1.22.12 X:nocoverageredesign |
| Platform | linux amd64 |
| Distribution | CCL |
| Cockroach Release | v24.3.22 |
| Cockroach SHA | 303aedc82bbb8ef1b70f10cd91fcfc01d967d799 |
| # of CPUs | 16 |
| # of Goroutines | 10 |

Jira issue: CRDB-61057

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.