Python Segfault on os.exec
Bug #418848 reported by
Pehr Söderman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Invalid
|
Undecided
|
Unassigned | ||
python2.6 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: python
Ubuntu Karmic, latest python from aptitude (2.6.2-0ubuntu1).
Using the exec command causes segfaults in python. For example:
Python 2.6.2+ (release26-maint, Jul 24 2009, 16:16:12)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.execlp('true')
Segmentation fault
~>
Expected behavior (from another Linux system):
Python 2.6 (r26:66714, Feb 3 2009, 20:49:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.execlp('true')
~>
This has been confirmed on 3 different computers running karmic.
Related branches
Changed in python: | |
status: | Unknown → New |
affects: | python-defaults (Ubuntu) → python2.6 (Ubuntu) |
Changed in python2.6 (Ubuntu): | |
status: | Triaged → In Progress |
Changed in python: | |
status: | New → Fix Released |
Changed in python: | |
status: | Fix Released → New |
Changed in python: | |
status: | New → Fix Committed |
To post a comment you must log in.
I don't have a Karmic install handy to check the OP's reported behavior, but I can confirm that I *don't* get a segfault in Jaunty:
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.execlp('true')
$