← Catalogue

go_panic

A Go `panic:` or runtime `fatal error:` with the goroutine dump beneath it.

goruntimetoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/go_panic

matchers/go/go_panic/matcher.yaml

id: go_panicrole: toolclassification: [go, runtime]description: A Go `panic:` or runtime `fatal error:` with the goroutine dump beneath it.pattern: '^panic: |^fatal error: 'before: 2after: 20

In bundles

allgo

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

go_panicOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: go_panic
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run go version
35go version
36go build ./...
37go run ./cmd/indexer
38shell: /usr/bin/bash -e {0}
39##[endgroup]
40go version go1.22.3 linux/amd64
412026/01/05 09:20:11 indexer starting, shard=3
422026/01/05 09:20:11 loaded 512 documents
432026/01/05 09:20:11 rebuilding shard index
44panic: runtime error: index out of range [512] with length 512
45
46goroutine 1 [running]:
47example.com/svc/internal/index.(*Shard).Get(...)
48 /builds/team/svc/internal/index/shard.go:74
49example.com/svc/internal/index.(*Shard).Rebuild(0xc0000b4000)
50 /builds/team/svc/internal/index/shard.go:112 +0x1e5
51main.main()
52 /builds/team/svc/cmd/indexer/main.go:38 +0x94
53exit status 2
54##[error]Process completed with exit code 1.
55##[group]Post Run actions/checkout@v4
56##[endgroup]
57/usr/bin/git version
58git version 2.54.0
59##[group]Post Run actions/upload-artifact@v4
60##[endgroup]
61Artifact upload complete.
62##[warning]index/: no matching files. Ensure that the artifact path is relative to the working directory
63Post job cleanup.
64Cleaning up orphan processes