[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4dea06531ece28dffc1452de2694fb22e99b45f9 by Victor Stinner in branch '2.7': bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3071) https://github.com/python/cpython/commit/4dea06531ece28dffc1452de2694fb22e99b45f9 --

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-11 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3107 ___ Python tracker ___ ___

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
STINNER Victor added the comment: Reopen. I forgot Python 2.7. -- ___ Python tracker ___ ___ Python-bugs-list

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc69d00288a0b1f5ef49dcfd60a91c5e9b5b81ae by Victor Stinner in branch '3.6': bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3070) https://github.com/python/cpython/commit/bc69d00288a0b1f5ef49dcfd60a91c5e9b5b81ae --

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3106 ___ Python tracker ___ ___

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b7c6dcfff6a35333988a3c74c895ed19dff2e09 by Victor Stinner in branch 'master': bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) https://github.com/python/cpython/commit/7b7c6dcfff6a35333988a3c74c895ed19dff2e09 --

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
STINNER Victor added the comment: I chose to only add W_STOPCODE() to _testcapi rather than the os module, because I don't want to have to document this function. I don't think that anyone needs such function, usually we only need to consume process statuses, not to produce them. The only use

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/3055 removes the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path. The functional test created a core dump, but it's now

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3090 ___ Python tracker ___ ___

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
New submission from STINNER Victor: The test_child_terminated_in_stopped_state() test creates a child process which calls ptrace(PTRACE_ME, 0, 0) and then crashs using SIGSEGV. The problem is that even if we read the exit status using os.waitpid() through subprocess, the process remains alive

[issue31173] test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process

2017-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Tests versions: +Python 3.7 ___ Python tracker ___