homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_subprocess.test_pass_fds() failed on x86 Tiger 3.x
Type: Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, python-dev, rosslagerwall, vstinner
Priority: normal Keywords: buildbot

Created on 2011年05月31日 22:48 by vstinner, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (7)
msg137396 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011年05月31日 22:48
test_subprocess.test_pass_fds() failed on x86 Tiger 3.x:
test test_subprocess failed -- Traceback (most recent call last):
 File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_subprocess.py", line 1296, in test_pass_fds
 "fd to be closed passed")
AssertionError: {9} is not false : fd to be closed passed
http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2671/steps/test/logs/stdio
The pass_fds parameter of Popen constructor was introduced in #6559.
msg137416 - (view) Author: Ross Lagerwall (rosslagerwall) (Python committer) Date: 2011年06月01日 05:13
Could this be related to http://bugs.python.org/issue6559#msg123958?
Or Issue10826?
msg137422 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011年06月01日 07:19
I ran the test more than 1000 times on Linux (using -m test -F test_io, and manually patched test_io to only run this test, see also #12231 !!!) without being able to reproduce the failure. So it may be specific to Mac OS X Tiger.
msg137423 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011年06月01日 07:27
> Could this be related to http://bugs.python.org/issue6559#msg123958?
> Or Issue10826?
These failures were specific to Solaris/OpenIndiana: they were "door files". Extract of fd_status.py:
 1.34 + # Ignore Solaris door files
 1.35 + if st.st_mode & 0xF000 != 0xd000:
 1.36 + fds.append(fd)
msg137425 - (view) Author: Ross Lagerwall (rosslagerwall) (Python committer) Date: 2011年06月01日 08:06
> These failures were specific to Solaris/OpenIndiana: they were "door files"
Yeah, I saw that but thought maybe the reason was similar, some library function in the child process was opening a file and not closing it properly.
> using -m test -F test_io, and manually patched test_io
Isn't this test_subprocess?
msg137427 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011年06月01日 09:23
The leaking file descriptor is a the read end of a pipe created in the test (the test creates 5 pipes, 10 file descriptors). On creation (in the parent process), this file descriptor has the mode : st_mode=4528. In the child process, the file descriptor has the mode : st_mode=420, which is an invalid mode. The child cannot read or write into this file: write raises an OSError(9, 'Bad file descriptor') and read raises an OSError(45, 'Operation not supported'). It looks like a kernel (Darwin) bug, fixed in Mac OS X > 10.4.
msg137430 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011年06月01日 11:19
New changeset 22457ac2c2df by Victor Stinner in branch '3.2':
Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
http://hg.python.org/cpython/rev/22457ac2c2df
New changeset 566c42b0e750 by Victor Stinner in branch 'default':
(Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,
http://hg.python.org/cpython/rev/566c42b0e750 
History
Date User Action Args
2022年04月11日 14:57:18adminsetgithub: 56439
2011年06月01日 11:19:48python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg137430

resolution: fixed
stage: resolved
2011年06月01日 09:23:07vstinnersetmessages: + msg137427
2011年06月01日 08:06:04rosslagerwallsetmessages: + msg137425
2011年06月01日 07:27:06vstinnersetmessages: + msg137423
2011年06月01日 07:19:40vstinnersetmessages: + msg137422
2011年06月01日 05:13:14rosslagerwallsetnosy: + rosslagerwall
messages: + msg137416
2011年05月31日 22:48:45vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /