[Zope3-dev] Error in sys.excepthook

Tim Peters tim@zope.com
Wed Aug 6 21:34:56 EDT 2003


[Sushant Rath]
>     I checked out Zope3 freshly, when running the full Zope3 test
>     suite with Python 2.3 , I found the following Error repeated many
> times after reporting all tests OK:
>
> ======================================
> Ran 4996 tests in 623.882s
>
> OK
> Unhandled exception in thread started by
> Error in sys.excepthook:
>
> Original exception was:
> Unhandled exception in thread started by
> Error in sys.excepthook:
> ...
> ...
> ...
> Original exception was:
> Unhandled exception in thread started by
> Error in sys.excepthook:
>
> Original exception was:
> ======================================
>
> Can any one help me out.

Probably, but not immediately <wink>.  I've been seeing this for a long time
with Zope3-under-Python-2.3.  I'm as well qualified to figure out why as
anyone, and intend to, but since it doesn't stop the tests from running it's
at a low priority for me.  Best guess:  Python 2.3 does more-exhaustive
garbage collection at the end of a run that Python 2.2 did, and we're
cleaning up stale objects now that used to leak.  The msgs come out at the
right place to be produced by final Python cleanup, and that the msgs are
devoid of any information suggests that most of the interpreter has already
been torn down.  So all the signs point to a (surprising but harmless)
glitch when Python is shutting down.





More information about the Zope3-dev mailing list