Re: Upgrading expat for apache question
Graham Dumpleton <[email protected]> Tue, 9 Mar 2010 09:46:06 +1100
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
That is not your problem, quoting: http://code.google.com/p/modwsgi/wiki/IssuesWithExpatLibrary which is more up to date in respect of this issue, even if the mod_wsgi variant of that document: """Note that this only applies to Python versions prior to Python 2.5. >From Python 2.5 onwards, the copy of the "expat" library bundled in with Python is name space prefixed, thereby avoid name clashes with an "expat" library which has previously been loaded.""" You are using Python 2.6, so you cannot be affected by this problem. Graham On 9 March 2010 05:54, wayne collier <[email protected]> wrote: > Hello all. I need some help solving the dreaded segmentation fault that= has > cropped several time on this board. I have read the link > http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash= and > followed the step and have uncovered the following. > > >> ldd=A0=A0=A0 /usr/local/httpd-2.2.11/bin/httpd | grep expat > =A0=A0=A0 libexpat.so.0 =3D> /lib/libexpat.so.0 (0x00d70000) > >> strings /lib/libexpat.so.0=A0 | grep expat_ > expat_1.95.8 > >>=A0 ps aux | grep http | head -3 > webuser=A0 14986=A0 0.0=A0 2.1=A0 54236 19048 ?=A0=A0=A0=A0=A0=A0=A0 S=A0= =A0=A0 Mar04=A0=A0 0:01 > /usr/local/httpd-2.2.11/bin/httpd -d /usr/local/httpd-2.2.11 -f > /usr/local/httpd-2.2.11/conf/httpd.conf > webuser=A0 14987=A0 0.0=A0 3.2 144128 29540 ?=A0=A0=A0=A0=A0=A0=A0 S=A0= =A0=A0 Mar04=A0=A0 0:01 > /usr/local/httpd-2.2.11/bin/httpd -d /usr/local/httpd-2.2.11 -f > /usr/local/httpd-2.2.11/conf/httpd.conf > webuser=A0 14998=A0 0.0=A0 3.2 144212 29660 ?=A0=A0=A0=A0=A0=A0=A0 S=A0= =A0=A0 Mar04=A0=A0 0:01 > /usr/local/httpd-2.2.11/bin/httpd -d /usr/local/httpd-2.2.11 -f > /usr/local/httpd-2.2.11/conf/httpd.conf > >>=A0 /usr/sbin/lsof -p 14986 | grep expat > > httpd=A0=A0 14986 webuser=A0 mem=A0=A0=A0 REG=A0=A0=A0=A0 3,5=A0=A0 572= 313=A0 972637 > /opt/Python/lib/python2.6/lib-dynload/pyexpat.so > httpd=A0=A0 14986 webuser=A0 mem=A0=A0=A0 REG=A0=A0=A0=A0 3,5=A0=A0 133= 120 1883791 > /lib/libexpat.so.0.5.0 > > I am not sure why I get 2 shared libaries here. > >>=A0 strings=A0 /lib/libexpat.so.0.5.0 | grep expat_ > expat_1.95.8 > > >> strings /opt/Python/lib/python2.6/lib-dynload/pyexpat.so | grep expat_ > pyexpat.expat_CAPI 1.0 > expat_CAPI > expat_2.0.0 > > >>>> import pyexpat >>>> pyexpat.version_info > (2, 0, 0) > > > So it seems like I need get expat_1.95.8 apache is using up to expat_2.= 0.0. > Can I simply try replacing the 1.95.8 library with 2.0.0. Or do I have > recompile with Apache? If I do recompile I need to recompile apache wit= h > mod_python as well? > > > >