Description
may be related to #13831
Description
importing mxnet causes OSErrors in subprocess
Environment info (Required)
Scientific Linux 7.5
Python 3.6.3
MXnet 1.5.0 (from packages)
(tried on multiple computers running different cuda builds)
Error Message:
(Paste the complete error message, including stack trace.)
Minimum reproducible example
Using the following script (or just using the appropriate commands)
import mxnet
import subprocess
n = 0
while True:
if not n%1000: print ("RUN", n)
ret = subprocess.call(['ls', '/tmp'], stdout=subprocess.PIPE)
n += 1
will eventually give this error message:
Traceback (most recent call last):
File "subcrash.py", line 13, in
ret = subprocess.call(['ls', '/'], stdout=subprocess.PIPE)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/subprocess.py",
line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/subprocess.py",
line 709, in init
restore_signals, start_new_session)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/subprocess.py",
line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 14] Bad address: 'ls'
Doesn't seem to matter which executable.
What have you tried to solve it?
Don't even know where to start.
If you try putting in a stack tract or pdb it won't break.