[Python-bugs-list] [ python-Bugs-630494 ] expat causes a core dump

SourceForge.net noreply@sourceforge.net
Tue, 15 Jul 2003 13:08:02 -0700


Bugs item #630494, was opened at 2002-10-29 09:37
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=630494&group_id=5470

Category: XML
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: MM Zeeman (mmzeeman)
Assigned to: Martin v. Löwis (loewis)
Summary: expat causes a core dump

Initial Comment:
Raising an exception inside a StartNamespaceDeclHandler
causes
python to dump core. 

The attached program will cause a segmentation fault. 

Note it is possible to raise exception in the
StartElementHandler and
EndElementHandler

with Python 2.0
>python2.0 expat_testje.py
None 123
Segmentation fault (core dumped)

with Python 2.2.1
>python2 expat_testje.py
None 123
Segmentation fault (core dumped)



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

>Comment By: Tim Peters (tim_one)
Date: 2003-07-15 16:08

Message:
Logged In: YES 
user_id=31435

FYI, on Win2K the test program dies w/ a segfault under 2.2.3 
and under 2.3 CVS displays

None 123
Traceback (most recent call last):
  File "\code\expat_testje.py", line 19, in ?
    parser.Parse("""<tag xmlns="123">een twee drie</tag>""", 
1)
  File "\code\expat_testje.py", line 7, in 
handle_start_namespace
    raise Exception("Something is wrong here!")
Exception: Something is wrong here!


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

Comment By: Martin v. Löwis (loewis)
Date: 2003-07-15 15:15

Message:
Logged In: YES 
user_id=21627

I can't reproduce the crashes for 2.3, as of today. Can
anybody else confirm that the problem has gone away for 2.3?

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

Comment By: Martin v. Löwis (loewis)
Date: 2003-01-26 05:45

Message:
Logged In: YES 
user_id=21627

It appears to be fixed in 2.3, although I haven't
investigated which particular change has fixed it.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-10-29 17:14

Message:
Logged In: YES 
user_id=33168

This core dumps on 2.2.2 and 2.3.

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

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