免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3647 | 回复: 4
打印 上一主题 下一主题

[Web] 为什么我的apache2总是提示exit signal Segmentation fault (11) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-18 19:08 |只看该作者 |倒序浏览
系统是RH8
apache2.0.49+php4.3.6
在浏览一个php页面的时候,总是出现
exit signal Segmentation fault (11)错误
导致apache2子进程被杀掉,无法提供web服务

也尝试过php4.3.4版本
依旧如此请问是什么原因呢?
我的php是这么配置的
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-oracle=/export/oracle/product/9i --with-oci8=/export/oracle/product/9i  --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr  --without-mysql

调用的php页是读取oracle数据库的记录.

论坛徽章:
0
2 [报告]
发表于 2004-04-20 11:34 |只看该作者

为什么我的apache2总是提示exit signal Segmentation fault (11)

多半是那个 php 脚本的问题,比如向一个没有分配内存的变量写东西,等等。

子进程被杀掉,应该不会影响 web 服务。一个子进程死掉,apache 会再生成新的。

论坛徽章:
0
3 [报告]
发表于 2004-04-20 13:38 |只看该作者

为什么我的apache2总是提示exit signal Segmentation fault (11)

生成一个就杀死一个
总是segmentation fault.

下面是gdb的结果

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 2033)]
0x406c3e71 in snauca_check_adapter () from /export/oracle/product/9i/lib/libclntsh.so.9.0
(gdb) bt
#0  0x406c3e71 in snauca_check_adapter () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#1  0x406c25f4 in nau_viat () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#2  0x406bb8ec in nau_gettab () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#3  0x406b9f6b in nau_ini () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#4  0x406af8d3 in nainit () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#5  0x40663f57 in nsnainit () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#6  0x4065929a in nsopen () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#7  0x406423b9 in nscall1 () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#8  0x406418f0 in nscall () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#9  0x406d8914 in niotns () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#10 0x406d4629 in nigcall () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#11 0x40671b73 in osncon () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#12 0x404ad8f3 in kpuadef () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#13 0x40530ac5 in upiini () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#14 0x4051fe1b in upiah0 () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#15 0x40487eb6 in kpuatch () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#16 0x40513f9c in OCIServerAttach () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#17 0x40214895 in _oci_open_server (dbname=0x81e40ac "XINTV", persistent=0)
    at /usr/local/php-4.3.6/ext/oci8/oci8.c:2536
#18 0x40215409 in oci_do_connect (ht=3, return_value=0x81e552c, this_ptr=0x0, return_value_used=1,
    persistent=0, exclusive=0) at /usr/local/php-4.3.6/ext/oci8/oci8.c:2701
#19 0x40219c44 in zif_ocilogon (ht=3, return_value=0x81e552c, this_ptr=0x0, return_value_used=1)
    at /usr/local/php-4.3.6/ext/oci8/oci8.c:4340
#20 0x4031357e in execute (op_array=0x81cc0f4) at /usr/local/php-4.3.6/Zend/zend_execute.c:1635
#21 0x403137b1 in execute (op_array=0x81dfa9 at /usr/local/php-4.3.6/Zend/zend_execute.c:1679
#22 0x403137b1 in execute (op_array=0x818696c) at /usr/local/php-4.3.6/Zend/zend_execute.c:1679
#23 0x40301e6b in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/local/php-4.3.6/Zend/zend.c:886
#24 0x402cbd80 in php_execute_script (primary_file=0xbffff7b0)
    at /usr/local/php-4.3.6/main/main.c:1731
---Type <return>; to continue, or q <return>; to quit---
#25 0x4031984d in php_handler (r=0x817c160)
    at /usr/local/php-4.3.6/sapi/apache2handler/sapi_apache2.c:561
#26 0x0807c436 in ap_run_handler (r=0x817c160) at config.c:152
#27 0x0807c94e in ap_invoke_handler (r=0x817c160) at config.c:358
#28 0x0806c5a7 in ap_process_request (r=0x817c160) at http_request.c:246
#29 0x08068681 in ap_process_http_connection (c=0x8177d1 at http_core.c:250
#30 0x080855d2 in ap_run_process_connection (c=0x8177d1 at connection.c:42
#31 0x0807afaf in child_main (child_num_arg=0) at prefork.c:609
#32 0x0807b15a in make_child (s=0x80b70e0, slot=0) at prefork.c:649
#33 0x0807b1b3 in startup_children (number_to_start=5) at prefork.c:721
#34 0x0807b8c1 in ap_mpm_run (_pconf=0x807a978, plog=0x80eca90, s=0x80b70e0) at prefork.c:940
#35 0x0808086e in main (argc=2, argv=0xbffffb34) at main.c:617
#36 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

论坛徽章:
0
4 [报告]
发表于 2004-04-20 13:51 |只看该作者

为什么我的apache2总是提示exit signal Segmentation fault (11)

从这个 post: http://www.geocrawler.com/archives/3/254/2003/8/0/10594569/

作者的问题是没有在 apache 的运行环境里设置 ORACLE_HOME 这个环境变量。不知你的有没有设?

论坛徽章:
0
5 [报告]
发表于 2004-04-20 15:29 |只看该作者

为什么我的apache2总是提示exit signal Segmentation fault (11)

非常非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP