python TTW script kills zope
Hi! I noticed a strange behaviour in an old Zope 2.3.3 that's raised by this simple Python script (run by a Manager) aclu = container.acl_users allUsers = aclu.getUsers() print len(allUsers), "users" for someUser in allUsers: print 'an user' # this raises the error print "Terminé" return printed This kills Zope and the console shows this... assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c", line 695 ------ 2003-07-23T12:53:03 ERROR(200) zdaemon zdaemon: Wed Jul 23 14:53:03 2003: Aiieee! 83355 exited with error code: 6 When changing "print 'an use'" with "pass", this runs OK. Any idea ? Thanks in advance. --Gilles
Gilles Lenfant wrote:
I noticed a strange behaviour in an old Zope 2.3.3 that's raised by this simple Python script (run by a Manager)
Older versions of PythonScripts sometimes generated incorrect stack sizes for the compiled bytecode. With older versions of Python, this silently corrupted memory or caused segfaults. With newer versions of Python...
assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c",
...you get this. Cheers, Evan @ 4-am
Gilles Lenfant wrote at 2003-7-23 17:18 +0200:
I noticed a strange behaviour in an old Zope 2.3.3 that's raised by this simple Python script (run by a Manager)
aclu = container.acl_users allUsers = aclu.getUsers() print len(allUsers), "users" for someUser in allUsers: print 'an user' # this raises the error print "Terminé" return printed
This kills Zope and the console shows this...
assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c", line 695
Reminds me of using Zope 2.5.0 together with Python 2.1.3. The fix then has been to use Zope 2.5.1 or Zope 2.4.4. I fear, this indicates you need to upgrade your Zope. Dieter
participants (3)
-
Dieter Maurer -
Evan Simpson -
Gilles Lenfant