FYI, I also have the same problem. I ran the tests through gdb, and
this is what I get.
xmllint: using libxml version 20619
gdb python
GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT
2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries ... done
(gdb) set args test.py -p -v
(gdb) run
Starting program: /usr/bin/python test.py -p -v
Reading symbols for shared libraries . done
...
Reading symbols for shared libraries . done
3/238 ( 1.3%): test_attribute_items
(lxml.tests.test_etree.ETreeTestCase)
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x94ad072c in xmlDictOwns ()
(gdb) bt
#0 0x94ad072c in xmlDictOwns ()
#1 0x94a53068 in xmlFreeNodeList ()
#2 0x94a518f8 in xmlFreeProp ()
#3 0x94a51810 in xmlFreePropList ()
#4 0x94a53028 in xmlFreeNodeList ()
#5 0x94a504f4 in xmlFreeDoc ()
#6 0x004f4230 in __pyx_tp_dealloc_5etree__DocumentBase (o=0x3e110) at
src/lxml/etree.c:354
#7 0x004f43fc in __pyx_tp_dealloc_5etree__NodeBase (o=0xd4e8) at
src/lxml/etree.c:9688
#8 0x10024898 in frame_dealloc (f=0x124ae0) at
Objects/frameobject.c:394
#9 0x1007cab8 in fast_function (func=0x121d30, pp_stack=0xc, n=7,
na=5194268, nk=1187120) at Python/ceval.c:3632
#10 0x1007c908 in call_function (pp_stack=0xbfffdfcc, oparg=1255136) at
Python/ceval.c:3568
#11 0x1007a384 in PyEval_EvalFrame (f=0x83d810) at Python/ceval.c:2163
#12 0x1007b4c8 in PyEval_EvalCodeEx (co=0x0, globals=0x1326e0,
locals=0x42657475, args=0x10078444, argcount=1049072, kws=0x1007a374,
kwcount=1, defs=0x83d96c, defcount=1, closure=0x0) at
Python/ceval.c:2730
#13 0x100264b8 in function_call (func=0x10c809, arg=0x1001f0,
kw=0x83d810) at Objects/funcobject.c:548
#14 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#15 0x1007d078 in ext_do_call (func=0x6d430, pp_stack=0xbfffe290,
flags=269601980, na=1, nk=0) at Python/ceval.c:3824
#16 0x1007a474 in PyEval_EvalFrame (f=0x116730) at Python/ceval.c:2203
#17 0x1007b4c8 in PyEval_EvalCodeEx (co=0x11688c, globals=0x1326e0,
locals=0x42657475, args=0xa30d0, argcount=1049072, kws=0x1007a374,
kwcount=1, defs=0x83d96c, defcount=0, closure=0x0) at
Python/ceval.c:2730
#18 0x100264b8 in function_call (func=0x627eb, arg=0x1001f0,
kw=0x116730) at Objects/funcobject.c:548
#19 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#20 0x10015ccc in instancemethod_call (func=0x6d470, arg=0x567878,
kw=0x0) at Objects/classobject.c:2431
#21 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#22 0x1005959c in slot_tp_call (self=0xa30d0, args=0x54c570, kwds=0x0)
at Objects/typeobject.c:4526
#23 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#24 0x1007cc28 in do_call (func=0xa30d0, pp_stack=0xa30d0, na=0,
nk=1049072) at Python/ceval.c:3755
#25 0x1007c920 in call_function (pp_stack=0x0, oparg=1255136) at
Python/ceval.c:3570
#26 0x1007a384 in PyEval_EvalFrame (f=0x109bc0) at Python/ceval.c:2163
#27 0x1007b4c8 in PyEval_EvalCodeEx (co=0x1, globals=0x1326e0,
locals=0x42657475, args=0x10078444, argcount=1049072, kws=0x1007a374,
kwcount=1, defs=0x83d96c, defcount=0, closure=0x0) at
Python/ceval.c:2730
#28 0x100264b8 in function_call (func=0x2092dc, arg=0x1001f0,
kw=0x109bc0) at Objects/funcobject.c:548
#29 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#30 0x1007d078 in ext_do_call (func=0x6d8b0, pp_stack=0xbfffebd0,
flags=269601980, na=1, nk=0) at Python/ceval.c:3824
#31 0x1007a474 in PyEval_EvalFrame (f=0x107160) at Python/ceval.c:2203
#32 0x1007b4c8 in PyEval_EvalCodeEx (co=0x1072bc, globals=0x1326e0,
locals=0x42657475, args=0x55bc70, argcount=1049072, kws=0x1007a374,
kwcount=1, defs=0x83d96c, defcount=0, closure=0x0) at
Python/ceval.c:2730
#33 0x100264b8 in function_call (func=0x62cc3, arg=0x1001f0,
kw=0x107160) at Objects/funcobject.c:548
#34 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#35 0x10015ccc in instancemethod_call (func=0x6d8f0, arg=0xd3350,
kw=0x0) at Objects/classobject.c:2431
#36 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#37 0x1005959c in slot_tp_call (self=0x55bc70, args=0x565690, kwds=0x0)
at Objects/typeobject.c:4526
#38 0x1000c58c in PyObject_Call (func=0x121d30, arg=0x1326e0, kw=0x0)
at Objects/abstract.c:1751
#39 0x1007cc28 in do_call (func=0x55bc70, pp_stack=0x55bc70, na=0,
nk=1049072) at Python/ceval.c:3755
#40 0x1007c920 in call_function (pp_stack=0x0, oparg=1255136) at
Python/ceval.c:3570
#41 0x1007a384 in PyEval_EvalFrame (f=0x104c50) at Python/ceval.c:2163
#42 0x1007ca80 in fast_function (func=0x121d30, pp_stack=0x104dc8,
n=268928068, na=5194268, nk=1187120) at Python/ceval.c:3629
#43 0x1007c908 in call_function (pp_stack=0xbffff3fc, oparg=1255136) at
Python/ceval.c:3568
#44 0x1007a384 in PyEval_EvalFrame (f=0x842c10) at Python/ceval.c:2163
#45 0x1007ca80 in fast_function (func=0x121d30, pp_stack=0x842dc8,
n=268928068, na=5194268, nk=1187120) at Python/ceval.c:3629
#46 0x1007c908 in call_function (pp_stack=0xbffff5ac, oparg=1255136) at
Python/ceval.c:3568
#47 0x1007a384 in PyEval_EvalFrame (f=0x108850) at Python/ceval.c:2163
#48 0x1007b4c8 in PyEval_EvalCodeEx (co=0x1, globals=0x1326e0,
locals=0x42657475, args=0x10078444, argcount=1049072, kws=0x1007a374,
kwcount=1, defs=0x83d96c, defcount=0, closure=0x0) at
Python/ceval.c:2730
#49 0x1007e8bc in PyEval_EvalCode (co=0x121d30, globals=0x1326e0,
locals=0x0) at Python/ceval.c:484
#50 0x100b3124 in run_node (n=0x10078444, filename=0x1326e0 "Alpha",
globals=0x1, locals=0x1089a4, flags=0x0) at Python/pythonrun.c:1265
#51 0x100b28b0 in PyRun_SimpleFileExFlags (fp=0xa0009818,
filename=0xbffffa10 "test.py", closeit=1083472, flags=0x10b849) at
Python/pythonrun.c:860
#52 0x100bf884 in Py_Main (argc=129616, argv=0xbffffa13) at
Modules/main.c:484
#53 0x000018d0 in _start (argc=129616, argv=0xa0009818,
envp=0xbffffa13) at /SourceCache/Csu/Csu-47/crt.c:267
#54 0x8fe1a558 in __dyld__dyld_start ()