[New-bugs-announce] [issue2951] ElementTree parsing bus error (but only from mod_python)

Kathy Van Stone report at bugs.python.org
Fri May 23 19:59:39 CEST 2008


New submission from Kathy Van Stone <kvs at acm.org>:

The follow code works fine when run directly. It crashes (with a bus
error) if used as a mod_python handler. It doesn't crash if ElementTree
is replaced with cElementTree.

from xml.etree import ElementTree as eltree

def handler(req):
    body = """<?xml version='1.0' encoding='utf-8'?>
<collection uuid="~01edc22c1628e711ddb20220296b032019"
href="http://localhost:8888/ws/dataset/~01edc22c1628e711ddb20220296b032019">
  <name>Service_offerings query at 2008-05-23 12:47:28.038233</name>
</collection>"""

    response_elem = eltree.XML(body)
    return 0


I don't know if this a mod_python or ElementTree issue, but it looks
more like an ElementTree problem.

----------
components: Library (Lib), Macintosh
messages: 67259
nosy: kathyvs
severity: normal
status: open
title: ElementTree parsing bus error (but only from mod_python)
type: crash
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2951>
__________________________________


More information about the New-bugs-announce mailing list