Bug 1968295

Summary: Panic when run command aliyun
Product: [Fedora] Fedora Reporter: cqi
Component: golang-github-aliyun-cliAssignee: Brandon Perkins <bperkins>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: bperkins, go-sig, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: golang-github-aliyun-cli-3.0.77-2.s20210528git92af720.fc35 golang-github-aliyun-cli-3.0.79-1.s20210607git8377da2.fc33 golang-github-aliyun-cli-3.0.79-1.s20210607git8377da2.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-08 00:02:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cqi 2021-06-07 05:34:26 UTC
I just installed golang-github-aliyun-cli-3.0.77-1.s20210528git92af720.fc34.x86_64, however it does not work for me.

$ aliyun

panic: read json from products.json failed &{[]}

goroutine 1 [running]:
panic(0x558cab71fb00, 0xc0003c63f0)
        /usr/lib/golang/src/runtime/panic.go:1065 +0x565 fp=0xc00018f960 sp=0xc00018f898 pc=0x558caa6f47c5
github.com/aliyun/aliyun-cli/meta.LoadRepository(0x558cab803d98, 0x558cabf84b00, 0xc0003a5e60)
        /builddir/build/BUILD/aliyun-openapi-meta-92af720880941fb06015c8627ef6004def4e9de3/_build/src/github.com/aliyun/aliyun-cli/meta/repository.go:35 +0x625 fp=0xc00018fab0 sp=0xc00018f960 pc=0x558caaa359c5
github.com/aliyun/aliyun-cli/openapi.NewLibrary(...)
        /builddir/build/BUILD/aliyun-openapi-meta-92af720880941fb06015c8627ef6004def4e9de3/_build/src/github.com/aliyun/aliyun-cli/openapi/library.go:38
github.com/aliyun/aliyun-cli/openapi.NewCommando(0x558cab804b58, 0xc000010018, 0x558cab1493e4, 0x7, 0x558cab1470b5, 0x2, 0x0, 0x0, 0x0, 0x0, ...)
        /builddir/build/BUILD/aliyun-openapi-meta-92af720880941fb06015c8627ef6004def4e9de3/_build/src/github.com/aliyun/aliyun-cli/openapi/commando.go:45 +0xa9 fp=0xc00018faf8 sp=0xc00018fab0 pc=0x558cab0067c9
main.main()
        /builddir/build/BUILD/aliyun-openapi-meta-92af720880941fb06015c8627ef6004def4e9de3/_build/src/github.com/aliyun/aliyun-cli/main/main.go:77 +0x478 fp=0xc00018ff88 sp=0xc00018faf8 pc=0x558cab145c58
runtime.main()
        /usr/lib/golang/src/runtime/proc.go:225 +0x263 fp=0xc00018ffe0 sp=0xc00018ff88 pc=0x558caa6f7443
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc00018ffe8 sp=0xc00018ffe0 pc=0x558caa72a521

goroutine 2 [force gc (idle)]:
runtime.gopark(0x558cab7c5220, 0x558cabf55930, 0x1411, 0x1)
        /usr/lib/golang/src/runtime/proc.go:336 +0xe6 fp=0xc000060fb0 sp=0xc000060f90 pc=0x558caa6f7886
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:342
runtime.forcegchelper()
        /usr/lib/golang/src/runtime/proc.go:276 +0xc5 fp=0xc000060fe0 sp=0xc000060fb0 pc=0x558caa6f76e5
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000060fe8 sp=0xc000060fe0 pc=0x558caa72a521
created by runtime.init.7
        /usr/lib/golang/src/runtime/proc.go:264 +0x37

goroutine 3 [GC sweep wait]:
runtime.gopark(0x558cab7c5220, 0x558cabf55b40, 0x140c, 0x1)
        /usr/lib/golang/src/runtime/proc.go:336 +0xe6 fp=0xc0000617a8 sp=0xc000061788 pc=0x558caa6f7886
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:342
runtime.bgsweep(0xc000030070)
        /usr/lib/golang/src/runtime/mgcsweep.go:163 +0xa5 fp=0xc0000617d8 sp=0xc0000617a8 pc=0x558caa6e3485
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0000617e0 sp=0xc0000617d8 pc=0x558caa72a521
created by runtime.gcenable
        /usr/lib/golang/src/runtime/mgc.go:217 +0x5e

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x558cab7c5220, 0x558cabf55ea0, 0x140d, 0x1)
        /usr/lib/golang/src/runtime/proc.go:336 +0xe6 fp=0xc000061f78 sp=0xc000061f58 pc=0x558caa6f7886
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:342
runtime.bgscavenge(0xc000030070)
        /usr/lib/golang/src/runtime/mgcscavenge.go:265 +0xd6 fp=0xc000061fd8 sp=0xc000061f78 pc=0x558caa6e14d6
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000061fe0 sp=0xc000061fd8 pc=0x558caa72a521
created by runtime.gcenable
        /usr/lib/golang/src/runtime/mgc.go:218 +0x85

goroutine 5 [finalizer wait]:
runtime.gopark(0x558cab7c5220, 0x558cabf84a10, 0xffff1410, 0x1)
        /usr/lib/golang/src/runtime/proc.go:336 +0xe6 fp=0xc000060758 sp=0xc000060738 pc=0x558caa6f7886
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:342
runtime.runfinq()
        /usr/lib/golang/src/runtime/mfinal.go:175 +0xab fp=0xc0000607e0 sp=0xc000060758 pc=0x558caa6d872b
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0000607e8 sp=0xc0000607e0 pc=0x558caa72a521
created by runtime.createfing
        /usr/lib/golang/src/runtime/mfinal.go:156 +0x66
Aborted (core dumped)

Comment 1 Robert-André Mauchin 🐧 2021-06-07 16:03:24 UTC
Also the manpage generated is buggy too

Comment 2 Fedora Update System 2021-06-07 23:26:02 UTC
FEDORA-2021-223182da6b has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-223182da6b

Comment 3 Fedora Update System 2021-06-07 23:43:43 UTC
FEDORA-2021-b8791d32da has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b8791d32da

Comment 4 Fedora Update System 2021-06-08 00:02:10 UTC
FEDORA-2021-223182da6b has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2021-06-08 00:28:07 UTC
FEDORA-2021-a567d4fef3 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a567d4fef3

Comment 6 Fedora Update System 2021-06-09 01:17:18 UTC
FEDORA-2021-b8791d32da has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b8791d32da`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b8791d32da

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-06-09 03:09:38 UTC
FEDORA-2021-a567d4fef3 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a567d4fef3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a567d4fef3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-06-16 01:45:06 UTC
FEDORA-2021-fbbb348ff2 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fbbb348ff2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fbbb348ff2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-06-16 02:03:15 UTC
FEDORA-2021-968c920e5c has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-968c920e5c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-968c920e5c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-06-24 16:46:04 UTC
FEDORA-2021-fbbb348ff2 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-06-24 16:52:12 UTC
FEDORA-2021-968c920e5c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.