Skip to content

fd.py default app broken for systems with large numbers of open fds (race condition?) #11

@fmoo

Description

@fmoo
[root@server ~]# ./fdinfo.par 16943 | wc -l
Traceback (most recent call last):
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "__main__.py", line 202, in <module>
  File "__main__.py", line 199, in __invoke_main
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "filedes/fd.py", line 280, in <module>
  File "filedes/fd.py", line 96, in __repr__
  File "filedes/fd.py", line 80, in typestr
  File "filedes/fd.py", line 75, in typecode
  File "filedes/fd.py", line 70, in mode
  File "filedes/fd.py", line 58, in stat
  File "filedes/fd.py", line 247, in _get_stat
  File "filedes/fd.py", line 17, in stat_pid_fd
OSError: [Errno 2] No such file or directory: '/proc/16943/fd/19440'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions