[Patches] [Patch #101346] fetch/restore exceptions around GC collections

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 Aug 2000 13:34:01 -0700


Patch #101346 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: fetch/restore exceptions around GC collections

Follow-Ups:

Date: 2000-Aug-29 12:29
By: jhylton

Comment:
This appears to fix #110915 on Linux.  It's not entirely clear that I've but the fetch/restore in the right place, but I think that all collections begin with collect_generations.

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

Date: 2000-Aug-29 13:34
By: jhylton

Comment:
Get rid of the PyErr_Clear that was causing problems and make sure we always restore the exception state before leaving collect_generations.

Further, copy code from __del__ to print a message on stderr if the garbage collector did raise an exception.  It seems dangerous to ignore one completely, but it's not clear how to recover.

If the latter change makes any sense, we'll need to extract the two copies of the code (from classobject.c and gcmodule.c) and put a helper function in errors.c

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

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101346&group_id=5470