{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24521","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24521/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24521/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24521/events","html_url":"https://github.com/docker/docker/issues/24521","id":164970840,"number":24521,"title":"daemon crashed by run \"cat /proc/self/pagemap\" in container(with any uid) ","user":{"login":"QianJin2013","id":5234060,"avatar_url":"https://avatars.githubusercontent.com/u/5234060?v=3","gravatar_id":"","url":"https://api.github.com/users/QianJin2013","html_url":"https://github.com/QianJin2013","followers_url":"https://api.github.com/users/QianJin2013/followers","following_url":"https://api.github.com/users/QianJin2013/following{/other_user}","gists_url":"https://api.github.com/users/QianJin2013/gists{/gist_id}","starred_url":"https://api.github.com/users/QianJin2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QianJin2013/subscriptions","organizations_url":"https://api.github.com/users/QianJin2013/orgs","repos_url":"https://api.github.com/users/QianJin2013/repos","events_url":"https://api.github.com/users/QianJin2013/events{/privacy}","received_events_url":"https://api.github.com/users/QianJin2013/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/runtime","name":"area/runtime","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-12T00:46:46Z","updated_at":"2016-07-25T14:30:22Z","closed_at":null,"body":"\r\nI happened to run following command in container, then the docker daemon crashed!\r\n```\r\ncat /proc/self/*\r\n```\r\nI'v tested on busybox, ubuntu, with non-root user id or root.\r\n\r\nHope this report can help us improve docker.\r\n\r\n<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.0-rc3\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   91e29e8\r\n Built:        Sat Jul  2 00:09:24 2016\r\n OS/Arch:      darwin/amd64\r\n Experimental: true\r\n\r\nServer:\r\n Version:      1.12.0-rc3\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   91e29e8\r\n Built:        Sat Jul  2 00:17:11 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: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 62\r\nServer Version: 1.12.0-rc3\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 102\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: seccomp\r\nKernel Version: 4.4.14-boot2docker\r\nOperating System: Boot2Docker 1.12.0-rc3 (TCL 7.1); HEAD : 8d9ee9f - Sat Jul  2 05:02:44 UTC 2016\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 995.7 MiB\r\nName: rethink\r\nID: STP5:YXOD:R3RX:ZHAP:XBM2:KFJE:TE2B:JJWI:ODJQ:V4Y2:ZT5D:GIL6\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 14\r\n Goroutines: 26\r\n System Time: 2016-07-12T00:37:23.91444825Z\r\n EventsListeners: 0\r\nUsername: osexp2000\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=virtualbox\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n```\r\nMac OS X EI Capitan 10.11.5\r\ndocker-machine version 0.8.0-rc1, build fffa6c9\r\n```\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Run following command  (all option can be omitted. The image can be any)\r\n```\r\ndocker run -d -u 1000:1000 busybox cat /proc/self/pagemap\r\n```\r\n\r\n2. Check container pid\r\n```\r\ndocker ps\r\n```\r\n\r\n**Describe the results you received:**\r\n```\r\nCannot connect to the Docker daemon. Is the docker daemon running on this host?\r\n```\r\n\r\n**Describe the results you expected:**\r\ncontainer id .... info\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nI'v checked docker daemon's log, it show error \"out of memory\".\r\n```\r\nDEBU[0013] received containerd event: &types.Event{Type:\"start-container\", Id:\"4f77defc46709571e852fa89daebfe45304ad129b5ed064793e3e15c71e9f345\", Status:0x0, Pid:\"\", Timestamp:0x57832103} \r\nDEBU[0013] event unhandled: type:\"start-container\" id:\"4f77defc46709571e852fa89daebfe45304ad129b5ed064793e3e15c71e9f345\" timestamp:1468211459  \r\nfatal error: runtime: out of memory\r\n\r\nruntime stack:\r\nruntime.throw(0x1f3ebf0, 0x16)\r\n    /usr/local/go/src/runtime/panic.go:547 +0x90\r\nruntime.sysMap(0xc8888c0000, 0x100000, 0x7f7b87ffea00, 0x2b54858)\r\n    /usr/local/go/src/runtime/mem_linux.go:206 +0x9b\r\nruntime.(*mheap).sysAlloc(0x2b2f0a0, 0x100000, 0x0)\r\n    /usr/local/go/src/runtime/malloc.go:429 +0x191\r\nruntime.(*mheap).grow(0x2b2f0a0, 0x8, 0x0)\r\n    /usr/local/go/src/runtime/mheap.go:651 +0x63\r\nruntime.(*mheap).allocSpanLocked(0x2b2f0a0, 0x1, 0x7f7b855e2e78)\r\n    /usr/local/go/src/runtime/mheap.go:553 +0x4f6\r\nruntime.(*mheap).alloc_m(0x2b2f0a0, 0x1, 0x2b, 0x7f7b855e2e78)\r\n    /usr/local/go/src/runtime/mheap.go:437 +0x119\r\nruntime.(*mheap).alloc.func1()\r\n    /usr/local/go/src/runtime/mheap.go:502 +0x41\r\nruntime.systemstack(0x7f7b87ffec20)\r\n    /usr/local/go/src/runtime/asm_amd64.s:307 +0xab\r\nruntime.(*mheap).alloc(0x2b2f0a0, 0x1, 0x1000000002b, 0x41db04)\r\n    /usr/local/go/src/runtime/mheap.go:503 +0x63\r\nruntime.(*mcentral).grow(0x2b31640, 0x0)\r\n    /usr/local/go/src/runtime/mcentral.go:209 +0x93\r\nruntime.(*mcentral).cacheSpan(0x2b31640, 0x7f7b855e2e78)\r\n    /usr/local/go/src/runtime/mcentral.go:89 +0x47d\r\nruntime.(*mcache).refill(0x7f7b97c934b0, 0xc80000002b, 0x7f7b855e2e78)\r\n    /usr/local/go/src/runtime/mcache.go:119 +0xcc\r\nruntime.mallocgc.func2()\r\n    /usr/local/go/src/runtime/malloc.go:642 +0x2b\r\nruntime.systemstack(0xc820017500)\r\n    /usr/local/go/src/runtime/asm_amd64.s:291 +0x79\r\nruntime.mstart()\r\n    /usr/local/go/src/runtime/proc.go:1051\r\n\r\ngoroutine 206 [running]:\r\nruntime.systemstack_switch()\r\n    /usr/local/go/src/runtime/asm_amd64.s:245 fp=0xc8208a2a70 sp=0xc8208a2a68\r\nruntime.mallocgc(0x1000, 0x175b000, 0xc800000001, 0x1000)\r\n    /usr/local/go/src/runtime/malloc.go:643 +0x869 fp=0xc8208a2b48 sp=0xc8208a2a70\r\nruntime.newarray(0x175b000, 0x1000, 0x1001)\r\n    /usr/local/go/src/runtime/malloc.go:798 +0xc9 fp=0xc8208a2b88 sp=0xc8208a2b48\r\nruntime.makeslice(0x171eac0, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/runtime/slice.go:32 +0x165 fp=0xc8208a2bd8 sp=0xc8208a2b88\r\nbufio.(*Reader).ReadBytes(0xc8208a2ed0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/bufio/bufio.go:416 +0x3fb fp=0xc8208a2cf8 sp=0xc8208a2bd8\r\ngithub.com/docker/docker/daemon/logger.(*Copier).copySrc(0xc8209a4dc0, 0x1dcab38, 0x6, 0x7f7b9422d438, 0xc8209a4c00)\r\n    /go/src/github.com/docker/docker/daemon/logger/copier.go:50 +0x14a fp=0xc8208a2f88 sp=0xc8208a2cf8\r\nruntime.goexit()\r\n    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8208a2f90 sp=0xc8208a2f88\r\ncreated by github.com/docker/docker/daemon/logger.(*Copier).Run\r\n    /go/src/github.com/docker/docker/daemon/logger/copier.go:37 +0x12b\r\n\r\ngoroutine 1 [chan receive]:\r\nmain.(*DaemonCli).start(0xc8203ed740, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/cmd/dockerd/daemon.go:310 +0x2311\r\nmain.main()\r\n    /go/src/github.com/docker/docker/cmd/dockerd/docker.go:68 +0x491\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1\r\n\r\ngoroutine 18 [syscall]:\r\nos/signal.signal_recv(0x0)\r\n    /usr/local/go/src/runtime/sigqueue.go:116 +0x132\r\nos/signal.loop()\r\n    /usr/local/go/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n    /usr/local/go/src/os/signal/signal_unix.go:28 +0x37\r\n\r\ngoroutine 20 [chan receive]:\r\ngithub.com/docker/libnetwork.init.2.func1()\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/resolver.go:100 +0x73\r\ncreated by github.com/docker/libnetwork.init.2\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/resolver.go:111 +0xa8\r\n\r\ngoroutine 8 [syscall]:\r\nsyscall.Syscall6(0x3d, 0xa67, 0xc82001b5dc, 0x0, 0xc8204274d0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/syscall/asm_linux_amd64.s:44 +0x5\r\nsyscall.wait4(0xa67, 0xc82001b5dc, 0x0, 0xc8204274d0, 0x90, 0x0, 0x0)\r\n    /usr/local/go/src/syscall/zsyscall_linux_amd64.go:172 +0x7f\r\nsyscall.Wait4(0xa67, 0xc82001b624, 0x0, 0xc8204274d0, 0x4135e3, 0x0, 0x0)\r\n    /usr/local/go/src/syscall/syscall_linux.go:256 +0x55\r\nos.(*Process).wait(0xc82044a860, 0xc82004e040, 0x0, 0x0)\r\n    /usr/local/go/src/os/exec_unix.go:22 +0x105\r\nos.(*Process).Wait(0xc82044a860, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/os/doc.go:49 +0x2d\r\nos/exec.(*Cmd).Wait(0xc820402dc0, 0x0, 0x0)\r\n    /usr/local/go/src/os/exec/exec.go:396 +0x211\r\ngithub.com/docker/docker/libcontainerd.(*remote).runContainerdDaemon.func1(0xc820402dc0, 0xc8203e9ad0)\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:413 +0x21\r\ncreated by github.com/docker/docker/libcontainerd.(*remote).runContainerdDaemon\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:415 +0x125b\r\n\r\ngoroutine 9 [select]:\r\ngoogle.golang.org/grpc.(*Conn).transportMonitor(0xc8203ea1e0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:544 +0x1d3\r\ngoogle.golang.org/grpc.NewConn.func1(0xc8203ea1e0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:355 +0x1b5\r\ncreated by google.golang.org/grpc.NewConn\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:356 +0x4e3\r\n\r\ngoroutine 10 [semacquire]:\r\nsync.runtime_Syncsemacquire(0xc820441d50)\r\n    /usr/local/go/src/runtime/sema.go:241 +0x201\r\nsync.(*Cond).Wait(0xc820441d40)\r\n    /usr/local/go/src/sync/cond.go:63 +0x9b\r\ngoogle.golang.org/grpc.(*Conn).WaitForStateChange(0xc8203ea1e0, 0x7f7b95bff0b8, 0xc82000f178, 0x2, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:405 +0x19f\r\ngoogle.golang.org/grpc.(*unicastPicker).WaitForStateChange(0xc82044a8c0, 0x7f7b95bff0b8, 0xc82000f178, 0x2, 0x1fa6580, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/picker.go:96 +0x4f\r\ngoogle.golang.org/grpc.(*ClientConn).WaitForStateChange(0xc820415760, 0x7f7b95bff0b8, 0xc82000f178, 0x2, 0x1, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:283 +0x6b\r\ngithub.com/docker/docker/libcontainerd.(*remote).handleConnectionChange(0xc8203e9ad0)\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:129 +0xb4\r\ncreated by github.com/docker/docker/libcontainerd.New\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:107 +0xa17\r\n\r\ngoroutine 27 [chan receive]:\r\ngithub.com/docker/docker/daemon.setupDumpStackTrap.func1(0xc8202bd920)\r\n    /go/src/github.com/docker/docker/daemon/debugtrap_unix.go:17 +0x4d\r\ncreated by github.com/docker/docker/daemon.setupDumpStackTrap\r\n    /go/src/github.com/docker/docker/daemon/debugtrap_unix.go:20 +0x13f\r\n\r\ngoroutine 12 [IO wait]:\r\nnet.runtime_pollWait(0x7f7b97448b58, 0x72, 0xc820462000)\r\n    /usr/local/go/src/runtime/netpoll.go:160 +0x60\r\nnet.(*pollDesc).Wait(0xc820436a70, 0x72, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc820436a70, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36\r\nnet.(*netFD).Read(0xc820436a10, 0xc820462000, 0x8000, 0x8000, 0x0, 0x7f7b97442168, 0xc82000e1e0)\r\n    /usr/local/go/src/net/fd_unix.go:250 +0x23a\r\nnet.(*conn).Read(0xc8200221e0, 0xc820462000, 0x8000, 0x8000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/net/net.go:172 +0xe4\r\nbufio.(*Reader).fill(0xc82043ac00)\r\n    /usr/local/go/src/bufio/bufio.go:97 +0x1e9\r\nbufio.(*Reader).Read(0xc82043ac00, 0xc8200c81b8, 0x9, 0x9, 0xc81ffaf063, 0x0, 0x0)\r\n    /usr/local/go/src/bufio/bufio.go:207 +0x260\r\nio.ReadAtLeast(0x7f7b97448eb8, 0xc82043ac00, 0xc8200c81b8, 0x9, 0x9, 0x9, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:297 +0xe6\r\nio.ReadFull(0x7f7b97448eb8, 0xc82043ac00, 0xc8200c81b8, 0x9, 0x9, 0xc8209ec6c8, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:315 +0x62\r\ngolang.org/x/net/http2.readFrameHeader(0xc8200c81b8, 0x9, 0x9, 0x7f7b97448eb8, 0xc82043ac00, 0x0, 0xc800000000, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/golang.org/x/net/http2/frame.go:236 +0xa5\r\ngolang.org/x/net/http2.(*Framer).ReadFrame(0xc8200c8180, 0x0, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/golang.org/x/net/http2/frame.go:463 +0x106\r\ngoogle.golang.org/grpc/transport.(*framer).readFrame(0xc820444cf0, 0x0, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/http_util.go:406 +0x3d\r\ngoogle.golang.org/grpc/transport.(*http2Client).reader(0xc8203ea2d0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/http2_client.go:788 +0x109\r\ncreated by google.golang.org/grpc/transport.newHTTP2Client\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/http2_client.go:174 +0xd21\r\n\r\ngoroutine 13 [select]:\r\ngoogle.golang.org/grpc/transport.(*http2Client).controller(0xc8203ea2d0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/http2_client.go:866 +0x5da\r\ncreated by google.golang.org/grpc/transport.newHTTP2Client\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/http2_client.go:201 +0x15c2\r\n\r\ngoroutine 26 [chan receive]:\r\ngithub.com/docker/docker/pkg/signal.Trap.func1(0xc82043aea0, 0xc82044ab40)\r\n    /go/src/github.com/docker/docker/pkg/signal/trap.go:32 +0x71\r\ncreated by github.com/docker/docker/pkg/signal.Trap\r\n    /go/src/github.com/docker/docker/pkg/signal/trap.go:62 +0x2be\r\n\r\ngoroutine 15 [select]:\r\ngoogle.golang.org/grpc.NewClientStream.func1(0x7f7b97449218, 0xc8203ea2d0, 0xc82000c8c0, 0xc820421540)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/stream.go:151 +0x258\r\ncreated by google.golang.org/grpc.NewClientStream\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/stream.go:159 +0xab2\r\n\r\ngoroutine 16 [select]:\r\ngoogle.golang.org/grpc/transport.(*recvBufferReader).Read(0xc820444e40, 0xc82044ab10, 0x5, 0x5, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/transport.go:141 +0x7e6\r\ngoogle.golang.org/grpc/transport.(*Stream).Read(0xc82000c8c0, 0xc82044ab10, 0x5, 0x5, 0x10, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/transport/transport.go:294 +0x71\r\nio.ReadAtLeast(0x7f7b974493b8, 0xc82000c8c0, 0xc82044ab10, 0x5, 0x5, 0x5, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:297 +0xe6\r\nio.ReadFull(0x7f7b974493b8, 0xc82000c8c0, 0xc82044ab10, 0x5, 0x5, 0x2b264c0, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:315 +0x62\r\ngoogle.golang.org/grpc.(*parser).recvMsg(0xc82044ab00, 0x100000002, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/rpc_util.go:216 +0xb9\r\ngoogle.golang.org/grpc.recv(0xc82044ab00, 0x7f7b97449008, 0x2b51da0, 0xc82000c8c0, 0x0, 0x0, 0x1bcbac0, 0xc8209e6dc0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/rpc_util.go:300 +0x45\r\ngoogle.golang.org/grpc.(*clientStream).RecvMsg(0xc820421540, 0x1bcbac0, 0xc8209e6dc0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/stream.go:234 +0xac\r\ngithub.com/docker/containerd/api/grpc/types.(*aPIEventsClient).Recv(0xc82040d670, 0xecf151803, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/containerd/api/grpc/types/api.pb.go:1005 +0x7e\r\ngithub.com/docker/docker/libcontainerd.(*remote).handleEventStream(0xc8203e9ad0, 0x7f7b974494e0, 0xc82040d670)\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:273 +0x6c\r\ncreated by github.com/docker/docker/libcontainerd.(*remote).startEventsMonitor\r\n    /go/src/github.com/docker/docker/libcontainerd/remote_linux.go:266 +0x184\r\n\r\ngoroutine 34 [select, locked to thread]:\r\nruntime.gopark(0x21d95c0, 0xc820478728, 0x1dca248, 0x6, 0x18, 0x2)\r\n    /usr/local/go/src/runtime/proc.go:262 +0x163\r\nruntime.selectgoImpl(0xc820478728, 0x0, 0x18)\r\n    /usr/local/go/src/runtime/select.go:392 +0xa67\r\nruntime.selectgo(0xc820478728)\r\n    /usr/local/go/src/runtime/select.go:215 +0x12\r\nruntime.ensureSigM.func1()\r\n    /usr/local/go/src/runtime/signal1_unix.go:279 +0x358\r\nruntime.goexit()\r\n    /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1\r\n\r\ngoroutine 30 [chan receive]:\r\ngithub.com/docker/docker/daemon.(*statsCollector).run(0xc8204a02c0)\r\n    /go/src/github.com/docker/docker/daemon/stats_collector_unix.go:106 +0xb6\r\ncreated by github.com/docker/docker/daemon.(*Daemon).newStatsCollector\r\n    /go/src/github.com/docker/docker/daemon/stats_collector_unix.go:44 +0x1f1\r\n\r\ngoroutine 31 [chan receive]:\r\ngithub.com/docker/docker/daemon.(*Daemon).execCommandGC(0xc820161380)\r\n    /go/src/github.com/docker/docker/daemon/exec.go:237 +0x87\r\ncreated by github.com/docker/docker/daemon.NewDaemon\r\n    /go/src/github.com/docker/docker/daemon/daemon.go:594 +0x3329\r\n\r\ngoroutine 158 [IO wait]:\r\nnet.runtime_pollWait(0x7f7b97448a98, 0x72, 0x0)\r\n    /usr/local/go/src/runtime/netpoll.go:160 +0x60\r\nnet.(*pollDesc).Wait(0xc8202ec220, 0x72, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc8202ec220, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36\r\nnet.(*netFD).accept(0xc8202ec1c0, 0x0, 0x7f7b95c0e4a8, 0xc820548720)\r\n    /usr/local/go/src/net/fd_unix.go:426 +0x27c\r\nnet.(*UnixListener).AcceptUnix(0xc8200e3b00, 0xc8208a3ed0, 0x0, 0x0)\r\n    /usr/local/go/src/net/unixsock_posix.go:305 +0x53\r\nnet.(*UnixListener).Accept(0xc8200e3b00, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/net/unixsock_posix.go:315 +0x41\r\ngithub.com/docker/libnetwork.(*controller).acceptClientConnections(0xc8202660f0, 0xc8202ec150, 0x63, 0x7f7b97447da0, 0xc8200e3b00)\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/sandbox_externalkey_unix.go:128 +0x41\r\ncreated by github.com/docker/libnetwork.(*controller).startExternalKeyListener\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/sandbox_externalkey_unix.go:122 +0x28a\r\n\r\ngoroutine 130 [select]:\r\ngoogle.golang.org/grpc.(*Conn).WaitForStateChange.func1(0x7f7b95bff0b8, 0xc82000f178, 0xc8203ea1e0, 0xc8203baed0, 0xc8202bca80)\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:394 +0x1b1\r\ncreated by google.golang.org/grpc.(*Conn).WaitForStateChange\r\n    /go/src/github.com/docker/docker/vendor/src/google.golang.org/grpc/clientconn.go:402 +0x14e\r\n\r\ngoroutine 132 [select]:\r\ngithub.com/docker/libnetwork.(*controller).watchLoop(0xc8202660f0)\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/store.go:431 +0x13b\r\ncreated by github.com/docker/libnetwork.(*controller).startWatch\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/store.go:448 +0x112\r\n\r\ngoroutine 157 [select]:\r\ngithub.com/docker/libnetwork/osl.removeUnusedPaths()\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/osl/namespace_linux.go:77 +0x496\r\ncreated by github.com/docker/libnetwork/osl.createBasePath\r\n    /go/src/github.com/docker/docker/vendor/src/github.com/docker/libnetwork/osl/namespace_linux.go:62 +0xbe\r\n\r\ngoroutine 202 [chan receive]:\r\ngithub.com/docker/docker/api/server.(*Server).serveAPI(0xc82043a8a0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/api/server/server.go:95 +0x19e\r\ngithub.com/docker/docker/api/server.(*Server).Wait(0xc82043a8a0, 0xc820b4d260)\r\n    /go/src/github.com/docker/docker/api/server/server.go:189 +0x2b\r\ncreated by main.(*DaemonCli).start\r\n    /go/src/github.com/docker/docker/cmd/dockerd/daemon.go:303 +0x22d3\r\n\r\ngoroutine 204 [IO wait]:\r\nnet.runtime_pollWait(0x7f7b97448cd8, 0x72, 0x0)\r\n    /usr/local/go/src/runtime/netpoll.go:160 +0x60\r\nnet.(*pollDesc).Wait(0xc820436450, 0x72, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc820436450, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36\r\nnet.(*netFD).accept(0xc8204363f0, 0x0, 0x7f7b95c0e4a8, 0xc820b6c040)\r\n    /usr/local/go/src/net/fd_unix.go:426 +0x27c\r\nnet.(*UnixListener).AcceptUnix(0xc82044a240, 0xc8204304dc, 0x0, 0x0)\r\n    /usr/local/go/src/net/unixsock_posix.go:305 +0x53\r\nnet.(*UnixListener).Accept(0xc82044a240, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/net/unixsock_posix.go:315 +0x41\r\ngithub.com/docker/docker/cmd/dockerd/hack.(*MalformedHostHeaderOverride).Accept(0xc82040d100, 0x0, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/cmd/dockerd/hack/malformed_host_override.go:116 +0x5f\r\nnet/http.(*Server).Serve(0xc820430480, 0x7f7b97448d98, 0xc82040d100, 0x0, 0x0)\r\n    /usr/local/go/src/net/http/server.go:2117 +0x129\r\ngithub.com/docker/docker/api/server.(*HTTPServer).Serve(0xc82044a3a0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/api/server/server.go:114 +0x47\r\ngithub.com/docker/docker/api/server.(*Server).serveAPI.func1(0xc820b4d2c0, 0xc82044a3a0)\r\n    /go/src/github.com/docker/docker/api/server/server.go:87 +0x13d\r\ncreated by github.com/docker/docker/api/server.(*Server).serveAPI\r\n    /go/src/github.com/docker/docker/api/server/server.go:91 +0x137\r\n\r\ngoroutine 205 [IO wait]:\r\nnet.runtime_pollWait(0x7f7b97448c18, 0x72, 0x0)\r\n    /usr/local/go/src/runtime/netpoll.go:160 +0x60\r\nnet.(*pollDesc).Wait(0xc820436680, 0x72, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc820436680, 0x0, 0x0)\r\n    /usr/local/go/src/net/fd_poll_runtime.go:78 +0x36\r\nnet.(*netFD).accept(0xc820436620, 0x0, 0x7f7b95c0e4a8, 0xc8202983c0)\r\n    /usr/local/go/src/net/fd_unix.go:426 +0x27c\r\nnet.(*TCPListener).AcceptTCP(0xc820022190, 0x41c78d, 0x0, 0x0)\r\n    /usr/local/go/src/net/tcpsock_posix.go:254 +0x4d\r\nnet.(*TCPListener).Accept(0xc820022190, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/net/tcpsock_posix.go:264 +0x3d\r\ncrypto/tls.(*listener).Accept(0xc82044a460, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/crypto/tls/tls.go:52 +0x60\r\nnet/http.(*Server).Serve(0xc820430580, 0x7f7b97448e80, 0xc82044a460, 0x0, 0x0)\r\n    /usr/local/go/src/net/http/server.go:2117 +0x129\r\ngithub.com/docker/docker/api/server.(*HTTPServer).Serve(0xc82044a580, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/api/server/server.go:114 +0x47\r\ngithub.com/docker/docker/api/server.(*Server).serveAPI.func1(0xc820b4d2c0, 0xc82044a580)\r\n    /go/src/github.com/docker/docker/api/server/server.go:87 +0x13d\r\ncreated by github.com/docker/docker/api/server.(*Server).serveAPI\r\n    /go/src/github.com/docker/docker/api/server/server.go:91 +0x137\r\n\r\ngoroutine 207 [semacquire]:\r\nsync.runtime_Syncsemacquire(0xc8209a4d50)\r\n    /usr/local/go/src/runtime/sema.go:241 +0x201\r\nsync.(*Cond).Wait(0xc8209a4d40)\r\n    /usr/local/go/src/sync/cond.go:63 +0x9b\r\ngithub.com/docker/docker/pkg/ioutils.(*BytesPipe).Read(0xc8209a4cc0, 0xc820c8b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/pkg/ioutils/bytespipe.go:134 +0xf7\r\nbufio.(*Reader).fill(0xc8208a1ed0)\r\n    /usr/local/go/src/bufio/bufio.go:97 +0x1e9\r\nbufio.(*Reader).ReadSlice(0xc8208a1ed0, 0xc82002500a, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/bufio/bufio.go:328 +0x21a\r\nbufio.(*Reader).ReadBytes(0xc8208a1ed0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/bufio/bufio.go:406 +0xa9\r\ngithub.com/docker/docker/daemon/logger.(*Copier).copySrc(0xc8209a4dc0, 0x1dcab20, 0x6, 0x7f7b9422d438, 0xc8209a4cc0)\r\n    /go/src/github.com/docker/docker/daemon/logger/copier.go:50 +0x14a\r\ncreated by github.com/docker/docker/daemon/logger.(*Copier).Run\r\n    /go/src/github.com/docker/docker/daemon/logger/copier.go:37 +0x12b\r\n\r\ngoroutine 303 [semacquire]:\r\nsync.runtime_Syncsemacquire(0xc8209a4c90)\r\n    /usr/local/go/src/runtime/sema.go:241 +0x201\r\nsync.(*Cond).Wait(0xc8209a4c80)\r\n    /usr/local/go/src/sync/cond.go:63 +0x9b\r\ngithub.com/docker/docker/pkg/ioutils.(*BytesPipe).Write(0xc8209a4c00, 0xc820c6f1c0, 0x6e40, 0x6e40, 0xa, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/pkg/ioutils/bytespipe.go:89 +0x404\r\ngithub.com/docker/docker/pkg/broadcaster.(*Unbuffered).Write(0xc8205d7e00, 0xc820c6e000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)\r\n    /go/src/github.com/docker/docker/pkg/broadcaster/unbuffered.go:27 +0x12e\r\nio.copyBuffer(0x7f7b97458c18, 0xc8205d7e00, 0x7f7b95c1b480, 0xc820023f58, 0xc820c6e000, 0x8000, 0x8000, 0x65f11000, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:382 +0x2c9\r\nio.Copy(0x7f7b97458c18, 0xc8205d7e00, 0x7f7b95c1b480, 0xc820023f58, 0xc820459200, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:350 +0x64\r\ngithub.com/docker/docker/daemon.(*Daemon).AttachStreams.func2.1(0x7f7b97458c18, 0xc8205d7e00, 0x7f7b95c1b480, 0xc820023f58, 0xc8209f479e, 0x40, 0xc8208f8840)\r\n    /go/src/github.com/docker/docker/daemon/monitor.go:141 +0x6a\r\ncreated by github.com/docker/docker/daemon.(*Daemon).AttachStreams.func2\r\n    /go/src/github.com/docker/docker/daemon/monitor.go:145 +0xaf\r\n\r\ngoroutine 301 [syscall]:\r\nsyscall.Syscall(0x0, 0x11, 0xc820c5e000, 0x8000, 0x0, 0xc81ffd5bc9, 0x1b600000000)\r\n    /usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5\r\nsyscall.read(0x11, 0xc820c5e000, 0x8000, 0x8000, 0x1b9b148, 0x0, 0x0)\r\n    /usr/local/go/src/syscall/zsyscall_linux_amd64.go:783 +0x5f\r\nsyscall.Read(0x11, 0xc820c5e000, 0x8000, 0x8000, 0xc820c5e000, 0x0, 0x0)\r\n    /usr/local/go/src/syscall/syscall_unix.go:161 +0x4d\r\nos.(*File).read(0xc820023f80, 0xc820c5e000, 0x8000, 0x8000, 0x184f9a0, 0x0, 0x0)\r\n    /usr/local/go/src/os/file_unix.go:228 +0x53\r\nos.(*File).Read(0xc820023f80, 0xc820c5e000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)\r\n    /usr/local/go/src/os/file.go:95 +0x8a\r\nio.copyBuffer(0x7f7b95c1b4f8, 0xc820023f70, 0x7f7b97446270, 0xc820023f80, 0xc820c5e000, 0x8000, 0x8000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:380 +0x247\r\nio.Copy(0x7f7b95c1b4f8, 0xc820023f70, 0x7f7b97446270, 0xc820023f80, 0xc820023f80, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:350 +0x64\r\ngithub.com/docker/docker/libcontainerd.openReaderFromFifo.func1(0xc820aed340, 0x6a, 0xc820023f68, 0xc820023f70)\r\n    /go/src/github.com/docker/docker/libcontainerd/process_linux.go:87 +0x10c\r\ncreated by github.com/docker/docker/libcontainerd.openReaderFromFifo\r\n    /go/src/github.com/docker/docker/libcontainerd/process_linux.go:92 +0x19f\r\n\r\ngoroutine 304 [semacquire]:\r\nsync.runtime_Syncsemacquire(0xc82038db40)\r\n    /usr/local/go/src/runtime/sema.go:241 +0x201\r\nsync.(*Cond).Wait(0xc82038db30)\r\n    /usr/local/go/src/sync/cond.go:63 +0x9b\r\nio.(*pipe).read(0xc82038db00, 0xc820c18000, 0x8000, 0x8000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/pipe.go:52 +0x2d2\r\nio.(*PipeReader).Read(0xc820023f68, 0xc820c18000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)\r\n    /usr/local/go/src/io/pipe.go:134 +0x50\r\nio.copyBuffer(0x7f7b97458c18, 0xc8205d7de0, 0x7f7b95c1b480, 0xc820023f68, 0xc820c18000, 0x8000, 0x8000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:380 +0x247\r\nio.Copy(0x7f7b97458c18, 0xc8205d7de0, 0x7f7b95c1b480, 0xc820023f68, 0xc820459380, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:350 +0x64\r\ngithub.com/docker/docker/daemon.(*Daemon).AttachStreams.func2.1(0x7f7b97458c18, 0xc8205d7de0, 0x7f7b95c1b480, 0xc820023f68, 0xc8209f479e, 0x40, 0xc8208f8840)\r\n    /go/src/github.com/docker/docker/daemon/monitor.go:141 +0x6a\r\ncreated by github.com/docker/docker/daemon.(*Daemon).AttachStreams.func2\r\n    /go/src/github.com/docker/docker/daemon/monitor.go:145 +0xaf\r\n\r\ngoroutine 201 [chan receive]:\r\nmain.(*DaemonCli).setupConfigReloadTrap.func1(0xc820b4d200, 0xc8203ed740)\r\n    /go/src/github.com/docker/docker/cmd/dockerd/daemon_unix.go:55 +0x4d\r\ncreated by main.(*DaemonCli).setupConfigReloadTrap\r\n    /go/src/github.com/docker/docker/cmd/dockerd/daemon_unix.go:58 +0x14c\r\n\r\ngoroutine 300 [semacquire]:\r\nsync.runtime_Syncsemacquire(0xc82038dab8)\r\n    /usr/local/go/src/runtime/sema.go:241 +0x201\r\nsync.(*Cond).Wait(0xc82038daa8)\r\n    /usr/local/go/src/sync/cond.go:63 +0x9b\r\nio.(*pipe).write(0xc82038da40, 0xc82088e000, 0x8000, 0x8000, 0x0, 0x0, 0x0)\r\n    /usr/local/go/src/io/pipe.go:94 +0x23a\r\nio.(*PipeWriter).Write(0xc820023f60, 0xc82088e000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)\r\n    /usr/local/go/src/io/pipe.go:161 +0x50\r\nio.copyBuffer(0x7f7b95c1b4f8, 0xc820023f60, 0x7f7b97446270, 0xc820148038, 0xc82088e000, 0x8000, 0x8000, 0x65f19000, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:382 +0x2c9\r\nio.Copy(0x7f7b95c1b4f8, 0xc820023f60, 0x7f7b97446270, 0xc820148038, 0xc820148038, 0x0, 0x0)\r\n    /usr/local/go/src/io/io.go:350 +0x64\r\ngithub.com/docker/docker/libcontainerd.openReaderFromFifo.func1(0xc820aed260, 0x6a, 0xc820023f58, 0xc820023f60)\r\n    /go/src/github.com/docker/docker/libcontainerd/process_linux.go:87 +0x10c\r\ncreated by github.com/docker/docker/libcontainerd.openReaderFromFifo\r\n    /go/src/github.com/docker/docker/libcontainerd/process_linux.go:92 +0x19f\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/234969748","html_url":"https://github.com/docker/docker/issues/24521#issuecomment-234969748","issue_url":"https://api.github.com/repos/docker/docker/issues/24521","id":234969748,"user":{"login":"QianJin2013","id":5234060,"avatar_url":"https://avatars.githubusercontent.com/u/5234060?v=3","gravatar_id":"","url":"https://api.github.com/users/QianJin2013","html_url":"https://github.com/QianJin2013","followers_url":"https://api.github.com/users/QianJin2013/followers","following_url":"https://api.github.com/users/QianJin2013/following{/other_user}","gists_url":"https://api.github.com/users/QianJin2013/gists{/gist_id}","starred_url":"https://api.github.com/users/QianJin2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QianJin2013/subscriptions","organizations_url":"https://api.github.com/users/QianJin2013/orgs","repos_url":"https://api.github.com/users/QianJin2013/repos","events_url":"https://api.github.com/users/QianJin2013/events{/privacy}","received_events_url":"https://api.github.com/users/QianJin2013/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T14:30:22Z","updated_at":"2016-07-25T14:30:22Z","body":"I have just started from reading the guideline for code contribution, \r\nI am new to golang, so it will be slow.\r\nIt's great that docker's build-test environment is using a docker container 👍.\r\n\r\nMay i ask a basic question to dear Docker members?  No need detail answer, just a a piece of keyword is appreciate.\r\n\r\nWhat IDE are you using?\r\nHow to you debug docker daemon?\r\n\r\nI am going to use IntelliJ IDEA as a remote debugger to attach to debug agent which is started in docker container by some ways which i need check golang document.\r\n"}}
{"actor":{"display_login":"QianJin2013"}}