{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/11744","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/11744/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/11744/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/11744/events","html_url":"https://github.com/openshift/origin/issues/11744","id":186958208,"number":11744,"title":"oc binary crashes due to panic","user":{"login":"GrahamDumpleton","id":507637,"avatar_url":"https://avatars.githubusercontent.com/u/507637?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamDumpleton","html_url":"https://github.com/GrahamDumpleton","followers_url":"https://api.github.com/users/GrahamDumpleton/followers","following_url":"https://api.github.com/users/GrahamDumpleton/following{/other_user}","gists_url":"https://api.github.com/users/GrahamDumpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamDumpleton/subscriptions","organizations_url":"https://api.github.com/users/GrahamDumpleton/orgs","repos_url":"https://api.github.com/users/GrahamDumpleton/repos","events_url":"https://api.github.com/users/GrahamDumpleton/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamDumpleton/received_events","type":"User","site_admin":false},"labels":[{"id":210155294,"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc","default":false},{"id":200493322,"url":"https://api.github.com/repos/openshift/origin/labels/component/cli","name":"component/cli","color":"0052cc","default":false},{"id":118251699,"url":"https://api.github.com/repos/openshift/origin/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":210151727,"url":"https://api.github.com/repos/openshift/origin/labels/priority/P0","name":"priority/P0","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"assignees":[{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-11-03T00:54:53Z","updated_at":"2016-11-03T15:27:28Z","closed_at":null,"body":"The ``oc`` program panic'd and crashed.\r\n\r\n```\r\n$ oc new-build --name dunnies --binary --strategy=source\r\n    * A source build using binary input will be created\r\n      * The resulting image will be pushed to image stream \"dunnies:latest\"\r\n      * Use 'start-build --from-dir=DIR|--from-repo=DIR|--from-file=FILE' to trigger a new build\r\n      * WARNING: a binary build was created, you must specify one of --from-dir|--from-file|--from-repo when starting builds\r\n\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0xa0 pc=0xcba36b]\r\n\r\ngoroutine 1 [running]:\r\npanic(0x2036520, 0xc8200140d0)\r\n\t/usr/local/go/src/runtime/panic.go:481 +0x3e6\r\ngithub.com/openshift/origin/pkg/generate/app.(*ImageRef).ObjectReference(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/generate/app/imageref.go:173 +0x3b\r\ngithub.com/openshift/origin/pkg/generate/app.(*BuildStrategyRef).BuildStrategy(0xc8206e3de0, 0xc82058fd70, 0xc82086e5f0, 0x0, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/generate/app/app.go:217 +0x3f1\r\ngithub.com/openshift/origin/pkg/generate/app.(*BuildRef).BuildConfig(0xc82058ffb0, 0x1f61e00, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/generate/app/app.go:249 +0x3fe\r\ngithub.com/openshift/origin/pkg/generate/app.(*Pipeline).Objects(0xc82086e5a0, 0x4168770, 0xc82007e3f8, 0x4168798, 0xc8208691e0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/generate/app/pipeline.go:199 +0x4b0\r\ngithub.com/openshift/origin/pkg/generate/app/cmd.(*AppConfig).Run(0xc820019b80, 0xc82007e008, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/generate/app/cmd/newapp.go:659 +0xf3e\r\ngithub.com/openshift/origin/pkg/cmd/cli/cmd.(*NewBuildOptions).Run(0xc82013a460, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/cmd/cli/cmd/newbuild.go:195 +0x95\r\ngithub.com/openshift/origin/pkg/cmd/cli/cmd.NewCmdNewBuild.func1(0xc82059bb00, 0xc8200c0400, 0x0, 0x4)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/cmd/cli/cmd/newbuild.go:109 +0x110\r\ngithub.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).execute(0xc82059bb00, 0xc8200c03c0, 0x4, 0x4, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:603 +0x896\r\ngithub.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc82055cd80, 0xc82059bb00, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:689 +0x55c\r\ngithub.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).Execute(0xc82055cd80, 0x0, 0x0)\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:648 +0x2d\r\nmain.main()\r\n\t/go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/oc/oc.go:29 +0x180\r\n```\r\n##### Version\r\n\r\n```\r\n$ oc version\r\noc v1.3.1\r\nkubernetes v1.3.0+52492b4\r\nfeatures: Basic-Auth\r\n\r\nServer https://127.0.0.1:8443\r\nopenshift v1.3.1\r\nkubernetes v1.3.0+52492b4\r\n```\r\n\r\n##### Steps To Reproduce\r\n\r\nRun the command:\r\n\r\n```\r\noc new-build --binary --strategy=source --name sunnies\r\n```\r\n\r\n##### Current Result\r\n\r\nCrashes as above.\r\n\r\n##### Expected Result\r\n\r\nShould create binary build.\r\n\r\n##### Additional Information\r\n\r\nThe command works if drop the ``--strategy=source`` argument."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/258176143","html_url":"https://github.com/openshift/origin/issues/11744#issuecomment-258176143","issue_url":"https://api.github.com/repos/openshift/origin/issues/11744","id":258176143,"user":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T15:27:28Z","updated_at":"2016-11-03T15:27:28Z","body":"@GrahamDumpleton oc version?"}}
{"actor":{"display_login":"bparees"}}