[Python-bugs-list] [ python-Bugs-488730 ] os.popen() seg faults on FreeBSD 5
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 11 Dec 2001 12:58:15 -0800
Bugs item #488730, was opened at 2001-12-03 21:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488730&group_id=5470
Category: Extension Modules
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Marc Culler (marcculler)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.popen() seg faults on FreeBSD 5
Initial Comment:
Here is the crash with Python 2.1.1 on my FreeBSD
5.0-current system:
[ace:culler]$ python
Python 2.1.1 (#5, Aug 18 2001, 17:41:43)
[GCC 2.95.3 20010315 (release)] on freebsd5
Type "copyright", "credits" or "license" for more
information.
>>> import os
>>> mypipe = os.popen('ls /')
Segmentation fault (core dumped)
No problem occurs when I do the same thing in
Python 2.0, which was compiled under FreeBSD 4,
but is running here under FreeBSD 5:
[ace:culler]$ python2.0
Python 2.0 (#2, Nov 16 2000, 22:22:48)
[GCC 2.95.2 19991024 (release)] on freebsd4
Type "copyright", "credits" or "license" for more
information.
>>> import os
>>> mypipe = os.popen('ls /')
>>> mypipe.readlines()
['COPYRIGHT\012', 'bin\012', 'boot\012', 'cdrom\012',
'compat\012', 'dev\012', 'dist\012', 'entropy\012',
'etc\012', 'home\012', 'kernel\012',
'kernel.GENERIC\012', 'kernel.old\012',
'kernel.prev\012', 'mnt\012', 'modules\012',
'modules.old\012', 'proc\012', 'root\012', 'sbin\012',
'shared\012', 'stand\012', 'sys\012', 'tmp\012',
'usr\012', 'var\012']
>>>
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-12-11 12:58
Message:
Logged In: YES
user_id=21627
Can't reproduce this on FreeBSD 4.4, either, using the
current CVS.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-08 09:18
Message:
Logged In: YES
user_id=6380
I can't reproduce this, and I don't have access to a FreeBSD
5 machine. Can you debug this yourself? We'd welcome a
patch.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=488730&group_id=5470