[Zope] Python 2.1.2 and Zope 2.4.x?

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Tue, 22 Jan 2002 08:24:43 +1100


>>> Marc St-Jean wrote
> On January 4th, the Zope news mentioned a Python 2.1.2 would be released 
> fixing potential crashing problems with Zope 2.4.x.
> 
> Late last week I installed the release version of this new Python and now 
> some of my scripts are causing the following error:
> Python/ceval.c:687: failed assertion `STACK_LEVEL() <= f->f_stacksize'
> 
> I thought this ceval problem was what it was supposed to fix, not 
> exacerbate! I've tried rebuilding both Zope 2.4.1 and 2.4.3 with Python 2.
> 1.2 and it hasn't helped. In case it matters this is under Solaris 8 Intel.
> 
> The news letter didn't say that a new version of Zope would be needed for 
> the new Python, is that the case?

The python release fixed the ceval patch. It also fixed the Compiler 
stacksize bug, however Zope includes it's own copy of the Compiler code, 
and as of the current stable release (2.4.3) this bug is still present. 

The reason you get the above error now is that the python code now detects 
when the stacksize is horked, and fails at the time, rather than silently
corrupting memory (which later may, or may not, cause a crash). It's
easily argued that this is a better thing to do than silently corrupting
memory and continuing onwards - I wasted _hours_ trying to find this bug,
unsuccessfully.

Anthony
-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.