Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SIGSEGV" in "githubclient.(*client).GetInfo(...)" #388

Open
mitchhentgesspotify opened this issue Feb 6, 2024 · 0 comments
Open

"SIGSEGV" in "githubclient.(*client).GetInfo(...)" #388

mitchhentgesspotify opened this issue Feb 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mitchhentgesspotify
Copy link

$ git spr update
> git rev-parse --show-toplevel
5:01PM WRN ../../../runner/work/spr/spr/github/githubclient/client.go:90 > failed to read gh cli config file error="failed to open gh cli config file: open /Users/mhentges/.config/gh/hosts.yml: no such file or directory"
> git fetch
> git rebase origin/main --autostash
> github fetch pull requests
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102485228]

goroutine 1 [running]:
github.com/ejoffe/spr/github/githubclient.(*client).GetInfo(0x1400018c138, {0x1026704f0?, 0x10298d460?}, {0x102670410, 0x1400018c018})
	/Users/runner/work/spr/spr/github/githubclient/client.go:200 +0x138
github.com/ejoffe/spr/spr.(*stackediff).fetchAndGetGitHubInfo(0x1400019e180, {0x1026704f0, 0x10298d460})
	/Users/runner/work/spr/spr/spr/spr.go:490 +0x14c
github.com/ejoffe/spr/spr.(*stackediff).UpdatePullRequests(0x1400019e180, {0x1026704f0?, 0x10298d460}, {0x10298d460, 0x0, 0x0}, 0x0)
	/Users/runner/work/spr/spr/spr/spr.go:137 +0x70
main.main.func4(0x140001a65a0?)
	/Users/runner/work/spr/spr/cmd/spr/main.go:161 +0x100
github.com/urfave/cli/v2.(*Command).Run(0x140001a65a0, 0x140001ae400)
	/Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.8.1/command.go:169 +0x4f8
github.com/urfave/cli/v2.(*App).RunContext(0x140001da000, {0x1026704f0?, 0x10298d460}, {0x140000b8000, 0x2, 0x2})
	/Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.8.1/app.go:341 +0x85c
github.com/urfave/cli/v2.(*App).Run(...)
	/Users/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.8.1/app.go:247
main.main()
	/Users/runner/work/spr/spr/cmd/spr/main.go:230 +0x1208

Let me know what other information I can provide to help diagnose this.

@chriscz chriscz added the bug Something isn't working label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants