Hi,
I've got strange issue. Its sometimes produced on PyPy + setuptools
while creating virtualenv environment. On CPython (on the same hosts)
its not occurs. All recent versions of PyPy (1.9,  2.0b{1,2}, 2.0.2) are
affected, but frequency is decreased with version grow (on 2.0.2 we got
it only several times when on 2.0b1 it was frequent).

Symptoms: On heavy loaded linux hosts (tests build machines with Debian
GNU/Linux 6.0 x86_64) sometimes os.listdir for PyPy base directory
(/usr/pypy-2.0/lib-python/2.7) produces OSError: [Errno 11] Resource
temporarily unavailable. It is strange because all system calls (which
os.listdir called) unable to emit (due to man pages) EAGAIN error. Host
filesystem is ext4 (not nfs).

How to reproduce: we have no idea how to reliably reproduce it, but it
sometimes occurs in heavy loaded environment and only with os.listdir
inside of setuptools.

-----------------------------------------------------------------------------------------------------------------
13:01:26,594 INFO  - Exception:
13:01:26,594 INFO  - Traceback (most recent call last):
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py",
line 139, in main
13:01:26,594 INFO  - status = self.run(options, args)
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py",
line 266, in run
13:01:26,594 INFO  - requirement_set.prepare_files(finder,
force_root_egg_info=self.bundle, bundle=self.bundle)
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",
line 954, in prepare_files
13:01:26,594 INFO  - req_to_install.check_if_exists()
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/pip-1.3.1-py2.7.egg/pip/req.py",
line 686, in check_if_exists
13:01:26,594 INFO  - self.satisfied_by =
pkg_resources.get_distribution(self.req)
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 311, in get_distribution
13:01:26,594 INFO  - if isinstance(dist,Requirement): dist =
get_provider(dist)
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 197, in get_provider
13:01:26,594 INFO  - return working_set.find(moduleOrReq) or
require(str(moduleOrReq))[0]
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 666, in require
13:01:26,594 INFO  - needed = self.resolve(parse_requirements(requirements))
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 562, in resolve
13:01:26,594 INFO  - env = Environment(self.entries)
13:01:26,594 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 722, in __init__
13:01:26,594 INFO  - self.scan(search_path)
13:01:26,595 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 751, in scan
13:01:26,595 INFO  - for dist in find_distributions(item):
13:01:26,595 INFO  - File
"/var/lib/buildagent/workspace/52609/env/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
line 1700, in find_on_path
13:01:26,595 INFO  - for entry in os.listdir(path_item):
13:01:26,595 INFO  - OSError: [Errno 11] Resource temporarily
unavailable: '/usr/pypy-2.0/lib-python/2.7'

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to