[ python-Bugs-987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt

SourceForge.net noreply at sourceforge.net
Thu Jul 8 15:51:20 CEST 2004


Bugs item #987287, was opened at 2004-07-08 14:28
Message generated for change (Comment added) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=987287&group_id=5470

Category: Threads
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Percivall (percivall)
Assigned to: Michael Hudson (mwh)
Summary: Python 2.4a1, interpreter hanging on Keyboard Interrupt

Initial Comment:
This is how I hang the intepreter in 2.4a1:

python2.4
...
>>> import readline
>>> import rlcompleter
>>> import thread
>>> thread.start_new_thread((lambda: 1), ())
>>> ^C
(Python Interpreter hangs)

The ^C of course is the Keyboard interrupt. It doesn't
matter if I write something on the command line and
then press ^C, the interpreter still hangs.

This is new. The interpreter won't hang under Python
2.3.4; it won't hang under Python 2.4a0.

It specifically changed sometime thursday and friday
(Python 2.4a0 -> Python 2.4a1). This might indicate the
change logged as: "Non-main threads no longer have all
signals masked." or the change logged as: "A different
interface to readline is used." is to blame.

----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2004-07-08 14:51

Message:
Logged In: YES 
user_id=6656

Confirmed on linux/x86.

Hmm, I see the problem (my lack of understanding of the
Python thread API).  I have a fix (just running make test)
but I don't know what the score is wrt 2.4a1...

----------------------------------------------------------------------

Comment By: Simon Percivall (percivall)
Date: 2004-07-08 14:41

Message:
Logged In: YES 
user_id=329382

I forgot to say: I'm using Mac OS X 10.3, fink project readline.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=987287&group_id=5470


More information about the Python-bugs-list mailing list