[ python-Bugs-1038013 ] textReader: reading after close is a seg fault

SourceForge.net noreply at sourceforge.net
Sun Oct 17 15:46:28 CEST 2004


Bugs item #1038013, was opened at 2004-09-30 16:11
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1038013&group_id=5470

Category: XML
>Group: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Jyrki Alakuijala (jyrkialakuijala)
Assigned to: Nobody/Anonymous (nobody)
Summary: textReader: reading after close is a seg fault

Initial Comment:
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()
--------------------------------------


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2004-10-17 09:46

Message:
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/

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1038013&group_id=5470


More information about the Python-bugs-list mailing list