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.

Author isandler
Recipients bpb, isandler
Date 2011-11-27.03:10:57
SpamBayes Score 2.480638e-09
Marked as misclassified No
Message-id <1322363458.63.0.77529451573.issue13120@psf.upfronthosting.co.za>
In-reply-to
Content
I confirm the bug. But I don't think disabling Ctrl-C (SIGINT) handling by default is a good idea. Proper Ctrl-C support seems like a fundamental feature for a command line debugger. 

However, I think the bug is easily fixable w/o changing SIGINT handling. Basically, just put try/except around signal.signal, catch the ValueError and proceed. Would this approach solve your problem?

Patch attached.

PS. and here is a small program demonstrating the bug (just run it and execute "c" command at pdb prompt)

 import threading
 import pdb

 def start_pdb():
    pdb.Pdb().set_trace()
    x = 1
    y = 1

 t = threading.Thread( target=start_pdb)
 t.start()
History
Date User Action Args
2011-11-27 03:10:58isandlersetrecipients: + isandler, bpb
2011-11-27 03:10:58isandlersetmessageid: <1322363458.63.0.77529451573.issue13120@psf.upfronthosting.co.za>
2011-11-27 03:10:58isandlerlinkissue13120 messages
2011-11-27 03:10:57isandlercreate