An error occurred while fetching the assigned iteration of the selected issue.
glab token crashes
Checklist
-
I'm using the latest version of the extension (Run
glab --version
)- Current glab version: 1.53.0 (2025-02-11)
-
Operating system and version:
Current glab version: 1.53.0 (2025-02-11)
MacOS15.3.1 (24D70)
- Gitlab.com or self-managed instance? self-managed instance
-
GitLab version (if self-managed) v17.6.2-ee
(Use the
version
endpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed
glab auth status
to check for authentication issues -
Run the command in debug mode (like
DEBUG=true glab mr list
) and attach any useful output
Summary
This command crashes
$ DEBUG=true glab token list --user autobot
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf34c4c7]
goroutine 1 [running]:
gitlab.com/gitlab-org/cli/commands/token/list.newTokenFromPersonalAccessToken(0xc0002764d0)
gitlab.com/gitlab-org/cli/commands/token/list/list.go:127 +0x147
gitlab.com/gitlab-org/cli/commands/token/list.listRun(0xc0002baa00)
gitlab.com/gitlab-org/cli/commands/token/list/list.go:200 +0x34a
gitlab.com/gitlab-org/cli/commands/token/list.NewCmdList.func1(0xc0003f5700?, {0xc00045fdc0?, 0x4?, 0xf3ca53c?})
gitlab.com/gitlab-org/cli/commands/token/list/list.go:88 +0x11f
github.com/spf13/cobra.(*Command).execute(0xc000443b08, {0xc00045fda0, 0x2, 0x2})
github.com/spf13/cobra@v1.8.1/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0xc000599208)
github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
main.main()
gitlab.com/gitlab-org/cli/cmd/glab/main.go:155 +0x9b5
Environment
$ bash -c 'printf -- "- OS: %s\n- SHELL: %s\n- TERM: %s\n- GLAB: %s" "$(uname -srm)" "$SHELL" "$TERM" "$(glab --version)"'
- OS: Darwin 24.3.0 x86_64
- SHELL: /usr/local/bin/bash
- TERM: linux
- GLAB: Current glab version: 1.53.0 (2025-02-11)
Steps to reproduce
DEBUG=true glab token list --user <any user>
What is the current bug behavior?
crash - see above
What is the expected correct behavior?
token list