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 = """ Service_offerings query at 2008-05-23 12:47:28.038233 """ 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.
It is a common apache problem. Elementree imports an expat parser (presumably cElementree doesn't) and different versions of expat play together very poorly. Lots of apache modules load one xml lib version or another and they tend to step on each others toes .. and then segfault. IIRC the only way to resolve this is to figure out which loaded apache modules are using expat and recompile them all against the same version. Not fun.
History
Date
User
Action
Args
2022-04-11 14:56:34
admin
set
github: 47200
2008-08-01 21:01:17
jackdied
set
status: open -> closedresolution: not a bugmessages: + nosy: + jackdied