https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Bug ID: 1087704 Summary: repetition of signal 21 with --sig-proxy and SIGSTOP of docker Product: Fedora Version: 20 Component: docker-io Severity: low Assignee: lsm5@redhat.com Reporter: ldoktor@redhat.com QA Contact: extras-qa@fedoraproject.org CC: admiller@redhat.com, golang@lists.fedoraproject.org, lsm5@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, skottler@redhat.com, vbatts@redhat.com
Description of problem: I noticed weird reaction to SIGSTOP signal. When you start container with --sig-proxy, ignore all signals in container and from OS use kill -SIGSTOP to the `docker run` process, it's put into background. (so far correct behavior) Than when you use kill -SIGCONT, it's resumed (still in background) and it's continuing to send signal 21 to the container (100% CPU utilization). This disappears once you attach the process with fg.
Version-Release number of selected component (if applicable): docker-io-0.9.1-1.fc21.x86_64
How reproducible: always
Steps to Reproduce: 1. /usr/bin/docker -D run --tty=false --rm -i --name test_eoly localhost:5000/ldoktor/fedora:latest bash -c 'for NUM in `seq 1 64`; do trap "echo Received $NUM, ignoring..." $NUM; done; while :; do sleep 1; done' 2. ps ax |grep docker 3. kill -SIGSTOP $PID 4. kill -SIGCONT $PID
Actual results: [1]+ Pozastavena /usr/bin/docker -D run --tty=false --rm -i --name test_eoly localhost:5000/ldoktor/fedora:latest bash -c 'for NUM in `seq 1 64`; do trap "echo Received $NUM, ignoring..." $NUM; done; while :; do sleep 1; done' [root@t530 ~]# Received 21, ignoring... Received 21, ignoring... Received 21, ignoring... Received 21, ignoring... Received 21, ignoring... Received 21, ignoring... ... (100% CPU utilization, when you use fg it stops and you can use the container again...)
Expected results: [1]+ Pozastavena /usr/bin/docker -D run --tty=false --rm -i --name test_eoly localhost:5000/ldoktor/fedora:latest bash -c 'for NUM in `seq 1 64`; do trap "echo Received $NUM, ignoring..." $NUM; done; while :; do sleep 1; done' [root@t530 ~]# Received 21, ignoring...
Additional info: I'm not definitely sure if this is really required as it's not a common usage. But as there is no way to detach the process apart from kill -SIGSTOP people might use it and get to this problem...
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
--- Comment #1 from Lukas Doktor ldoktor@redhat.com --- I retested this with the upstream dc9c28f/0.10.0 with the same results. The daemon output is: ... [/home/medic/Work/Projekty/Docker/root|fa3816b6] -job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) = OK (0) 2014/05/05 09:58:13 POST /v1.10/containers/b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5/kill?signal=TTIN [/home/medic/Work/Projekty/Docker/root|fa3816b6] +job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) [/home/medic/Work/Projekty/Docker/root|fa3816b6] -job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) = OK (0) 2014/05/05 09:58:13 POST /v1.10/containers/b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5/kill?signal=TTIN [/home/medic/Work/Projekty/Docker/root|fa3816b6] +job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) [/home/medic/Work/Projekty/Docker/root|fa3816b6] -job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) = OK (0) 2014/05/05 09:58:13 POST /v1.10/containers/b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5/kill?signal=TTIN [/home/medic/Work/Projekty/Docker/root|fa3816b6] +job kill(b01a849cb45ebe94c3a61fa021a5464186345d5b159faee4ea9d5da39fb36de5, TTIN) ...
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Lukas Doktor ldoktor@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1096273
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1096273 [Bug 1096273] repetition of signal 21 with --sig-proxy and SIGSTOP of docker
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ldoktor@redhat.com Flags| |needinfo?(ldoktor@redhat.co | |m)
--- Comment #2 from Daniel Walsh dwalsh@redhat.com --- Are you still seeing this with 0.11?
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Lukas Doktor ldoktor@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ldoktor@redhat.co | |m) |
--- Comment #3 from Lukas Doktor ldoktor@redhat.com --- I tested it only on RHEL version of this package here: https://bugzilla.redhat.com/show_bug.cgi?id=1096273
the bug persists...
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|lsm5@redhat.com |whenry@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|whenry@redhat.com |mheon@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
--- Comment #4 from Daniel Walsh dwalsh@redhat.com --- Can you test against docker-1.2
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
--- Comment #5 from Lukas Doktor ldoktor@redhat.com --- On docker-1.2.0-19.el7.x86_64 it still fails and results in too many open files:
[debug] commands.go:610 Error sending signal: Post http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files [debug] commands.go:610 Error sending signal: Post http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files [debug] commands.go:610 Error sending signal: Post http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files [debug] commands.go:610 Error sending signal: Post http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files [debug] commands.go:610 Error sending signal: Post http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files [debug] stdcopy.go:98 Corrupted prefix: [] [debug] hijack.go:102 [hijack] End of stdout [debug] hijack.go:110 [hijack] End of stdin [debug] hijack.go:118 Couldn't send EOF: use of closed network connection [debug] commands.go:2332 End of CmdRun(), Waiting for hijack to finish. 2014/09/26 13:07:49 Get http:///var/run/docker.sock/v1.15/containers/64b2b2d8171bca438d6c7a0e2ed9357...: dial unix /var/run/docker.sock: too many open files
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
John Skeoch jskeoch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|mheon@redhat.com |jrieden@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|jrieden@redhat.com |mheon@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
--- Comment #7 from Matthew Heon mheon@redhat.com --- I'm fairly certain this is an issue with Golang, not docker-specific. Upstream issue tracker describing very similar symptoms from SIGSTOP: https://github.com/golang/go/issues/4391
https://bugzilla.redhat.com/show_bug.cgi?id=1087704
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |CANTFIX Last Closed| |2015-04-15 08:17:16
--- Comment #8 from Daniel Walsh dwalsh@redhat.com --- Not something docker can fix.
golang@lists.fedoraproject.org