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 gslavin
Recipients Andre Merzky, eryksun, gslavin
Date 2016-09-06.01:00:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473123604.25.0.743550851134.issue27889@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this issue with Python 2.7.12 and Python 3.5.2 on a Arch linux VM using the python script provided, but I think this is an error in the code. 

The repro is tied to the time.sleep call in the try block.  If I do time.sleep(1), I can reproduce the issue almost every time (with or without ctypes).  When the time.sleep() call is too short, you reach the finally block before the main thread receives the signal.  Because you're in the finally block, the exception isn't caught.
History
Date User Action Args
2016-09-06 01:00:04gslavinsetrecipients: + gslavin, eryksun, Andre Merzky
2016-09-06 01:00:04gslavinsetmessageid: <1473123604.25.0.743550851134.issue27889@psf.upfronthosting.co.za>
2016-09-06 01:00:04gslavinlinkissue27889 messages
2016-09-06 01:00:03gslavincreate