Crash on double list(lxml.etree.iterparse(f))
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Invalid
|
Undecided
|
Unassigned |
Bug Description
lxml 4.3.3 (Python 3.7, Anaconda, Linux 64bit)
test.py:
import lxml
import lxml.etree
with open('test.xml', 'rb') as f:
list(
)
# Traceback (most recent call last):
# File "test.py", line 18, in <module>
# lxml.etree.
# File "src/lxml/
# File "src/lxml/
# File "src/lxml/
# File "src/lxml/
# Segmentation fault
list(
)
test.xml:
<?xml version="1.0" encoding="UTF-8"?>
<root></root>
(or any else)
Cannot reproduce a crash. What I see is an exception on the second call, because it's reading from an "empty" file and finds no XML in it.