When I try to view or delete a particular folder the Zope process (on Zope 2.4.3) suddenly gets killed with this message in the log: python2.1: Python/ceval.c:695: eval_code2: Assertion `(stack_pointer - f->f_valuestack) <= f->f_stacksize' failed. I climbed into the python debugger and found the place where this happens. The culprit is a particular python script inside this folder and as soon as the the setstate method is called on this script this happens. The exact place is in the "_newfun" function in PythonScripts.py on line 315: exec code in g, l. here is the ouput of locals() if this might help: {'g': {'_getattr_': <function guarded_getattr at 0x8372b0c>, '_getitem_': <function guarded_getitem at 0x83720ec>, '_write_': <function guard at 0x81d68d4>, '_print_': <class RestrictedPython.PrintCollector.PrintCollector at 0x81d0994>, '__builtins__': {'cmp': <built-in function cmp>, 'round': <built-in function round>, 'AttributeError': <class exceptions.AttributeError at 0x80ce214>, 'random': <module 'random' from '/usr/lib/python2.1/random.pyc'>, 'str': <built-in function str>, 'range': <built-in function range>, 'ArithmeticError': <class exceptions.ArithmeticError at 0x80cf10c>, 'whrandom': <module 'whrandom' from '/usr/lib/python2.1/whrandom.pyc'>, 'unichr': <built-in function unichr>, 'list': <built-in function list>, 'FloatingPointError': <class exceptions.FloatingPointError at 0x80c8c9c>, 'getattr': <function guarded_getattr at 0x8372b0c>, 'hasattr': <function guarded_hasattr at 0x837414c>, 'setattr': <function guarded_setattr at 0x81d6ae4>, 'IndexError': <class exceptions.IndexError at 0x80cd9f4>, 'TypeError': <class exceptions.TypeError at 0x80cce24>, 'delattr': <function guarded_delattr at 0x81d6b1c>, 'AssertionError': <class exceptions.AssertionError at 0x80ce9cc>, 'divmod': <built-in function divmod>, 'ord': <built-in function ord>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at 0x80cf42c>, '__import__': <function guarded_import at 0x8372cd4>, 'callable': <built-in function callable>, 'len': <built-in function len>, 'repr': <built-in function repr>, 'max': <built-in function max>, 'tuple': <built-in function tuple>, 'StandardError': <class exceptions.StandardError at 0x80cccc4>, 'string': <module 'string' from '/usr/lib/python2.1/string.pyc'>, 'hash': <built-in function hash>, 'isinstance': <built-in function isinstance>, 'Exception': <class exceptions.Exception at 0x80cc914>, 'map': <function guarded_map at 0x8373314>, 'math': <module 'math' from '/usr/lib/python2.1/lib-dynload/math.so'>, 'oct': <built-in function oct>, 'OverflowError': <class exceptions.OverflowError at 0x80cf28c>, 'IOError': <class exceptions.IOError at 0x80cd724>, 'test': <function test at 0x834e384>, 'filter': <function guarded_filter at 0x8372294>, 'abs': <built-in function abs>, 'chr': <built-in function chr>, 'NameError': <class exceptions.NameError at 0x80cdf1c>, 'long': <built-in function long>, 'hex': <built-in function hex>, 'complex': <built-in function complex>, 'EOFError': <class exceptions.EOFError at 0x80cdab4>, 'min': <built-in function min>, 'reorder': <function reorder at 0x83170b4>, 'OSError': <class exceptions.OSError at 0x80cd88c>, 'same_type': <function same_type at 0x834e5fc>, 'RuntimeError': <class exceptions.RuntimeError at 0x80cdc1c>, 'LookupError': <class exceptions.LookupError at 0x80ceb44>, 'apply': <built-in function apply>, 'EnvironmentError': <class exceptions.EnvironmentError at 0x80cd50c>, 'unicode': <built-in function unicode>, 'ValueError': <class exceptions.ValueError at 0x80c8e24>, 'issubclass': <built-in function issubclass>, 'ImportError': <class exceptions.ImportError at 0x80cd394>, 'None': None, 'KeyError': <class exceptions.KeyError at 0x80cef94>, 'float': <built-in function float>, 'SyntaxError': <class exceptions.SyntaxError at 0x80ce37c>, 'pow': <built-in function pow>, 'int': <built-in function int>, 'sequence': <module 'DocumentTemplate.sequence' from '/home/roche/Zope/lib/python/DocumentTemplate/sequence/__init__.pyc'>, 'DateTime': <class DateTime.DateTime.DateTime at 0x832e104>}, '__debug__': 1}, 'l': {}, 'code': <code object <module> at 0x8a465c0, file "Script (Python)", line 1>, 'self': <PythonScript instance at 89beb20>} (Pdb) c python2.1: Python/ceval.c:695: eval_code2: Assertion `(stack_pointer - f->f_valuestack) <= f->f_stacksize' failed. Any help will be much appreciated. -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za
i'm not sure anyone can help much unless you give more information about exact python version and OS used... jens On Friday, May 17, 2002, at 04:56 , Roché Compaan wrote:
When I try to view or delete a particular folder the Zope process (on Zope 2.4.3) suddenly gets killed with this message in the log:
python2.1: Python/ceval.c:695: eval_code2: Assertion `(stack_pointer - f->f_valuestack) <= f->f_stacksize' failed.
I climbed into the python debugger and found the place where this happens. The culprit is a particular python script inside this folder and as soon as the the setstate method is called on this script this happens. The exact place is in the "_newfun" function in PythonScripts.py on line 315: exec code in g, l.
here is the ouput of locals() if this might help: {'g': {'_getattr_': <function guarded_getattr at 0x8372b0c>, '_getitem_': <function guarded_getitem at 0x83720ec>, '_write_': <function guard at 0x81d68d4>, '_print_': <class RestrictedPython.PrintCollector.PrintCollector at 0x81d0994>, '__builtins__': {'cmp': <built-in function cmp>, 'round': <built-in function round>, 'AttributeError': <class exceptions.AttributeError at 0x80ce214>, 'random': <module 'random' from '/usr/lib/python2.1/random.pyc'>, 'str': <built-in function str>, 'range': <built-in function range>, 'ArithmeticError': <class exceptions.ArithmeticError at 0x80cf10c>, 'whrandom': <module 'whrandom' from '/usr/lib/python2.1/whrandom.pyc'>, 'unichr': <built-in function unichr>, 'list': <built-in function list>, 'FloatingPointError': <class exceptions.FloatingPointError at 0x80c8c9c>, 'getattr': <function guarded_getattr at 0x8372b0c>, 'hasattr': <function guarded_hasattr at 0x837414c>, 'setattr': <function guarded_setattr at 0x81d6ae4>, 'IndexError': <class exceptions.IndexError at 0x80cd9f4>, 'TypeError': <class exceptions.TypeError at 0x80cce24>, 'delattr': <function guarded_delattr at 0x81d6b1c>, 'AssertionError': <class exceptions.AssertionError at 0x80ce9cc>, 'divmod': <built-in function divmod>, 'ord': <built-in function ord>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at 0x80cf42c>, '__import__': <function guarded_import at 0x8372cd4>, 'callable': <built-in function callable>, 'len': <built-in function len>, 'repr': <built-in function repr>, 'max': <built-in function max>, 'tuple': <built-in function tuple>, 'StandardError': <class exceptions.StandardError at 0x80cccc4>, 'string': <module 'string' from '/usr/lib/python2.1/string.pyc'>, 'hash': <built-in function hash>, 'isinstance': <built-in function isinstance>, 'Exception': <class exceptions.Exception at 0x80cc914>, 'map': <function guarded_map at 0x8373314>, 'math': <module 'math' from '/usr/lib/python2.1/lib-dynload/math.so'>, 'oct': <built-in function oct>, 'OverflowError': <class exceptions.OverflowError at 0x80cf28c>, 'IOError': <class exceptions.IOError at 0x80cd724>, 'test': <function test at 0x834e384>, 'filter': <function guarded_filter at 0x8372294>, 'abs': <built-in function abs>, 'chr': <built-in function chr>, 'NameError': <class exceptions.NameError at 0x80cdf1c>, 'long': <built-in function long>, 'hex': <built-in function hex>, 'complex': <built-in function complex>, 'EOFError': <class exceptions.EOFError at 0x80cdab4>, 'min': <built-in function min>, 'reorder': <function reorder at 0x83170b4>, 'OSError': <class exceptions.OSError at 0x80cd88c>, 'same_type': <function same_type at 0x834e5fc>, 'RuntimeError': <class exceptions.RuntimeError at 0x80cdc1c>, 'LookupError': <class exceptions.LookupError at 0x80ceb44>, 'apply': <built-in function apply>, 'EnvironmentError': <class exceptions.EnvironmentError at 0x80cd50c>, 'unicode': <built-in function unicode>, 'ValueError': <class exceptions.ValueError at 0x80c8e24>, 'issubclass': <built-in function issubclass>, 'ImportError': <class exceptions.ImportError at 0x80cd394>, 'None': None, 'KeyError': <class exceptions.KeyError at 0x80cef94>, 'float': <built-in function float>, 'SyntaxError': <class exceptions.SyntaxError at 0x80ce37c>, 'pow': <built-in function pow>, 'int': <built-in function int>, 'sequence': <module 'DocumentTemplate.sequence' from '/home/roche/Zope/lib/python/DocumentTemplate/sequence/__init__.pyc'>, 'DateTime': <class DateTime.DateTime.DateTime at 0x832e104>}, '__debug__': 1}, 'l': {}, 'code': <code object <module> at 0x8a465c0, file "Script (Python)", line 1>, 'self': <PythonScript instance at 89beb20>} (Pdb) c python2.1: Python/ceval.c:695: eval_code2: Assertion `(stack_pointer - f->f_valuestack) <= f->f_stacksize' failed.
Any help will be much appreciated.
-- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za
You really need to upgrade to Zope 2.4.4 and Python 2.1.3 to solve this issue properly... cheers, Chris
participants (3)
-
Chris Withers -
Jens Vagelpohl -
Roché Compaan