Hi, I tried to move to Python 2.1.2 with an existing site and got a stack error under some circumstances. The site provides five different websites distinguished by Virtual Site Root. The error: python: Python/ceval.c:687: eval_code2: Assertion `(stack_pointer - f->f_valuestack) <= f->f_stacksize' failed. I found some places where this is mentioned, mostly explained with illegal bytecode. Because I removed all bytecode and shared libraries before recompiling Zope and the C extensions I dont't assume that this is the case. The interesting part is: the site which was defined first (using VSR) is accessible. Every other site fails. Also the navigation frame in the management interface fails while the content frame works without problems. The Python interpreter is the (first and) only one on the system so interferences with other Python installations are not possible. The configure line for Python: ./configure --prefix=/usr/local --with-crypt --without-pymalloc --with-threads Additionally I enabled SSL for the socket module. I hope someone can reproduce this. I am not able to do debugging for this myself. I will switch back to Python 2.1.1. Regards, Frank
Frank Tegtmeyer wrote:
Chris Withers <chrisw@nipltd.com> writes:
What version of Zoep are you running?
Oh, sorry - the most important information: Zope 2.4.3.
Eek! Bad! Very Bad! Go back to Python 2.1.1. You can't use Python 2.1.2 with Zope 2.4.3 You need to use Zope 2.5.0+ or Zope 2.4.4 if you want to do that... cheers, Chris Frank Tegtmeyer wrote:
Chris Withers <chrisw@nipltd.com> writes:
What version of Zoep are you running?
Oh, sorry - the most important information: Zope 2.4.3.
Regards, Frank
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Chris Withers <chrisw@nipltd.com> writes:
Go back to Python 2.1.1.
Yes, I did.
You can't use Python 2.1.2 with Zope 2.4.3
Why does an minor upgrade (called "bug fix" for Python 2.1.1) break an existing application? Smells like some _very_ ugly hacks in Zope or Python. Regards, Frank
Frank Tegtmeyer wrote:
Go back to Python 2.1.1.
Yes, I did.
:-)
You can't use Python 2.1.2 with Zope 2.4.3
Why does an minor upgrade (called "bug fix" for Python 2.1.1) break an existing application? Smells like some _very_ ugly hacks in Zope or Python.
Nah, just the restricted code in in Zope uses a different compiler than the one in Python leading to badness. The 2.4.4 and 2.5.0+ restricted python compiler is in synch with the compiler in 2.1.2, the one in Zope 2.4.3 is not. cheers, Chris
Chris Withers <chrisw@nipltd.com> writes:
Nah, just the restricted code in in Zope uses a different compiler than the one in Python leading to badness.
How does this lead to a corrupted stack then? Does the compiler for restricted code generate something that is then used by the Python interpreter? Are there no hooks in Python that allow eliminating an additional compiler in Zope? I'm interested to know more about the restricted code execution. Is there some material that someone without deep Python knowledge can understand? Regards, Frank
participants (2)
-
Chris Withers -
Frank Tegtmeyer