[Python-bugs-list] [ python-Bugs-762198 ] bug in signal.signal -- raises SystemError

SourceForge.net noreply@sourceforge.net
Thu, 03 Jul 2003 06:06:42 -0700


Bugs item #762198, was opened at 2003-06-27 20:04
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=762198&group_id=5470

Category: Python Library
Group: Python 2.2.3
Status: Closed
Resolution: None
Priority: 1
Submitted By: Jim McCoy (mccoy)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in signal.signal -- raises SystemError

Initial Comment:
Summary pretty much says it all.  Using Py2.2.3, win2k 
(sp4), and twisted 1.0.5 and the call that is triggering the 
error is as follows:

signal.signal(signal.SIGINT, self.sigInt)

returns "SystemError: error return without exception set"

The twisted gang has tracked it down to a C error of some 
sort here...


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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-07-03 09:06

Message:
Logged In: YES 
user_id=6380

> Generally you get the people that actually work on a package 
> to fix the package...

Right. And since they do it in their spare time, you don't
get to tell them what their priorities should be.

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

Comment By: Phillip Ryals (paryl)
Date: 2003-07-03 08:47

Message:
Logged In: YES 
user_id=813621

my, my.

I do contribute, in fact.  Unfortunately, not knowing the many 
facets of wxWindows is a small (read: large) problem.  
Generally you get the people that actually work on a package 
to fix the package...

I find it best to follow the 'non-nuked planet scenario' where 
getting something done doesn't mean learning it all from 
scratch because no one else exists with the knowledge.  Call 
me crazy... 

I mean no offense, of course.  ;)



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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-07-02 09:12

Message:
Logged In: YES 
user_id=6380

> I'm dying for a resolution on the matter

If you really want this resolved, you're going to have to
crawl into a debugger and work it yourself. Open Source
means you get to contribute, too. :-)

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

Comment By: Phillip Ryals (paryl)
Date: 2003-07-02 08:47

Message:
Logged In: YES 
user_id=813621

I already submitted a report on the wxWindows tracker... at 
the request of a couple of the Twisted guys, I replied to this 
thread too.

I'm dying for a resolution on the matter, so if there's 
anywhere else I can post this info, please let me know.



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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-07-01 13:25

Message:
Logged In: YES 
user_id=6380

OK, there's a clue.

Do you know how to report bugs in wxPython?

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

Comment By: Phillip Ryals (paryl)
Date: 2003-07-01 13:22

Message:
Logged In: YES 
user_id=813621

I can reproduce the problem without importing twisted...

Win2k/Python 2.2.2/wxPython 2.4.1.2

>> from signal import *
>> signal(SIGINT, lambda *a: None)

does not give the error.

>> from signal import *
>> from wxPython.wx import *
>> signal(SIGINT, lambda *a: None)

gives the error.



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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-06-30 12:06

Message:
Logged In: YES 
user_id=6380

I don't have Win2K, but on Win98 I can't reproduce it.

The bug report is pretty incomplete -- the call doesn't seem
to need Twisted, so what I tried was this:

>>> from signal import *
>>> signal(SIGINT, lambda *a: None)

This returns the previous handler as it should.

So please, send more precise data about the problem, or be
ignored.

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

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