Upgrading expat for apache question
wayne collier <[email protected]> Mon, 08 Mar 2010 13:54:16 -0500
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============2037866623==
Content-type: multipart/alternative;
boundary="Boundary_(ID_UiOtXc4EllgmW9lIil56Vg)"
This is a multi-part message in MIME format.
--Boundary_(ID_UiOtXc4EllgmW9lIil56Vg)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
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
<http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash>and
followed the step and have uncovered the following.
> ldd /usr/local/httpd-2.2.11/bin/httpd | grep expat
libexpat.so.0 => /lib/libexpat.so.0 (0x00d70000)
> strings /lib/libexpat.so.0 | grep expat_
expat_1.95.8
> ps aux | grep http | head -3
webuser 14986 0.0 2.1 54236 19048 ? S Mar04 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 14987 0.0 3.2 144128 29540 ? S Mar04 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 14998 0.0 3.2 144212 29660 ? S Mar04 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
> /usr/sbin/lsof -p 14986 | grep expat
httpd 14986 webuser mem REG 3,5 572313 972637
/opt/Python/lib/python2.6/lib-dynload/pyexpat.so
httpd 14986 webuser mem REG 3,5 133120 1883791
/lib/libexpat.so.0.5.0
*I am not sure why I get 2 shared libaries here.*
> strings /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 with mod_python as well?
--Boundary_(ID_UiOtXc4EllgmW9lIil56Vg)
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello all. I need some help solving the dreaded segmentation fault that
has cropped several time on this board. I have read the link <a
href="http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash">http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash
</a>and followed the step and have uncovered the following.<br>
<br>
<br>
> ldd /usr/local/httpd-2.2.11/bin/httpd | grep expat<br>
libexpat.so.0 => /lib/libexpat.so.0 (0x00d70000)<br>
<br>
> strings /lib/libexpat.so.0 | grep expat_<br>
expat_1.95.8<br>
<br>
> ps aux | grep http | head -3<br>
webuser 14986 0.0 2.1 54236 19048 ? S Mar04 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<br>
webuser 14987 0.0 3.2 144128 29540 ? S Mar04 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<br>
webuser 14998 0.0 3.2 144212 29660 ? S Mar04 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<br>
<br>
> /usr/sbin/lsof -p 14986 | grep expat<br>
<br>
httpd 14986 webuser mem REG 3,5 572313 972637
/opt/Python/lib/python2.6/lib-dynload/pyexpat.so<br>
httpd 14986 webuser mem REG 3,5 133120 1883791
/lib/libexpat.so.0.5.0<br>
<br>
<b>I am not sure why I get 2 shared libaries here.</b><br>
<br>
> strings /lib/libexpat.so.0.5.0 | grep expat_<br>
expat_1.95.8<br>
<br>
<br>
> strings /opt/Python/lib/python2.6/lib-dynload/pyexpat.so | grep
expat_<br>
pyexpat.expat_CAPI 1.0<br>
expat_CAPI<br>
expat_2.0.0<br>
<br>
<br>
>>> import pyexpat <br>
>>> pyexpat.version_info<br>
(2, 0, 0)<br>
<br>
<br>
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 with mod_python as well? <br>
<br>
<br>
<br>
</body>
</html>
--Boundary_(ID_UiOtXc4EllgmW9lIil56Vg)--
--===============2037866623==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python
--===============2037866623==--