This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients Alexander.Belopolsky, benjamin.peterson, doko, theller
Date 2010-03-16.23:46:39
SpamBayes Score 2.389246e-06
Marked as misclassified No
Message-id <1268783202.06.0.353152883783.issue8154@psf.upfronthosting.co.za>
In-reply-to
Content
it does crash:

$ python
Python 2.6.5rc2 (r265rc2:78822, Mar 11 2010, 13:01:50) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.execlp('true')
Segmentation fault (core dumped)

arg[0] (the command name) must be part of the second parameter.


side notice: the execlpe looks inconsistent (both 2.x and 3.x).

>>> os.execlpe('true')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/os.py", line 335, in execlpe
    env = args[-1]
IndexError: tuple index out of range

shouldn't this be a ValueError as well?
History
Date User Action Args
2010-03-16 23:46:42dokosetrecipients: + doko, theller, benjamin.peterson, Alexander.Belopolsky
2010-03-16 23:46:42dokosetmessageid: <1268783202.06.0.353152883783.issue8154@psf.upfronthosting.co.za>
2010-03-16 23:46:40dokolinkissue8154 messages
2010-03-16 23:46:40dokocreate