[Zope-dev] import of zexp containing Page Template objects causes sudden zope death

Tres Seaver tseaver at palladion.com
Fri Aug 27 12:51:37 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Tres Seaver wrote:
>> Binary search is your friend:
>>
>> - - Is it only one of the ZPTs which cause the crash?
> 
> Dunno this yet, will try and find out...
> 
>> - - Can you trim out parts of its content and make it not crash?
> 
> Yep, if I leave the ZPTs out, it's fine ;-)

I meant "part of the offending template".

>> Also, you might try exporting to XML and looking at the XML file for
>> oddities (mojibake, etc.)
> 
> mojibake?

Google is your friend.

>> You might try to open the imported folder under 'zopectl debug' and see
>> if you can examine the contents of the ZPTs. 
> 
> Yep, that worked.
> 
>> If that works, then the
>> issue must be in how 'manage_main' is trying to render the links /
>> titles of the templates.
> 
> I can render manage_main under zopectl debug with a Test.makerequest'd 
> app and a newSecurityManager(None,app.acl_users.getUserById('chris')) :-/
> 
> Again, "wtf?!"
> 
> It's the sudden death I have issue with, not a peep of logging anywhere...

Two options there:

- - Set a breakpoint inside 'manage_main' and step into it until the
  fault.  Figuring out how to do that for a DTMLFile instance is left as
  an exercise for the reader. :)

- - Run under gdb.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkx37RQACgkQ+gerLs4ltQ5h+ACfS2FJdVmuMqkRGzjjR2rwPaOG
j5gAoIUPYU5vIKAskMuQspAfit4npqXR
=XetT
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list