Bug 1900935
| Summary: | `oc adm release mirror` panic panic: runtime error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.2.z | CC: | aos-bugs, jokerman, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 15:35:25 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: | |||
Command: oc adm release mirror -a /home/slave2/mirror_pullsecret_config.json --from=quay.io/openshift-release-dev/ocp-release:4.2.36-x86_64 --to=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release --to-release-image=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release:4.2.36-x86_64 | tee ~/release_image_mirror.out && exit ${PIPESTATUS[0]}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x55f1a0]
goroutine 41 [running]:
bufio.(*Reader).fill(0xc000e8d080)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/bufio/bufio.go:100 +0xe0
bufio.(*Reader).WriteTo(0xc000e8d080, 0x2e7bc80, 0xc0000da790, 0x7f40aeb29a20, 0xc000e8d080, 0x2ee6801)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/bufio/bufio.go:511 +0x106
io.copyBuffer(0x2e7bc80, 0xc0000da790, 0x2e76440, 0xc000e8d080, 0x0, 0x0, 0x0, 0xc0008b9c00, 0xc0007107a0, 0x50e5d1)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/io/io.go:384 +0x34e
io.Copy(...)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/io/io.go:364
os/exec.(*Cmd).stdin.func1(0x0, 0x2ac17b8)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/os/exec/exec.go:243 +0x67
os/exec.(*Cmd).Start.func1(0xc0005bec60, 0xc0003be460)
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/os/exec/exec.go:409 +0x27
created by os/exec.(*Cmd).Start
/opt/rh/go-toolset-1.12/root/usr/lib/go-toolset-1.12-golang/src/os/exec/exec.go:408 +0x58f
Verified that with latest available oc and this is working as expected, moving for verification. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633 |
Description of problem: `oc adm release mirror` panic with error: oc adm release mirror -a /home/slave2/mirror_pullsecret_config.json --from=quay.io/openshift-release-dev/ocp-release:4.2.36-x86_64 --to=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release --to-release-image=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release:4.2.36-x86_64 | tee ~/release_image_mirror.out && exit ${PIPESTATUS[0]} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x55f1a0] Version-Release number of selected component (if applicable): 4.2.36-x86_64 How reproducible: sometimes Steps to Reproduce: 1.`oc adm release mirror -a /home/slave2/mirror_pullsecret_config.json --from=quay.io/openshift-release-dev/ocp-release:4.2.36-x86_64 --to=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release --to-release-image=vmc.mirror-registry.qe.devcluster.openshift.com:5000/openshift-release-dev/ocp-release:4.2.36-x86_64 | tee ~/release_image_mirror.out && exit ${PIPESTATUS[0]}` 2. 3. Actual results: command panic Expected results: no error. Additional info: