SystemError in weakrefobject.c

Michael Hudson mwh at python.net
Tue Apr 8 16:20:23 CEST 2003


Etienne Labuschagne <elabuschagne at gmsonline.co.za> writes:

> Hi all,
> 
> I have a block of code within a try except that does message parsing
> work.  This block of code is never supposed to fail, it must log the
> error, reject the message which caused the parsing to fail and
> continue.  So, I catch all exceptions, log the error and continue
> normally with the rest of the messages.
> 
> I am however getting SystemErrors which seems to go past the except
> and then crashes the thread.  In fact, it not only crashes the thread,
> but the whole program.
> 
> Looking at the exception, it seems something more serious is happening
> and I can't figure out what is wrong.  Here are two of the exceptions
> which I have logged so far:
> 
> Traceback (most recent call last):
> File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 743, in decode
> '\n'.join(['%s = %s' %(k,dict[k]) for k in dict.keys()])))
> SystemError:
> D:\trentm\as\Apps\ActivePython-2_2\src\Core\Objects\weakrefobject.c:690:
> bad argument to internal function
> 
> and
> 
> Traceback (most recent call last):
> File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 80, in __call__
> return self.decode()
> File "C:\!Projects\Python\GlobalTrack\MessageDecoders.py", line 344, in decode
> cannedId = int(self._destinationAddress)
> SystemError:
> D:\trentm\as\Apps\ActivePython-2_2\src\Core\Objects\weakrefobject.c:690:
> bad argument to internal function
> 
> Any help would be greatly appreciated.

1) can you show the Python source that causes this?
2) what version of Python?  I'm guessing 2.2 -- can you try 2.2.2?
3) are you using any C extensions that might have bugs that could explain 
   this?

Otherwise I'll need to dust off that telepathy unit...

Cheers,
M.

-- 
  You owe The Oracle a TV with an 'intelligence' control - I've 
  tried 'brightness' but that didn't work.
                                      -- Internet Oracularity #1192-01




More information about the Python-list mailing list