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.
Created on 2010年01月29日 14:02 by pitrou, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue7805_problem_outline.patch | skrah, 2010年02月20日 10:43 | Just to show where the problem is. | ||
| Messages (11) | |||
|---|---|---|---|
| msg98509 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年01月29日 14:02 | |
This is a fresh py3k checkout on a fresh Debian Lenny install: ====================================================================== ERROR: test_pool_worker_lifetime (test.test_multiprocessing.WithProcessesTestPoolWorkerLifetime) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/antoine/py3k/py3k/Lib/test/test_multiprocessing.py", line 1076, in test_pool_worker_lifetime self.assertNotEqual(sorted(origworkerpids), sorted(finalworkerpids)) TypeError: unorderable types: NoneType() < int() ---------------------------------------------------------------------- |
|||
| msg98510 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年01月29日 14:07 | |
Confirmed. I got a Py3k warning on 2.7 about "unorderable types". |
|||
| msg98667 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年02月01日 15:50 | |
Also witnessed on one of the buildbots: test test_multiprocessing failed -- Traceback (most recent call last): File "/home/pybot/buildarea/3.x.klose-debian-ia64/build/Lib/test/test_multiprocessing.py", line 1076, in test_pool_worker_lifetime self.assertNotEqual(sorted(origworkerpids), sorted(finalworkerpids)) TypeError: unorderable types: NoneType() < int() http://www.python.org/dev/buildbot/3.x.stable/builders/ia64%20Ubuntu%203.x/builds/434/steps/test/logs/stdio |
|||
| msg99270 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2010年02月12日 16:04 | |
I can reproduce it almost always under these conditions: System: Ubuntu Intrepid 64-bit, running on the actual hardware. CPU: Core 2 Duo. Load: At least one core maxed out by another process. On an empty machine I haven't reproduced it yet. |
|||
| msg99271 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年02月12日 16:08 | |
Indeed, I forgot to mention that the Debian Lenny install I reproduce the bug on is a single core (virtual) machine. |
|||
| msg99614 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2010年02月20日 10:43 | |
I found the problem. On a loaded machine, an attempt is made to get the pid of the worker before the process has properly started. There are several places where a sleep could be inserted. Perhaps Process.start() should wait until the child's pid is not None? |
|||
| msg100381 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月04日 08:48 | |
Thanks Stefan for the analysis. This patch should fix the issue, and make the buildbots happy. |
|||
| msg100395 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月04日 16:13 | |
Fixed with r78653 and r78654. |
|||
| msg100428 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月04日 22:42 | |
Sometimes it triggers a different issue, with patch applied (ia64 Ubuntu trunk): test_multiprocessing test test_multiprocessing failed -- Traceback (most recent call last): File "/home/pybot/buildarea/trunk.klose-debian-ia64/build/Lib/test/test_multiprocessing.py", line 1075, in test_pool_worker_lifetime while countdown and not all(w.is_alive() for w in p._pool): File "/home/pybot/buildarea/trunk.klose-debian-ia64/build/Lib/test/test_multiprocessing.py", line 1075, in <genexpr> while countdown and not all(w.is_alive() for w in p._pool): File "/home/pybot/buildarea/trunk.klose-debian-ia64/build/Lib/multiprocessing/process.py", line 132, in is_alive self._popen.poll() File "/home/pybot/buildarea/trunk.klose-debian-ia64/build/Lib/multiprocessing/forking.py", line 106, in poll pid, sts = os.waitpid(self.pid, flag) OSError: [Errno 10] No child processes |
|||
| msg100429 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月04日 22:53 | |
It looks like a new incarnation of long standing #1731717. |
|||
| msg100644 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月08日 14:20 | |
This last bug is fixed, too. http://bugs.python.org/issue1731717#msg100643 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:57 | admin | set | github: 52053 |
| 2011年04月05日 00:06:29 | vstinner | set | nosy:
+ vstinner |
| 2010年03月08日 14:20:55 | flox | set | status: pending -> closed messages: + msg100644 |
| 2010年03月05日 08:20:49 | flox | set | status: open -> pending |
| 2010年03月05日 08:20:41 | flox | set | files: - issue7805_process_is_alive_py3.diff |
| 2010年03月04日 22:53:30 | flox | set | messages: + msg100429 |
| 2010年03月04日 22:42:36 | flox | set | status: pending -> open messages: + msg100428 |
| 2010年03月04日 16:13:18 | flox | set | status: open -> pending resolution: accepted -> fixed messages: + msg100395 stage: patch review -> resolved |
| 2010年03月04日 08:54:14 | flox | set | assignee: jnoller -> flox resolution: accepted |
| 2010年03月04日 08:48:56 | flox | set | files:
+ issue7805_process_is_alive_py3.diff messages: + msg100381 stage: needs patch -> patch review |
| 2010年02月20日 10:43:27 | skrah | set | files:
+ issue7805_problem_outline.patch keywords: + patch messages: + msg99614 |
| 2010年02月15日 11:38:47 | flox | set | keywords: + buildbot |
| 2010年02月12日 16:08:39 | pitrou | set | messages: + msg99271 |
| 2010年02月12日 16:04:53 | skrah | set | nosy:
+ skrah messages: + msg99270 |
| 2010年02月01日 15:50:50 | pitrou | set | versions: + Python 2.6, Python 2.7 |
| 2010年02月01日 15:50:38 | pitrou | set | assignee: jnoller messages: + msg98667 components: + Tests versions: + Python 3.1, - Python 2.7 |
| 2010年01月29日 14:07:34 | flox | set | nosy:
+ flox messages: + msg98510 versions: + Python 2.7 |
| 2010年01月29日 14:02:37 | pitrou | create | |