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.

classification
Title: Popened file object close hangs in latest Cygwin update
Type: behavior Stage: test needed
Components: Tkinter Versions: Python 2.5
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: loewis Nosy List: ajaksu2, loewis, sferic
Priority: normal Keywords:

Created on 2006-01-24 02:05 by sferic, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cygcheck.out sferic, 2006-01-24 02:05 Output from cygcheck
Messages (3)
msg27348 - (view) Author: Eric McRae (sferic) Date: 2006-01-24 02:05
Today's update of my Cygwin installation caused a long
running Python/Tkinter application to fail to start. 
Further investigation shows it hanging on a closed of a
popened file object.  The problem seems associated with
importing Tkinter:

===========FILE START=====
#! /usr/bin/python

from Tkinter import *
from os import popen

print "Here"
#grab a calander in case we need it
calpipe = popen("/usr/bin/cal -3")
caltext = calpipe.read(1000)
print "Middle"
calpipe.close()
print "There"

print caltext
==========FILE END=====

prints "Here" and "Middle" and then hangs.  Windows
task manager shows sh.exe and a copy of Python2.4.exe
sharing most of the CPU time.  If I kill those two
processes, the program finishes its output normally.

If I comment out the from Tkinter line, everthing works
fine.

Cygcheck info attached
msg83899 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-21 00:25
Needs confirmation for recent versions.
msg84021 - (view) Author: Eric McRae (sferic) Date: 2009-03-23 17:22
Had forgotten about this.  Just re-ran my test and it works fine now.

My current versions are Python 2.5.1 and Tk 8.4

So long and thanks for all the fish...
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42831
2009-03-23 17:22:17sfericsetstatus: open -> closed

messages: + msg84021
versions: + Python 2.5, - Python 2.6
2009-03-21 00:25:55ajaksu2setversions: + Python 2.6, - Python 2.4
nosy: + ajaksu2

messages: + msg83899

type: behavior
stage: test needed
2006-01-24 02:05:51sfericcreate