{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23004","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23004/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23004/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23004/events","html_url":"https://github.com/docker/docker/issues/23004","id":156881571,"number":23004,"title":"docker build sometimes causes a panic (nil pointer)","user":{"login":"boucher","id":22065,"avatar_url":"https://avatars.githubusercontent.com/u/22065?v=3","gravatar_id":"","url":"https://api.github.com/users/boucher","html_url":"https://github.com/boucher","followers_url":"https://api.github.com/users/boucher/followers","following_url":"https://api.github.com/users/boucher/following{/other_user}","gists_url":"https://api.github.com/users/boucher/gists{/gist_id}","starred_url":"https://api.github.com/users/boucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boucher/subscriptions","organizations_url":"https://api.github.com/users/boucher/orgs","repos_url":"https://api.github.com/users/boucher/repos","events_url":"https://api.github.com/users/boucher/events{/privacy}","received_events_url":"https://api.github.com/users/boucher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T00:52:38Z","updated_at":"2016-05-26T00:52:38Z","closed_at":null,"body":"This happens occasionally for me, in particular when building multiple images in parallel. It's not super deterministic, but our build process involves building lots of images relatively frequently, so we do it in parallel to be a bit faster.\r\n\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x20 pc=0x603c5f]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/docker/docker/api/client.validateContextDirectory.func1(0xc8208e9c50, 0x26, 0x0, 0x0, 0x7f9eb2d0d880, 0xc8208e9dd0, 0x0, 0x0)\r\n\t/go/src/github.com/docker/docker/api/client/build.go:295 +0x14f\r\npath/filepath.walk(0xc82066dab0, 0x6, 0x7f9eb2d0d8a8, 0xc82066e780, 0xc820b3f278, 0x0, 0x0)\r\n\t/usr/local/go/src/path/filepath/path.go:370 +0x415\r\npath/filepath.Walk(0xc82066dab0, 0x6, 0xc820b3f278, 0x0, 0x0)\r\n\t/usr/local/go/src/path/filepath/path.go:396 +0xe1\r\ngithub.com/docker/docker/api/client.validateContextDirectory(0xc82066d630, 0x6, 0xc82008d800, 0x17, 0x20, 0x0, 0x0)\r\n\t/go/src/github.com/docker/docker/api/client/build.go:325 +0xde\r\ngithub.com/docker/docker/api/client.(*DockerCli).CmdBuild(0xc820240580, 0xc82000a0d0, 0x5, 0x5, 0x0, 0x0)\r\n\t/go/src/github.com/docker/docker/api/client/build.go:152 +0x1fcf\r\nreflect.callMethod(0xc82066ad50, 0xc820b3fc58)\r\n\t/usr/local/go/src/reflect/value.go:628 +0x1fc\r\nreflect.methodValueCall(0xc82000a0d0, 0x5, 0x5, 0x1, 0xc82066ad50, 0x0, 0x0, 0xc82066ad50, 0x0, 0x473414, ...)\r\n\t/usr/local/go/src/reflect/asm_amd64.s:29 +0x36\r\ngithub.com/docker/docker/cli.(*Cli).Run(0xc82066aa20, 0xc82000a0c0, 0x6, 0x6, 0x0, 0x0)\r\n\t/go/src/github.com/docker/docker/cli/cli.go:89 +0x383\r\nmain.main()\r\n\t/go/src/github.com/docker/docker/docker/docker.go:63 +0x400\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1\r\n\r\ngoroutine 6 [syscall]:\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/usr/local/go/src/os/signal/signal_unix.go:28 +0x37\r\n```\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:30:23 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:30:23 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 10\r\n Running: 8\r\n Paused: 0\r\n Stopped: 2\r\nImages: 304\r\nServer Version: 1.11.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 308\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: null host bridge\r\nKernel Version: 4.2.0-35-generic\r\nOperating System: Ubuntu 14.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 2.872 GiB\r\nName: ubuntu-14\r\nID: HZUB:B5T5:TAFP:YCQJ:CLOB:ZQJG:7UE2:YVF6:RVXY:NRBQ:ERWI:G6X2\r\nDocker Root Dir: /var/lib/docker\r\nDebug mode (client): false\r\nDebug mode (server): false\r\nUsername: tonicjenkins\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nRunning in a Parallels VM (Ubuntu 14.04)\r\n\r\n**Steps to reproduce the issue:**\r\n\r\nNon-deterministic; fire off a lot of parallel builds.\r\n\r\n**Describe the results you received:**\r\n\r\nPanic (trace above)\r\n\r\n**Describe the results you expected:**\r\n\r\nBuild to complete successfully. \r\n"}}
{"actor":{"display_login":"boucher"}}