This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2004-09-30 20:11 by jyrkialakuijala, last changed 2022-04-11 14:56 by admin. This issue is now closed.

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) * (Python committer) 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
2022-04-11 14:56:07adminsetgithub: 40967
2004-09-30 20:11:55jyrkialakuijalacreate