Message8982

Author acharis
Recipients acharis
Date 2014-09-09.18:51:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410288707.53.0.660987198823.issue2205@psf.upfronthosting.co.za>
In-reply-to
Content
THREADS=8 jython start_threads

With various values for this environment variable you will see various behaviours.
With low enough values, this results in no error. (The script has no output upon successful completion.)

Sometimes:

[acharis@workstation ~]% THREADS=8 /tmp/jython2.7b3/jython start_threads
Exception in thread Thread-5:Traceback (most recent call last):
  File "/tmp/jython2.7b3/Lib/threading.py", line 207, in _Thread__bootstrap
    self.run()
  File "start_threads", line 11, in run
    os.system("cat /etc/hostname > /dev/null")
  File "/tmp/jython2.7b3/Lib/subprocess.py", line 500, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/tmp/jython2.7b3/Lib/subprocess.py", line 830, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/tmp/jython2.7b3/Lib/subprocess.py", line 1315, in _execute_child
    args = _shell_command + args
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

Other times:

AttributeError: 'module' object has no attribute 'call'

Other times: 

NameError: global name 'Popen' is not defined
History
Date User Action Args
2014-09-09 18:51:47acharissetrecipients: + acharis
2014-09-09 18:51:47acharissetmessageid: <1410288707.53.0.660987198823.issue2205@psf.upfronthosting.co.za>
2014-09-09 18:51:47acharislinkissue2205 messages
2014-09-09 18:51:46achariscreate