Issue 1038013: textReader: reading after close is a seg fault (original) (raw)

Python 2.3.3 (#1, May 7 2004, 10:31:40) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2

the code below crashes on fedora core 2:


import libxml2

file = open("ihanmikavaan.xml", "w") file.write("hajoa!") file.close()

reader = libxml2.newTextReaderFilename("ihanmikavaan.xml") reader.Close()

reading after Close is a seg fault, not an exception

ret = reader.Read()