You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is however possible to open the pipe descriptor via /dev/fd and the following change fixes the issue:
--- ./cpython-main/Lib/test/test_pdb.py+++ ./cpython-main/Lib/test/test_pdb.py@@ -3564,8 +3564,9 @@
def _fd_dir_for_pipe_targets(self):
"""Return a directory exposing live file descriptors, if any."""
proc_fd = "/proc/self/fd"
- if os.path.isdir(proc_fd) and os.path.exists(os.path.join(proc_fd, '0')):- return proc_fd+ if not sys.platform.startswith("sunos"):+ if os.path.isdir(proc_fd) and os.path.exists(os.path.join(proc_fd, '0')):+ return proc_fd
dev_fd = "/dev/fd"
if os.path.isdir(dev_fd) and os.path.exists(os.path.join(dev_fd, '0')):
@kulikjak reports seeing the following test failure on Solaris following #142371:
I am no expert here, but I tried looking into this and apparently opening anything other than regular file or directory from
/proc/_pid_/rootraisesEACCES:https://docs.oracle.com/cd/E88353_01/html/E37852/proc-5.html
It is however possible to open the pipe descriptor via
/dev/fdand the following change fixes the issue:Originally posted by @kulikjak in #142371 (comment)
Linked PRs