classification
Title: textReader: reading after close is a seg fault
Type: Stage:
Components: XML Versions:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: jyrkialakuijala, nnorwitz (2)
Priority: normal Keywords

Created on 2004-09-30 20:11 by jyrkialakuijala, last changed 2004-10-17 13:46 by nnorwitz.

Messages (2)
msg22577 - (view) Author: Jyrki Alakuijala (jyrkialakuijala) Date: 2004-09-30 20:11
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("<doc>hajoa!</doc>")
file.close()

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

# reading after Close is a seg fault, not an exception
ret = reader.Read()
--------------------------------------
msg22578 - (view) Author: Neal Norwitz (nnorwitz) Date: 2004-10-17 13:46
Logged In: YES 
user_id=33168

libxml2 is not a standard part of python.  You should report
this bug to the libxml2 maintainers and/or RedHat.  You can
try starting from one of these links:  http://xmlsoft.org/
http://bugzilla.redhat.com/bugzilla/
History
Date User Action Args
2004-09-30 20:11:55jyrkialakuijalacreate