Package: python-lxml
Version: 2.3.2-1
Severity: important

Dear Maintainer,
parsing well-formatted xml with lxml lead to unavoidable cycle break.
Known problem already fixed upstream and in Ubuntu maybe 
(https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1201849).

Step to reproduce:
from lxml import etree
for event, elem in etree.iterparse('doc.xml', tag='sometag'):
  do something

traceback:
  File "iterparse.pxi", line 478, in lxml.etree.iterparse.__next__ 
(src/lxml/lxml.etree.c:98432)
  File "iterparse.pxi", line 530, in lxml.etree.iterparse._read_more_events 
(src/lxml/lxml.etree.c:98953)
  File "parser.pxi", line 601, in lxml.etree._raiseParseError 
(src/lxml/lxml.etree.c:74863)
lxml.etree.XMLSyntaxError: None

On Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=874546

Cannot find relevant upstream bugreport and fix, sorry.

I will try unstable lxml 3.2.

-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-lxml depends on:
ii  libc6       2.13-38
ii  libxml2     2.8.0+dfsg1-7+nmu2
ii  libxslt1.1  1.1.26-14.1
ii  python      2.7.3-4+deb7u1
ii  python2.6   2.6.8-1.1
ii  python2.7   2.7.3-6
ii  zlib1g      1:1.2.7.dfsg-13

python-lxml recommends no packages.

Versions of packages python-lxml suggests:
pn  python-lxml-dbg  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to