segmentation fault on "xsltApplyXSLTTemplate: A potential infinite template recursion was detected"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
I cant easily reproduce it, because it happens only on highload (apache benchmark on our github.
if any info i can provide - just ask please.
$ dpkg -l python-lxml libxslt1.1 libxml2
ii python-lxml 2.3-4~my-1build1 pythonic binding for the libxml2 and libxslt libraries
ii libxslt1.1 1.1.26-1ubuntu1 XSLT processing library - runtime library
ii libxml2 2.7.6.dfsg-
Python : (2, 6, 5, 'final', 0)
lxml.etree : (2, 3, 4, 0)
libxml used : (2, 7, 6)
libxml compiled : (2, 7, 6)
libxslt used : (1, 1, 26)
libxslt compiled : (1, 1, 26)
$ uname -a
Linux my 2.6.32-37-server #81-Ubuntu SMP Fri Dec 2 20:49:12 UTC 2011 x86_64 GNU/Linux
$ python -V
Python 2.6.5
gdb bt:
#0 0x00007ffff5e1f264 in __pyx_f_
#1 0x00007ffff5e1f5a7 in __pyx_f_
python trace (if no segfault):
File "/.../head.xsl", line 7, column 0
runtime error, element 'apply-templates'
File "<string>", line 0, column 0
xsltApplyXSLTTe
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).
File "<string>", line 0, column 0
........
File "<string>", line 0, column 0
Traceback (most recent call last):
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
callback(*args, **kwargs)
File "/usr/lib/
raise e
XSLTApplyError: Error applying stylesheet
Changed in lxml: | |
assignee: | nobody → Stefan Behnel (scoder) |
importance: | Undecided → Medium |
milestone: | none → 2.4 |
status: | New → Fix Committed |
i can alse reproduce it on python-lxml=2.2.4-1