Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71025 - [github-cli] segfout when checking a PR

Attached to Project: Community Packages
Opened by bartus (bartus) - Wednesday, 26 May 2021, 07:00 GMT
Last edited by Morten Linderud (Foxboron) - Friday, 09 July 2021, 12:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Unable to check a PR with `gh pr checkout <num>`

error log:
```
gh pr checkout 1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x55c39fe2c164]

goroutine 1 [running]:
github.com/cli/cli/pkg/cmd/pr/checkout.checkoutRun(0xc0002e8ff0, 0xc000800d80, 0x0)
github.com/cli/cli/pkg/cmd/pr/checkout/checkout.go:100 +0xac4
github.com/cli/cli/pkg/cmd/pr/checkout.NewCmdCheckout.func1(0xc0000bdb80, 0xc000425a40, 0x1, 0x1, 0x0, 0x0)
github.com/cli/cli/pkg/cmd/pr/checkout/checkout.go:61 +0x166
github.com/spf13/cobra.(*Command).execute(0xc0000bdb80, 0xc000425a20, 0x1, 0x1, 0xc0000bdb80, 0xc000425a20)
github.com/spf13/cobra@v1.1.3/command.go:852 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc0005bb180, 0xc000425610, 0x55c39fef2501, 0xd)
github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
main.mainRun(0xc00002e118)
github.com/cli/cli/cmd/gh/main.go:166 +0x676
main.main()
github.com/cli/cli/cmd/gh/main.go:46 +0x25
```

Additional info:
* gh:1.10.3
* last working version:1.9.2

This task depends upon

Closed by  Morten Linderud (Foxboron)
Friday, 09 July 2021, 12:48 GMT
Reason for closing:  Fixed

Loading...