[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-12-04 Thread HenrikB
HenrikB added the comment: Thanks for taking your time on this one. I'll report back if I find out more about this kernel-specific issue. Here're my replies to the outstanding questions/comments: >> where the *child* process (`self.pid == 0`) get stuck while calling >> _dup2(c2pwrite = 4,

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-12-04 Thread STINNER Victor
STINNER Victor added the comment: I tested: * Python 2.6.6 (installed from RHEL) on RHEL6 * Python 2.7.15 (compiled manually) on RHEL6 * Python 2.7.15 (installed from Fedora) on Fedora 29 Note: I tested RHEL 6.10 with kernel 2.6.32-754.el6.x86_64. The fact that Python 3 is also impacted

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-12-04 Thread INADA Naoki
INADA Naoki added the comment: > > where the *child* process (`self.pid == 0`) get stuck while calling > _dup2(c2pwrite = 4, 1) which in turn calls os.dup2(a = 4, b = 1). > Doesn't child process get stuck while writing stdout? > > It would also be interesting to understand exactly what

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-12-03 Thread HenrikB
HenrikB added the comment: Thank you both for the comments and suggests. Before I'm getting to the "interesting" part, first to the "easy" one: >> What is also useful to know, is that I'm observing this on a legacy RHEL 6 >> system *with a customized kernel* part of the Scyld ClusterWare

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread STINNER Victor
STINNER Victor added the comment: Are you able to reproduce the issue with Python 3? Can you please also try http://pypi.org/project/subprocess32/? -- ___ Python tracker ___

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-26 Thread INADA Naoki
INADA Naoki added the comment: > What is also useful to know, is that I'm observing this on a legacy RHEL 6 > system *with a customized kernel* part of the Scyld ClusterWare > (https://www.penguincomputing.com/products/software/scyld-clusterware/) that > *cannot* be updated: Do you mean

Re: subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread Henrik Bengtsson
Ok, thanks. I've just created https://bugs.python.org/issue35305. /Henrik On Fri, Nov 23, 2018 at 6:47 PM INADA Naoki wrote: > > Thank you for a very informative report. > > > PS. This is my first post to this list - please let me know if I > > should send to another forum instead. > > Would you

[issue35305] subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread Henrik Bengtsson
estions to further troubleshoot this and ideally resolve it. The reason for this being an important issue is that 'find_library()' of ctypes.util performs the above stalling 'Popen(['/sbin/ldconfig', '-p'])' call that was introduced in Python (>= 2.7.13). This happens for instance whenever

Re: subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread INADA Naoki
Thank you for a very informative report. > PS. This is my first post to this list - please let me know if I > should send to another forum instead. Would you send this report to the issue tracker? https://bugs.python.org/ -- INADA Naoki --

subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread Henrik Bengtsson
I ran into an interesting problem where calling `subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE)` hangs and never returns. $ python Python 2.7.9 (default, Apr 23 2015, 22:07:47) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2 Type "help", "copyright", "credits" or "license" for more