[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

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

2018-11-23 Thread Henrik Bengtsson
New submission from Henrik Bengtsson : (originally posted to https://mail.python.org/pipermail/python-list/2018-November/738209.html) I ran into an interesting problem where calling 'subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE)' hangs and never returns. $ python Python 2.7.9