[Zope-Coders] Re: SEGFAULT using ComputedAttribute

Dorneles Treméa deo at plonesolutions.com
Tue Jan 18 22:51:33 EST 2005


Hi,

> [snipped problem explanation]
>
> The SEGFAULTs happens when accessing the parent instance, or when
> doing a copy/paste operation (reproducible at testCopy.py).

supposing that the traceback just before the SEGFAULT can help:

(Pdb) w
   /usr/local/zope/cvs/ExternalStorage/tests/tests/testCopy.py(72)?()
-> framework()
 
/usr/local/zope/Zope/lib/python/Testing/ZopeTestCase/ztc_common.py(31)framework()
-> result = TestRunner(stream, descriptions, verbosity).run(test_suite())
   /usr/lib/python2.3/unittest.py(658)run()
-> test(result)
   /usr/lib/python2.3/unittest.py(389)__call__()
-> test(result)
   /usr/lib/python2.3/unittest.py(389)__call__()
-> test(result)
 
/usr/local/zope/Zope/lib/python/Testing/ZopeTestCase/profiler.py(68)__call__()
-> self.setUp()
 
/usr/local/zope/Zope/lib/python/Testing/ZopeTestCase/PortalTestCase.py(52)setUp()
-> self.afterSetUp()
 
/usr/local/zope/cvs/ExternalStorage/tests/tests/testCopy.py(27)afterSetUp()
-> res = self.folder.manage_pasteObjects(cb)
 
/usr/local/zope/Zope/lib/python/OFS/CopySupport.py(173)manage_pasteObjects()
-> ob=ob._getCopy(self)
 
/usr/local/zope/Instance1/Products/Archetypes/Referenceable.py(322)_getCopy()
-> ob = CopySource._getCopy(self, container)
   /usr/local/zope/Zope/lib/python/OFS/CopySupport.py(455)_getCopy()
-> ob=container._p_jar.importFile(f)
 > /usr/local/zope/Zope/lib/python/ZODB/ExportImport.py(85)importFile()
-> t.commit(1)
(Pdb) n
SEGFAULT

Thanks in advance.

-- 
_____________________________________________________________________

        Dorneles Treméa · Developer · Plone Solutions · Brazil

  Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

   Plone Foundation · http://plone.org/foundation · Protecting Plone



More information about the Zope-Coders mailing list