[Python-Dev] RE: [Zope-Coders] core dump in Zope 2.7 test suite (original) (raw)

Jeremy Hylton jeremy at alum.mit.edu
Tue Sep 16 12:58:43 EDT 2003


On Tue, 2003-09-16 at 12:31, Jeremy Hylton wrote:

On Tue, 2003-09-16 at 12:12, Tim Peters wrote: > [Jeremy Hylton] > > I disabled the KEEPALIVESIZELIMIT, as you suggested, and that also > > fixed the problem. > > We don't know why, though, nor do we have a small test case, right?

Not a small test case, no, but I have boiled it down a bit. If you run the tests from a Zope checkout on the Zope-27-branch, you can provoke the crash with "test.py Template."

Okay. I have a smaller test case, though I don't know what I couldn't find it earlier. If you run "test.py DocumentTemplate UnicodeStr" by itself, you get the crash.

The DocumentTemplate implementation has C and Python implementations of some utilities. It uses the C by default and falls back to Python if the C extension can't be imported. If I change the code so that it always uses the Python implementation, the crash goes away.

Jeremy



More information about the Python-Dev mailing list