[Python-bugs-list] [ python-Bugs-717614 ] Uthread problem - Pipe left open
SourceForge.net
noreply@sourceforge.net
Sat, 24 May 2003 04:41:54 -0700
Bugs item #717614, was opened at 2003-04-08 18:50
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=717614&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Jim Ramsay (lack)
Assigned to: Nobody/Anonymous (nobody)
Summary: Uthread problem - Pipe left open
Initial Comment:
For some reason on my FreeBSD system whenever I run
python I am unable to access file descriptor 3 or 4.
According to my system's fstat, there is a pipe there:
lack python 36683 3* pipe cd5b2cc0 <->
cd99f9e0 0 rw
lack python 36683 4* pipe cd99f9e0 <->
cd5b2cc0 0 rw
But I did not open this pipe, nor can I figure out
where it came from.
I also cannot close this file descriptor or use it in
any way - I recieve the error:
>>> os.close(3)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OSError: [Errno 9] Bad file descriptor
>>>
There is some strange behaviour if I close one of the
standard descriptors first:
>>> os.close(2)
>>> os.close(3)
>>> os.close(4)
>>>
But despite the lack of error messages, the pipe from 3
to 4 is still open.
I do not know why this happens. and am at a loss at how
to access FD#3.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-05-24 13:41
Message:
Logged In: YES
user_id=21627
Closing because of lack of response.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-05-04 14:50
Message:
Logged In: YES
user_id=21627
Neither uthread_init.c nor uthread_execve.c are part of the
Python distribution. Why do you think you have found a bug
in Python? It sounds more like a bug in FreeBSD to me.
----------------------------------------------------------------------
Comment By: Jim Ramsay (lack)
Date: 2003-04-08 19:30
Message:
Logged In: YES
user_id=185022
Update:
This seems to be linked to "uthread" support. This pipe is
opened in uthread_init.c around line 167, and should be
closed by uthread_execve.c around line 59.
For some reason the pipe is not being closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=717614&group_id=5470