Issue 1413379: Popened file object close hangs in latest Cygwin update (original) (raw)

Issue1413379

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:15 admin set github: 42831
2009-03-23 17:22:17 sferic set status: open -> closedmessages: + versions: + Python 2.5, - Python 2.6
2009-03-21 00:25:55 ajaksu2 set versions: + Python 2.6, - Python 2.4nosy: + ajaksu2messages: + type: behaviorstage: test needed
2006-01-24 02:05:51 sferic create