Bug 1378972

Summary: golang fails openshift origin 1.3.0 build for armv7hl
Product: [Fedora] Fedora Reporter: Adam Miller <admiller>
Component: golangAssignee: Jakub Čajka <jcajka>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: admiller, amurdaca, golang-updates, jcajka, lemenkov, renich, robin, s, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-29 11:47:14 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:

Description Adam Miller 2016-09-23 17:38:17 UTC
Description of problem:
Mock Version: 1.2.21
Mock Version: 1.2.21
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/origin.spec'], gid=425timeout=172800env={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PS1': '<mock-chroot> \\s-\\v\\$ '}uid=1000chrootPath='/var/lib/mock/f26-build-6492446-642185/root'logger=<mockbuild.trace_decorator.getLog object at 0xb5e6ffd0>printOutput=Falseuser='mockbuild'shell=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/origin.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PS1': '<mock-chroot> \\s-\\v\\$ '} and shell False
warning: Could not canonicalize hostname: arm02-builder15.arm.fedoraproject.org
Building target platforms: armv7hl
Building for target armv7hl
Wrote: /builddir/build/SRPMS/origin-1.3.0-2.fc26.src.rpm
Child return code was: 0
ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/origin.spec'], gid=425timeout=172800uid=1000shell=Falseprivate_network=TruechrootPath='/var/lib/mock/f26-build-6492446-642185/root'logger=<mockbuild.trace_decorator.getLog object at 0xb5e6ffd0>printOutput=Falseenv={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PS1': '<mock-chroot> \\s-\\v\\$ '}user='mockbuild')
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/origin.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8', 'PS1': '<mock-chroot> \\s-\\v\\$ '} and shell False
Building target platforms: armv7hl
Building for target armv7hl
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ORHkve
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf origin-d45151824821195c9d3db7e5d2da0a1c982a614c
+ /usr/bin/gzip -dc /builddir/build/SOURCES/origin-1.3.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd origin-d45151824821195c9d3db7e5d2da0a1c982a614c
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (origin-1.3.0-build-platform.patch):'
Patch #0 (origin-1.3.0-build-platform.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file Makefile
patching file hack/build-platform.sh
patching file origin.spec
+ chmod +x hack/build-platform.sh
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.knwheP
+ umask 022
+ cd /builddir/build/BUILD
+ cd origin-d45151824821195c9d3db7e5d2da0a1c982a614c
+ OS_GIT_TREE_STATE=clean
+ OS_GIT_VERSION=v1.3.0
+ OS_GIT_COMMIT=d451518
+ OS_GIT_MAJOR=1
+ OS_GIT_MINOR=3
+ hack/build-platform.sh
++ Building go targets for linux/arm: cmd/openshift cmd/oc
++ Building go targets for linux/arm: images/pod cmd/dockerregistry cmd/gitserver examples/hello-openshift examples/deployment
++ Placing binaries
++ ERROR: No release type defined for linux/arm
++ Placing binaries
++ ERROR: No release type defined for linux/arm
hack/build-platform.sh took 934 seconds
+ OS_GIT_TREE_STATE=clean
+ OS_GIT_VERSION=v1.3.0
+ OS_GIT_COMMIT=d451518
+ OS_GIT_MAJOR=1
+ OS_GIT_MINOR=3
+ hack/build-go.sh test/extended/extended.test
++ Building go targets for linux/arm: test/extended/extended.test
++ Placing binaries
hack/build-go.sh took 515 seconds
+ OS_GIT_TREE_STATE=clean
+ OS_GIT_VERSION=v1.3.0
+ OS_GIT_COMMIT=d451518
+ OS_GIT_MAJOR=1
+ OS_GIT_MINOR=3
+ hack/update-generated-docs.sh
++ Building go targets for linux/arm: tools/gendocs tools/genman
++ Placing binaries
/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/hack/build-go.sh took 626 seconds
Assets generated in /builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c//docs/generated
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x7ab4c]
goroutine 1 [running]:
panic(0x297b3a0, 0x15928008)
	/usr/lib/golang/src/runtime/panic.go:500 +0x33c
encoding/gob.newTypeObject(0x25f3a18, 0x8, 0x1599f7c0, 0x456f8c0, 0x2ba8918, 0x2ba8918, 0x456f8c0, 0x2ba8918, 0x246a0f4)
	/usr/lib/golang/src/encoding/gob/type.go:448 +0x24
encoding/gob.getType(0x25f3a18, 0x8, 0x1599f7c0, 0x456f8c0, 0x2ba8918, 0x0, 0x0, 0x0, 0x0)
	/usr/lib/golang/src/encoding/gob/type.go:608 +0xc0
encoding/gob.getBaseType(0x25f3a18, 0x8, 0x456f8c0, 0x2ba8918, 0x0, 0x0, 0x0, 0x0)
	/usr/lib/golang/src/encoding/gob/type.go:595 +0x78
encoding/gob.buildTypeInfo(0x1599f7c0, 0x456f8c0, 0x2ba8918, 0x0, 0x0, 0x0)
	/usr/lib/golang/src/encoding/gob/type.go:725 +0xe8
encoding/gob.getTypeInfo(0x1599f7c0, 0x2ba8918, 0x0, 0x0)
	/usr/lib/golang/src/encoding/gob/type.go:712 +0xa4
encoding/gob.mustGetTypeInfo(0x456f8c0, 0x2ba8918, 0x456f8c0)
	/usr/lib/golang/src/encoding/gob/type.go:776 +0x34
encoding/gob.init()
	/usr/lib/golang/src/encoding/gob/type.go:269 +0x1be0
net/rpc.init()
	/usr/lib/golang/src/net/rpc/server.go:713 +0x50
github.com/openshift/origin/vendor/github.com/ugorji/go/codec.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/vendor/github.com/ugorji/go/codec/time.go:234 +0x9c
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/runtime/serializer/json/meta.go:62 +0x58
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/runtime/serializer.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/runtime/serializer/protobuf_extension.go:53 +0x54
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/api.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/api/types.go:3076 +0xa4
github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/version.go:56 +0x6c
github.com/openshift/origin/pkg/cmd/admin.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/pkg/cmd/admin/oadm_bashcomp_func.go:17 +0x58
main.init()
	/builddir/build/BUILD/origin-d45151824821195c9d3db7e5d2da0a1c982a614c/_output/local/go/src/github.com/openshift/origin/tools/genman/gen_man.go:198 +0x60
[ERROR] PID 896: hack/common.sh:910: `${cmd} "${tmpdir}" "${cmdName}"` exited with status 2.
[INFO] 		Stack Trace: 
[INFO] 		  1: hack/common.sh:910: `${cmd} "${tmpdir}" "${cmdName}"`
[INFO] 		  2: hack/update-generated-docs.sh:41: os::build::gen-man
[INFO]   Exiting with code 2.
error: Bad exit status from /var/tmp/rpm-tmp.knwheP (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.knwheP (%build)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/mockbuild/trace_decorator.py", line 88, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.5/site-packages/mockbuild/util.py", line 562, in do
    raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
mockbuild.exception.Error: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/origin.spec


Version-Release number of selected component (if applicable):
golang.armv7hl 1.7.1-1.fc26

How reproducible:
Always

Steps to Reproduce:
1. Rebuild this package in koji or mock for armv7hl https://maxamillion.fedorapeople.org/origin-1.3.0-2.fc24.src.rpm
2. Scratch build here: http://koji.fedoraproject.org/koji/taskinfo?taskID=15770239

Comment 1 robin@mccorkell.me.uk 2016-10-10 17:20:45 UTC
This also breaks Kubernetes 1.4.0 on armv7h

Comment 2 Fedora End Of Life 2017-02-28 10:21:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 3 Fedora End Of Life 2018-05-03 08:01:25 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2018-05-29 11:47:14 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.