{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63360","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63360/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63360/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63360/events","html_url":"https://github.com/kubernetes/kubernetes/issues/63360","id":319488181,"number":63360,"title":"golang1.10.1 build kube-scheduler has some trouble","user":{"login":"ShualLiu","id":22748553,"avatar_url":"https://avatars2.githubusercontent.com/u/22748553?v=4","gravatar_id":"","url":"https://api.github.com/users/ShualLiu","html_url":"https://github.com/ShualLiu","followers_url":"https://api.github.com/users/ShualLiu/followers","following_url":"https://api.github.com/users/ShualLiu/following{/other_user}","gists_url":"https://api.github.com/users/ShualLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/ShualLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShualLiu/subscriptions","organizations_url":"https://api.github.com/users/ShualLiu/orgs","repos_url":"https://api.github.com/users/ShualLiu/repos","events_url":"https://api.github.com/users/ShualLiu/events{/privacy}","received_events_url":"https://api.github.com/users/ShualLiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T09:58:36Z","updated_at":"2018-05-02T09:58:36Z","closed_at":null,"author_association":"NONE","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n/kind bug\r\n\r\n**What happened**:\r\nWhen I use golang1.10.1 to build kube-scheduler(using make kube-scheduler in kubernetes), a scheduler will be crashloopbackoff in cluster. But It's ok using golang 1.9.6.[configure-multiple-schedulers](https://v1-8.docs.kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/)\r\n**I'm confused  it  was a golang bug or a kubernetes bug...**\r\n**What you expected to happen**:\r\nrun ok in cluster.\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n* Using golang 1.10.1 version to build kube-scheduler (make kube-scheduler)\r\n* Packing a docker image with  above website instructions.\r\n* Using above website deployment to deploy a custom scheduler.\r\n* The Pod is Error...\r\n**Anything else we need to know?**:\r\nEverything will be OK with golang1.9.6\r\n```\r\nE0502 09:44:05.284741       1 runtime.go:66] Observed a panic: \"invalid memory address or nil pointer dereference\" (runtime error: invalid memory address or nil pointer dereference)\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51\r\n/home/maurice/Environment/golang-1.10.1/src/runtime/asm_amd64.s:573\r\n/home/maurice/Environment/golang-1.10.1/src/runtime/panic.go:502\r\n/home/maurice/Environment/golang-1.10.1/src/runtime/panic.go:63\r\n/home/maurice/Environment/golang-1.10.1/src/runtime/signal_unix.go:388\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/util.go:110\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:469\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:330\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:558\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:216\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/controller.go:195\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/shared_informer.go:542\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/shared_informer.go:383\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/shared_informer.go:383\r\n/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:71\r\n/home/maurice/Environment/golang-1.10.1/src/runtime/asm_amd64.s:2361\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n\tpanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xf00ee2]\r\n\r\ngoroutine 13 [running]:\r\nk8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:58 +0x107\r\npanic(0x145cea0, 0x21e14a0)\r\n\t/home/maurice/Environment/golang-1.10.1/src/runtime/panic.go:502 +0x229\r\nk8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.GetNodeReceiveBytesRate(0xc42042439a, 0x6, 0xc400000000)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/util.go:110 +0x3c2\r\nk8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*NodeInfo).SetNode(0xc4202a8a50, 0xc4204e8d20, 0x2, 0xc4207d8580)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:469 +0x1f7\r\nk8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*schedulerCache).AddNode(0xc420039a00, 0xc4204e8d20, 0x0, 0x0)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:330 +0x1ca\r\nk8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).addNodeToCache(0xc4202a80f0, 0x164f580, 0xc4204e8d20)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:558 +0x18d\r\nk8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).(k8s.io/kubernetes/plugin/pkg/scheduler/factory.addNodeToCache)-fm(0x164f580, 0xc4204e8d20)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:216 +0x3e\r\nk8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnAdd(0xc420332990, 0xc4203329a0, 0xc4203329b0, 0x164f580, 0xc4204e8d20)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/controller.go:195 +0x49\r\nk8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache.(*processorListener).run(0xc420450870)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/shared_informer.go:542 +0x247\r\nk8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache.(*processorListener).(k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache.run)-fm()\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/tools/cache/shared_informer.go:383 +0x2a\r\nk8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0xc4203c2ca0, 0xc4202c02e0)\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:71 +0x4f\r\ncreated by k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.(*Group).Start\r\n\t/home/maurice/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:69 +0x62\r\n\r\n```\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`): v1.8.8\r\n- Cloud provider or hardware configuration: 4CPU 8G 11Nodes 3Masters\r\n- OS (e.g. from /etc/os-release):  CentOS7.4\r\n- Kernel (e.g. `uname -a`):Linux master2 4.4.98-1.el7.elrepo.x86_64 #1 SMP Wed Nov 15 12:29:46 EST 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n- Install tools:\r\n- Others:\r\n"}}
{"actor":{"display_login":"ShualLiu"}}