Mod_wsgi + Python 2.7.3分段错误(11)

时间:2012-12-04 10:44:03

标签: python apache mod-wsgi

我在RHEL5上编译了Python 2.7.3 + mod_wsgi 3.4。

运行我的脚本,我看到有时它们可​​以工作,但大多数时候我看到一个空白页面。我已经检查了错误日志,我已经看到了这个:

[Tue Dec 04 11:37:40 2012] [notice] child pid 21822 exit signal Segmentation fault (11)

我在Apache CoreDump文件上使用了gdb来跟踪错误,我可以看到:

Loaded symbols for /usr/local/lib/python2.7/lib-dynload/_ctypes.so
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002ab6a98b3c32 in CThunkObject_dealloc (_self=<value optimized out>) at /backup/moving/python/Python-2.7.3/Modules/_ctypes/callbacks.c:24
24      Py_XDECREF(self->restype);

我的mod_wsgi.so文件链接到这些库:

 ldd /usr/lib64/httpd/modules/mod_wsgi.so
    libpython2.7.so.1.0 => /usr/local/lib/libpython2.7.so.1.0 (0x00002b7051fb8000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b7052385000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00002b70525a0000)
    libutil.so.1 => /lib64/libutil.so.1 (0x00002b70527a5000)
    libm.so.6 => /lib64/libm.so.6 (0x00002b70529a8000)
    libc.so.6 => /lib64/libc.so.6 (0x00002b7052c2b000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003191400000)

此错误不会随时发生,而是随机发生。你对如何解决它有任何线索吗?

0 个答案:

没有答案