[lxml-dev] bizarre crashes under FreeBSD

Dmitri Fedoruk dfedoruk at gmail.com
Thu Jul 16 16:22:28 CEST 2009


Greetings,

> Does anyone have experience with threading on FreeBSD? Any ideas where
> these problems may arise from? Could anyone test the attached test script
> on other FreeBSD systems?
So far I can only reproduce this:

FreeBSD 7.0-RELEASE i386
lxml.etree:        (2, 2, -199, 59835)
libxml used:       (2, 6, 32)
libxml compiled:   (2, 6, 30)
libxslt used:      (1, 1, 22)
libxslt compiled:  (1, 1, 22)

Coredump with the following backtrace:
#0  0x2853eb1b in __pyx_f_4lxml_5etree__forwardError ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
[New Thread 0x28302b00 (LWP 100819)]
[New Thread 0x28302a00 (LWP 100646)]
[New Thread 0x28302900 (LWP 100572)]
[New Thread 0x28302800 (LWP 100561)]
[New Thread 0x28302700 (LWP 100524)]
[New Thread 0x28302600 (LWP 100522)]
[New Thread 0x28302500 (LWP 100500)]
[New Thread 0x28302400 (LWP 100444)]
[New Thread 0x28302300 (LWP 100335)]
[New Thread 0x28302200 (LWP 100254)]
[New Thread 0x28301100 (LWP 100182)]
(gdb) bt
#0  0x2853eb1b in __pyx_f_4lxml_5etree__forwardError ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
#1  0x28641699 in __xmlRaiseError () from /usr/local/lib/libxml2.so.5
#2  0x2867dc1b in htmlParseErr () from /usr/local/lib/libxml2.so.5
#3  0x2867fe3d in htmlParseEndTag () from /usr/local/lib/libxml2.so.5
#4  0x28684de0 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#5  0x286849a9 in htmlParseElement () from /usr/local/lib/libxml2.so.5
#6  0x28684e3e in htmlParseContent () from /usr/local/lib/libxml2.so.5
#7  0x286849a9 in htmlParseElement () from /usr/local/lib/libxml2.so.5
#8  0x28684e3e in htmlParseContent () from /usr/local/lib/libxml2.so.5
#9  0x286849a9 in htmlParseElement () from /usr/local/lib/libxml2.so.5
#10 0x28684e3e in htmlParseContent () from /usr/local/lib/libxml2.so.5
#11 0x286849a9 in htmlParseElement () from /usr/local/lib/libxml2.so.5
#12 0x28684e3e in htmlParseContent () from /usr/local/lib/libxml2.so.5
#13 0x28685299 in htmlParseDocument () from /usr/local/lib/libxml2.so.5
#14 0x28685460 in htmlDoRead () from /usr/local/lib/libxml2.so.5
#15 0x285ac36b in __pyx_f_4lxml_5etree_11_BaseParser__parseDoc ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
#16 0x285b128b in __pyx_f_4lxml_5etree__parseDoc ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
#17 0x285b24f2 in __pyx_f_4lxml_5etree__parseMemoryDocument ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
#18 0x285b28b3 in __pyx_pf_4lxml_5etree_fromstring ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-freebsd-7.0-RELEASE-i386.egg/lxml/etree.so
#19 0x08059cd7 in PyObject_Call ()
#20 0x080af811 in PyEval_EvalFrameEx ()
#21 0x080b21c9 in PyEval_EvalCodeEx ()
#22 0x080edd5c in PyClassMethod_New ()
#23 0x08059cd7 in PyObject_Call ()
#24 0x080af811 in PyEval_EvalFrameEx ()
#25 0x080b21c9 in PyEval_EvalCodeEx ()
#26 0x080b0cc0 in PyEval_EvalFrameEx ()
#27 0x080b1858 in PyEval_EvalFrameEx ()
#28 0x080b21c9 in PyEval_EvalCodeEx ()
#29 0x080eddd1 in PyClassMethod_New ()
#30 0x08059cd7 in PyObject_Call ()
#31 0x0805f111 in PyClass_IsSubclass ()
#32 0x08059cd7 in PyObject_Call ()
#33 0x080abddc in PyEval_CallObjectWithKeywords ()
#34 0x080d3f38 in initthread ()
#35 0x28174b1f in pthread_getprio () from /lib/libthr.so.3

Another machine, FreeBSD 7.0 amd64,
lxml.etree:        (2, 0, 7, 0)
libxml used:       (2, 6, 32)
ml compiled:   (2, 6, 32)
libxslt used:      (1, 1, 24)
libxslt compiled:  (1, 1, 24) :

#0  0x00000000004394d5 in PyObject_GetAttr ()
[New Thread 0x705780 (LWP 100540)]
[New Thread 0x705600 (LWP 100539)]
[New Thread 0x705180 (LWP 100538)]
[New Thread 0x705000 (LWP 100537)]
[New Thread 0x704d00 (LWP 100536)]
[New Thread 0x704e80 (LWP 100535)]
[New Thread 0x705900 (LWP 100534)]
[New Thread 0x705a80 (LWP 100533)]
[New Thread 0x705480 (LWP 100532)]
[New Thread 0x705300 (LWP 100193)]
[New Thread 0x702180 (LWP 101248)]
(gdb)  bt
#0  0x00000000004394d5 in PyObject_GetAttr ()
#1  0x0000000800ecd2a3 in __pyx_f_4lxml_5etree_13_BaseErrorLog ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#2  0x0000000800ed8b20 in __pyx_f_4lxml_5etree__forwardError ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#3  0x0000000801305910 in __xmlRaiseError () from /usr/local/lib/libxml2.so.5
#4  0x000000080133e3a6 in htmlParseErr () from /usr/local/lib/libxml2.so.5
#5  0x00000008013404b0 in htmlParseEndTag () from /usr/local/lib/libxml2.so.5
#6  0x00000008013452c2 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#7  0x0000000801344f8f in htmlParseElement () from /usr/local/lib/libxml2.so.5
#8  0x0000000801345320 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#9  0x0000000801344f8f in htmlParseElement () from /usr/local/lib/libxml2.so.5
#10 0x0000000801345320 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#11 0x0000000801344f8f in htmlParseElement () from /usr/local/lib/libxml2.so.5
#12 0x0000000801345320 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#13 0x0000000801344f8f in htmlParseElement () from /usr/local/lib/libxml2.so.5
#14 0x0000000801345320 in htmlParseContent () from /usr/local/lib/libxml2.so.5
#15 0x00000008013457bf in htmlParseDocument () from /usr/local/lib/libxml2.so.5
#16 0x000000080134596c in htmlDoRead () from /usr/local/lib/libxml2.so.5
#17 0x0000000800edeb44 in __pyx_f_4lxml_5etree_11_BaseParser__parseDoc ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#18 0x0000000800f22fba in __pyx_f_4lxml_5etree__parseDoc ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#19 0x0000000800f24181 in __pyx_f_4lxml_5etree__parseMemoryDocument ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#20 0x0000000800f28e75 in __pyx_pf_4lxml_5etree_HTML ()
   from /usr/local/lib/python2.5/site-packages/lxml-2.0.7-py2.5-freebsd-7.0-20081001-SNAP-amd64.egg/lxml/etree.so
#21 0x0000000000415173 in PyObject_Call ()
#22 0x000000000046e5f0 in PyEval_EvalFrameEx ()
#23 0x00000000004710ac in PyEval_EvalCodeEx ()
#24 0x00000000004af191 in PyClassMethod_New ()
#25 0x0000000000415173 in PyObject_Call ()
#26 0x000000000046e5f0 in PyEval_EvalFrameEx ()
#27 0x00000000004710ac in PyEval_EvalCodeEx ()
#28 0x000000000046fbe4 in PyEval_EvalFrameEx ()
#29 0x00000000004708e4 in PyEval_EvalFrameEx ()
#30 0x00000000004708e4 in PyEval_EvalFrameEx ()
#31 0x00000000004710ac in PyEval_EvalCodeEx ()
#32 0x00000000004af1f8 in PyClassMethod_New ()
#33 0x0000000000415173 in PyObject_Call ()
#34 0x000000000041adad in PyClass_IsSubclass ()
#35 0x0000000000415173 in PyObject_Call ()
#36 0x000000000046aa02 in PyEval_CallObjectWithKeywords ()
#37 0x0000000000494cad in initthread ()
#38 0x000000080093fa27 in pthread_getprio () from /lib/libthr.so.3
#39 0x00007fffffb5b000 in ?? ()

But no ideas about the reason, sorry

Dmitri


More information about the lxml-dev mailing list