[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-09-06 Thread Brian Curtin
Brian Curtin added the comment: Checked in the suggested fixes in r84556 (py3k), r84557 (release27-maint), and r84558 (release27-maint). -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tra

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-08-09 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch using Ronald's suggestion to rework this as a switch statement. Also included is a minor reworking that Paul noticed in Lib/test/test_signal.py. Added the people who responded to the python-dev checkin comments to the nosy list. Feel free t

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-08-06 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r83763 (py3k), r83764 (release31-maint), and r83765 (release27-maint). Thanks for reporting this. -- resolution: -> fixed stage: patch review -> committed/rejected versions: +Python 3.1 ___ Python tracker <

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Brian Curtin
Brian Curtin added the comment: Oops, note to myself that there's a long line in signalmodule.c. -- ___ Python tracker ___ ___ Python-

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Brian Curtin
Brian Curtin added the comment: issue9324.diff checks the signal value after argument parsing and before sending it onward towards the system call. It only lets you use the following signals, per http://msdn.microsoft.com/en-us/library/xdkz3x12.aspx SIGABRT SIGFPE SIGILL SIGINT SIGSEGV SIGTER

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: This appears to run afoul of Microsoft's "security-enhanced CRT", which aborts a program that calls certain API functions (including signal) with invalid parameters. PyOS_getsig() has conditionally-compiled code added to deal with this (and handle invalid sign

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Extension Modules, Windows nosy: +brian.curtin stage: -> unit test needed versions: +Python 3.2 ___ Python tracker ___ _

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Dave Fugate
New submission from Dave Fugate : Using Python 2.7 (r27:82525, Jul 4 2010, 09:01:59; 32-bit Intel) on 64-bit Windows Server 2008 R2, python.exe (interactive sessions and files) crashes when it encounters the following snippet: >>> import signal >>> signal.signal(7, lambda a, b: None) Note that