[Zope3-dev] expat failure in Zope3

Jeremy Hylton jeremy@alum.mit.edu
Mon, 7 Oct 2002 14:45:36 -0400


I just tried to run the Zope3 test suite.  I get a segfault in
testDirectives that appears to be related to expat.  I've using Python
2.2 CVS and expat 1.95.5.

The specific test is:
testAdapter (Zope.App.ComponentArchitecture.tests.testDirectives.Test)

The GDB stack trace up to the first call from Python to expat is:

#0  0x00000000 in ?? ()
#1  0x402cb902 in doContent (parser=0x84e32e0, startTagLevel=0,
    enc=0x402e3e80,
    s=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 times>,
 "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.tes
ts.TestCompon"..., end=0x84dcb4f "\b@", nextPtr=0x84e32f8)
    at lib/xmlparse.c:2027
#2  0x402cb09d in contentProcessor (parser=0x84e32e0,
    start=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\
n   xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 tim
es>, "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture
.tests.TestCompon"..., end=0x84dcb4f "\b@", endPtr=0x84e32f8)
    at lib/xmlparse.c:1691
#3  0x402cddc5 in doProlog (parser=0x84e32e0, enc=0x402e3e80,
    s=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 times>,
 "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.tes
ts.TestCompon"..., end=0x84dcb4f "\b@", tok=29,
    next=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
   xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 time
s>, "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.
tests.TestCompon"..., nextPtr=0x84e32f8) at lib/xmlparse.c:3331
#4  0x402cd74e in prologProcessor (parser=0x84e32e0,
    s=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 times>,
 "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.tes
ts.TestCompon"..., end=0x84dcb4f "\b@", nextPtr=0x84e32f8)
    at lib/xmlparse.c:3096
#5  0x402cd359 in prologInitProcessor (parser=0x84e32e0,
    s=0x84dc9b0 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 times>,
 "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.tes
ts.TestCompon"..., end=0x84dcb4f "\b@", nextPtr=0x84e32f8)
    at lib/xmlparse.c:2927
#6  0x402cab8a in XML_ParseBuffer (parser=0x84e32e0, len=415, isFinal=0)
    at lib/xmlparse.c:1394
#7  0x402cab2f in XML_Parse (parser=0x84e32e0,
    s=0x84e3134 "<zopeConfigure\n   xmlns='http://namespaces.zope.org/zope'\n
xmlns:test='http://www.zope.org/NS/Zope3/test'>\n   \n", ' ' <repeats 12 times>,
 "<adapter\n", ' ' <repeats 14 times>, "factory=\"Zope.ComponentArchitecture.tes
ts.TestCompon"..., len=415, isFinal=0) at lib/xmlparse.c:1382
#8  0x402b5932 in xmlparse_Parse (self=0x84de80c, args=0x84ddf2c)
    at /usr/home/jeremy/src/python/dist/src-release22-maint/Modules/pyexpat.c:81
9
#9  0x080cadfd in PyCFunction_Call (func=0x81d1558, arg=0x84ddf2c, kw=0x0)
    at ../Objects/methodobject.c:79

Jeremy