Re: [Zope-dev] Zope process killed
>>> =?ISO-8859-1?Q?Roch=E9?= 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. You should be running 2.4.4 or 2.5.1. This is a known bug in 2.4.3. (It only shows up under python 2.1.3 or later - earlier versions of python silently corrupt memory). Anthony -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope process killed
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_': , > '_getitem_': , '_write_': > , '_print_': RestrictedPython.PrintCollector.PrintCollector at 0x81d0994>, > '__builtins__': {'cmp': , 'round': function round>, 'AttributeError': 0x80ce214>, 'random': '/usr/lib/python2.1/random.pyc'>, 'str': , > 'range': , 'ArithmeticError': exceptions.ArithmeticError at 0x80cf10c>, 'whrandom': from '/usr/lib/python2.1/whrandom.pyc'>, 'unichr': unichr>, 'list': , 'FloatingPointError': exceptions.FloatingPointError at 0x80c8c9c>, 'getattr': guarded_getattr at 0x8372b0c>, 'hasattr': 0x837414c>, 'setattr': , > 'IndexError': , 'TypeError': > , 'delattr': guarded_delattr at 0x81d6b1c>, 'AssertionError': exceptions.AssertionError at 0x80ce9cc>, 'divmod': divmod>, 'ord': , 'ZeroDivisionError': exceptions.ZeroDivisionError at 0x80cf42c>, '__import__': guarded_import at 0x8372cd4>, 'callable': , > 'len': , 'repr': , 'max': > , 'tuple': , > 'StandardError': , > 'string': , > 'hash': , 'isinstance': isinstance>, 'Exception': , > 'map': , 'math': '/usr/lib/python2.1/lib-dynload/math.so'>, 'oct': oct>, 'OverflowError': , > 'IOError': , 'test': test at 0x834e384>, 'filter': , > 'abs': , 'chr': , > 'NameError': , 'long': > , 'hex': , 'complex': > , 'EOFError': 0x80cdab4>, 'min': , 'reorder': at 0x83170b4>, 'OSError': , > 'same_type': , 'RuntimeError': exceptions.RuntimeError at 0x80cdc1c>, 'LookupError': exceptions.LookupError at 0x80ceb44>, 'apply': apply>, 'EnvironmentError': 0x80cd50c>, 'unicode': , 'ValueError': exceptions.ValueError at 0x80c8e24>, 'issubclass': issubclass>, 'ImportError': , > 'None': None, 'KeyError': , > 'float': , 'SyntaxError': exceptions.SyntaxError at 0x80ce37c>, 'pow': , > 'int': , 'sequence': 'DocumentTemplate.sequence' from > '/home/roche/Zope/lib/python/DocumentTemplate/sequence/__init__.pyc'>, > 'DateTime': }, > '__debug__': 1}, 'l': {}, 'code': at 0x8a465c0, > file "Script (Python)", line 1>, 'self': 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 > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope process killed
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_': , '_getitem_': , '_write_': , '_print_': , '__builtins__': {'cmp': , 'round': , 'AttributeError': , 'random': , 'str': , 'range': , 'ArithmeticError': , 'whrandom': , 'unichr': , 'list': , 'FloatingPointError': , 'getattr': , 'hasattr': , 'setattr': , 'IndexError': , 'TypeError': , 'delattr': , 'AssertionError': , 'divmod': , 'ord': , 'ZeroDivisionError': , '__import__': , 'callable': , 'len': , 'repr': , 'max': , 'tuple': , 'StandardError': , 'string': , 'hash': , 'isinstance': , 'Exception': , 'map': , 'math': , 'oct': , 'OverflowError': , 'IOError': , 'test': , 'filter': , 'abs': , 'chr': , 'NameError': , 'long': , 'hex': , 'complex': , 'EOFError': , 'min': , 'reorder': , 'OSError': , 'same_type': , 'RuntimeError': , 'LookupError': , 'apply': , 'EnvironmentError': , 'unicode': , 'ValueError': , 'issubclass': , 'ImportError': , 'None': None, 'KeyError': , 'float': , 'SyntaxError': , 'pow': , 'int': , 'sequence': , 'DateTime': }, '__debug__': 1}, 'l': {}, 'code': at 0x8a465c0, file "Script (Python)", line 1>, 'self': } (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 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope/Python crashing
From: "Ahsan Imam" <[EMAIL PROTECTED]> > I just downloaded python 2.1.3. Do I still have to edit the object.h > file before I compile it. > no, 2.1.3 includes bugfixes that specifically address those issues. /dario ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope/Python crashing
Ahsan Imam wrote: >Hello, > >I was going through the zope archive mail and saw message posted by >Matthew T. Kromer regarding crashing problems with Python 2.1.2. It >instructed to increase the >#define PyTrash_UNWIND_LEVEL from 50 500. > >I just downloaded python 2.1.3. Do I still have to edit the object.h >file before I compile it. > >Thanks > > No, Python 2.1.3 doesn't need to be patched like that -- that was just a temporary suggestion while we isolated where the problem was. -- Matt Kromer Zope Corporation http://www.zope.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope/Python crashing
Hello, I was going through the zope archive mail and saw message posted by Matthew T. Kromer regarding crashing problems with Python 2.1.2. It instructed to increase the #define PyTrash_UNWIND_LEVEL from 50 500. I just downloaded python 2.1.3. Do I still have to edit the object.h file before I compile it. Thanks ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )