{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/28712","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/28712/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/28712/comments","events_url":"https://api.github.com/repos/docker/docker/issues/28712/events","html_url":"https://github.com/docker/docker/issues/28712","id":190986163,"number":28712,"title":"SIGSEGV in libnetwork.(*endpoint).deleteFromCluster","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"labels":[{"id":237472034,"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04","default":false},{"id":392678049,"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false},{"id":190258329,"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false},{"id":381838255,"url":"https://api.github.com/repos/docker/docker/labels/platform/desktop","name":"platform/desktop","color":"F6FBFF","default":false},{"id":480238176,"url":"https://api.github.com/repos/docker/docker/labels/version/1.13","name":"version/1.13","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"aboch","id":10080882,"avatar_url":"https://avatars.githubusercontent.com/u/10080882?v=3","gravatar_id":"","url":"https://api.github.com/users/aboch","html_url":"https://github.com/aboch","followers_url":"https://api.github.com/users/aboch/followers","following_url":"https://api.github.com/users/aboch/following{/other_user}","gists_url":"https://api.github.com/users/aboch/gists{/gist_id}","starred_url":"https://api.github.com/users/aboch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboch/subscriptions","organizations_url":"https://api.github.com/users/aboch/orgs","repos_url":"https://api.github.com/users/aboch/repos","events_url":"https://api.github.com/users/aboch/events{/privacy}","received_events_url":"https://api.github.com/users/aboch/received_events","type":"User","site_admin":false},"assignees":[{"login":"aboch","id":10080882,"avatar_url":"https://avatars.githubusercontent.com/u/10080882?v=3","gravatar_id":"","url":"https://api.github.com/users/aboch","html_url":"https://github.com/aboch","followers_url":"https://api.github.com/users/aboch/followers","following_url":"https://api.github.com/users/aboch/following{/other_user}","gists_url":"https://api.github.com/users/aboch/gists{/gist_id}","starred_url":"https://api.github.com/users/aboch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboch/subscriptions","organizations_url":"https://api.github.com/users/aboch/orgs","repos_url":"https://api.github.com/users/aboch/repos","events_url":"https://api.github.com/users/aboch/events{/privacy}","received_events_url":"https://api.github.com/users/aboch/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/56","html_url":"https://github.com/docker/docker/milestones/1.13.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/56/labels","id":1839404,"number":56,"title":"1.13.0","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":119,"closed_issues":1079,"state":"open","created_at":"2016-06-20T22:51:25Z","updated_at":"2016-11-30T19:44:44Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-11-22T12:26:02Z","updated_at":"2016-11-30T19:44:44Z","closed_at":"2016-11-30T19:44:44Z","body":"\r\n**Description**\r\n\r\nThe Docker for Mac integration tests occasionally trigger a crash of the docker daemon. It seems to be triggered by the service smoke test which is (roughly, I've had to remove some test framework boilerplate)\r\n\r\n```bash\r\nIMAGE_NAME=webserver\r\n\r\nclean_up() {\r\n    docker service rm \"${IMAGE_NAME}\" || true\r\n}\r\ntrap clean_up EXIT\r\n\r\n# create docker service\r\ndocker service create --replicas 1 --name \"${IMAGE_NAME}\" --publish 80:80/tcp nginx:1.10.2-alpine\r\nsleep 5\r\n\r\n# try to load a web page every second for 120 seconds\r\n# -- the real case calls a framework function which tries to `curl` the webpage for up to 120 minutes\r\n```\r\n\r\n**Describe the results you received:**\r\n\r\nThe docker daemon crashes and the logs contain:\r\n```\r\ntime=\"2016-11-21T09:55:39.324896400Z\" level=info msg=\"Stopping manager\"\r\ntime=\"2016-11-21T09:55:39.325990500Z\" level=debug msg=\"(*Agent).run exited\" modu\r\nle=\"node/agent\"\r\ntime=\"2016-11-21T09:55:39.326757100Z\" level=error msg=\"failed to remove node\" er\r\nror=\"rpc error: code = 10 desc = dispatcher is stopped\" method=\"(*Dispatcher).Se\r\nssion\" node.id=ll0ocslii2t2lknftkk58kmfe node.session=pajjkh19rwbd9h4ocowzxhgdt\r\ntime=\"2016-11-21T09:55:39.327134700Z\" level=error msg=\"LogBroker exited with an\r\nerror\" error=\"context canceled\"\r\ntime=\"2016-11-21T09:55:39.327826400Z\" level=info msg=\"Manager shut down\"\r\ntime=\"2016-11-21T09:55:39.328143500Z\" level=debug msg=\"Sending kill signal 9 to\r\ncontainer 1c7b9cffcc0b8014197d2f69929b83737bd860a31d700d4054f313860f1a7127\"\r\ntime=\"2016-11-21T09:55:39.341277300Z\" level=debug msg=\"/usr/local/sbin/iptables,\r\n [--wait -t filter -L DOCKER-INGRESS]\"\r\ntime=\"2016-11-21T09:55:39.352599100Z\" level=debug msg=\"/usr/local/sbin/iptables,\r\n [--wait -t nat -L DOCKER-INGRESS]\"\r\ntime=\"2016-11-21T09:55:39.3611242Z\" level=debug msg=\"containerd: process exited\"\r\n id=1c7b9cffcc0b8014197d2f69929b83737bd860a31d700d4054f313860f1a7127 pid=init st\r\natus=137 systemPid=19330\r\ntime=\"2016-11-21T09:55:39.369023400Z\" level=debug msg=\"libcontainerd: received c\r\nontainerd event: &types.Event{Type:\\\"exit\\\", Id:\\\"1c7b9cffcc0b8014197d2f69929b83\r\n737bd860a31d700d4054f313860f1a7127\\\", Status:0x89, Pid:\\\"init\\\", Timestamp:(*tim\r\nestamp.Timestamp)(0xc4214e8e40)}\"\r\ntime=\"2016-11-21T09:55:39.371913500Z\" level=debug msg=\"checkEncryption(shi07d4,\r\n<nil>, 0, true)\"\r\ntime=\"2016-11-21T09:55:39.375425800Z\" level=debug msg=\"/usr/local/sbin/iptables,\r\n [--wait -t nat -D DOCKER-INGRESS -p tcp --dport 80 -j DNAT --to-destination 172.18.0.2:80]\"\r\ntime=\"2016-11-21T09:55:39.388322100Z\" level=debug msg=\"/usr/local/sbin/iptables, [--wait -D DOCKER-INGRESS -m state -p tcp --sport 80 --state ESTABLISHED,RELATED -j ACCEPT]\"\r\ntime=\"2016-11-21T09:55:39.422325000Z\" level=debug msg=\"Revoking external connectivity on endpoint gateway_1c7b9cffcc0b (4fa59b13b6a33d922a1adb3ac7eac1b9d3dccd4b9bf2ab3c5fdef8653cf24c7c)\"\r\ntime=\"2016-11-21T09:55:39.464712400Z\" level=debug msg=\"/usr/local/sbin/iptables, [--wait -D DOCKER-INGRESS -p tcp --dport 80 -j ACCEPT]\"\r\ntime=\"2016-11-21T09:55:39.506716300Z\" level=debug msg=\"Releasing addresses for endpoint gateway_1c7b9cffcc0b's interface on network docker_gwbridge\"\r\ntime=\"2016-11-21T09:55:39.506780800Z\" level=debug msg=\"ReleaseAddress(LocalDefault/172.18.0.0/16, 172.18.0.3)\"\r\ntime=\"2016-11-21T09:55:39.531994000Z\" level=debug msg=\"Releasing addresses for endpoint webserver.1.5s6d3ottqo8y4oha7ic8j4ej7's interface on network ingress\"\r\ntime=\"2016-11-21T09:55:39.532047400Z\" level=debug msg=\"ReleaseAddress(LocalDefault/10.255.0.0/16, 10.255.0.5)\"\r\ntime=\"2016-11-21T09:55:39Z\" level=warning msg=\"Running modprobe nf_nat failed with message: `modprobe: module nf_nat not found in modules.dep`, error: exit status 1\"\r\ntime=\"2016-11-21T09:55:39Z\" level=warning msg=\"Running modprobe xt_conntrack failed with message: `modprobe: module xt_conntrack not found in modules.dep`, error: exit status 1\"\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8268f5]\r\n\r\ngoroutine 9673 [running]:\r\npanic(0x173e9a0, 0xc4200120b0)\r\n        /usr/local/go/src/runtime/panic.go:500 +0x1a1\r\ngithub.com/docker/docker/vendor/github.com/docker/libnetwork.(*endpoint).deleteFromCluster(0xc42146f8c0, 0xc420df1700, 0x1)\r\n        /go/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/agent.go:452 +0x285\r\ngithub.com/docker/docker/vendor/github.com/docker/libnetwork.(*sandbox).DisableService(0xc4201014a0, 0xc420761680, 0x24cea80)\r\n        /go/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/sandbox.go:679 +0xdb\r\ngithub.com/docker/docker/daemon.(*Daemon).DeactivateContainerServiceBinding(0xc420100b40, 0xc42103db00, 0x25, 0x24adb80, 0xc420012d90)\r\n        /go/src/github.com/docker/docker/daemon/container_operations.go:1046 +0x87\r\ngithub.com/docker/docker/daemon/cluster/executor/container.(*containerAdapter).deactivateServiceBinding(0xc4211da720, 0x0, 0x0)\r\n        /go/src/github.com/docker/docker/daemon/cluster/executor/container/adapter.go:391 +0x5c\r\ngithub.com/docker/docker/daemon/cluster/executor/container.(*controller).Shutdown(0xc420fe6e10, 0x24c7140, 0xc4211da8d0, 0xc420944c80, 0x0)\r\n        /go/src/github.com/docker/docker/daemon/cluster/executor/container/controller.go:325 +0x6a\r\ngithub.com/docker/docker/daemon/cluster/executor/container.(*controller).Remove(0xc420fe6e10, 0x24c7140, 0xc4211da8d0, 0xc4211da801, 0xc4216a91a0)\r\n        /go/src/github.com/docker/docker/daemon/cluster/executor/container/controller.go:373 +0x93\r\ngithub.com/docker/docker/vendor/github.com/docker/swarmkit/agent.(*taskManager).run(0xc42039e600, 0x24c7140, 0xc4211da8d0)\r\n        /go/src/github.com/docker/docker/vendor/github.com/docker/swarmkit/agent/task.go:237 +0x1105\r\ncreated by github.com/docker/docker/vendor/github.com/docker/swarmkit/agent.newTaskManager\r\n        /go/src/github.com/docker/docker/vendor/github.com/docker/swarmkit/agent/task.go:35 +0x19b\r\n```\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nDefinitely occasional. I don't have a good way to measure the failure rate at the moment.\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.13.0-rc1\r\n API version:  1.25\r\n Go version:   go1.7.3\r\n Git commit:   75fd88b\r\n Built:        Fri Nov 11 22:32:34 2016\r\n OS/Arch:      linux/amd64\r\n```\r\nAt the point the diagnostics were captured the server had died. An earlier pre-failure diagnostics capture had:\r\n```\r\nServer:\r\n Version:             1.13.0-rc1\r\n API version:         1.25\r\n Minimum API version: 1.12\r\n Go version:          go1.7.3\r\n Git commit:          75fd88b\r\n Built:               Fri Nov 11 22:32:34 2016\r\n OS/Arch:             linux/amd64\r\n Experimental:        true\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\nThis is from an earlier diagnostics capture, before the failure:\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 0\r\nServer Version: 1.13.0-rc1\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531\r\nrunc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2\r\ninit version: N/A (expected: v0.13.0)\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.8.8-moby\r\nOperating System: Alpine Linux v3.4\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 1.952 GiB\r\nName: moby\r\nID: 6PVD:ZIYZ:S4CJ:OMQW:MC3V:OBGD:5N57:3DAU:O2K2:CUQJ:L7AE:QOVM\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 16\r\n Goroutines: 26\r\n System Time: 2016-11-21T09:44:25.8236626Z\r\n EventsListeners: 1\r\nNo Proxy: *.local, 169.254/16\r\nRegistry: https://index.docker.io/v1/\r\nExperimental: true\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nThis is Docker for Mac with 1.13 rc1."}}
{"actor":{"display_login":"aboch"}}