TRAC 0.10.4 => 0.11b1 업데이트후 다음과 같은 오류 발생
[Mon Feb 18 19:49:02 2008] [notice] child pid 22852 exit signal Segmentation fault (11)
확인 사항
$ ldd /opt/lampp/bin/httpd | grep expat
libexpat.so.0 => /opt/lampp/lib/libexpat.so.0 (0xb7e8c000)
$ strings /usr/lib/libexpat.so.0 | grep expat_
expat_1.95.2
혹은
$ ps aux | grep http | head -3
root 3625 0.0 0.6 31068 12836 ? SN Sep25 0:08 /usr/sbin/httpd
apache 24814 0.0 0.7 34196 15604 ? SN 04:11 0:00 /usr/sbin/httpd
apache 24815 0.0 0.7 33924 15916 ? SN 04:11 0:00 /usr/sbin/httpd
$/usr/sbin/lsof -p 3625 | grep expat
httpd 3625 root mem REG 253,0 123552 6409040 /opt/lampp/lib/libexpat.so.0.1.0
$ strings /usr/lib/libexpat.so.0.5.0 | grep expat_
expat_1.95.2
# python
Python 2.4.4 (#2, Feb 12 2008, 13:08:42)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexpat
>>> pyexpat.version_info
(1, 95, 8)
libexpat.so.0 => /opt/lampp/lib/libexpat.so.0 (0xb7e8c000)
$ strings /usr/lib/libexpat.so.0 | grep expat_
expat_1.95.2
혹은
$ ps aux | grep http | head -3
root 3625 0.0 0.6 31068 12836 ? SN Sep25 0:08 /usr/sbin/httpd
apache 24814 0.0 0.7 34196 15604 ? SN 04:11 0:00 /usr/sbin/httpd
apache 24815 0.0 0.7 33924 15916 ? SN 04:11 0:00 /usr/sbin/httpd
$/usr/sbin/lsof -p 3625 | grep expat
httpd 3625 root mem REG 253,0 123552 6409040 /opt/lampp/lib/libexpat.so.0.1.0
$ strings /usr/lib/libexpat.so.0.5.0 | grep expat_
expat_1.95.2
# python
Python 2.4.4 (#2, Feb 12 2008, 13:08:42)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexpat
>>> pyexpat.version_info
(1, 95, 8)
Apache에서 사용되어지는 expat 라이브러리와 Python에서 사용하는 라이브러리 버전이 달라서 생기는 현상임.
해결방법
/opt/lampp/lib/libexpat.a -> /usr/lib/libexpat.a
/opt/lampp/lib/libexpat.so -> /lib/libexpat.so
/opt/lampp/lib/libexpat.so -> /lib/libexpat.so
"프로그래밍 / Python" 분류의 다른 글
[python] Python에서 MSSQL 사용하기 (0) | 2008/03/06 |
[python] ClamAV Oversized.Zip FOUND 문제. (0) | 2008/01/22 |
[python] Python C Module 만들기 (0) | 2006/11/28 |
[python] eclipse에서 python 작업하기 (0) | 2006/08/16 |
[python] 함수 포인터 (0) | 2006/06/21 |
[python] Python으로 작성된 Hellow, World! (0) | 2006/05/16 |