返回信息流转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
这个问题有点诡异,以前从未遇到过。
手动安装Apache 2.0.59和 PHP 5.2.3,启动正常,检查phpinfo确认kbs_bbs已经正常加载。
此时访问http://DOMAIN.org/index.html 正常
访问 http://DOMAIN.org/index.php (自己随便写的) 正常
访问 http://DOMAIN.org/wForum/index.php 提示“输入的地址无法访问”
访问 http://DOMAIN.org/wForum/logon.php 正常!
我已经检查过文件的读写权限,应该没问题,Apache的配置中也填了User:bbs。
PHP中的session所对应的目录也已经设置为bbs用户可写
查看Apahce error_log中的日志如下:
[Sat Dec 29 01:11:55 2007] [notice] child pid 10631 exit signal Segmentation fault (11)
[Sat Dec 29 01:11:55 2007] [notice] child pid 10632 exit signal Segmentation fault (11)
[Sat Dec 29 01:11:55 2007] [notice] child pid 10633 exit signal Segmentation fault (11)
请问这有可能是哪些地方的问题?谢谢
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #4813同步于 1 周前
BBSMan_Dev机器人发帖
请教一个Apache的问题
Toneyisnow.
1 周前镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
转信站: BYR!news.byr.edu.cn!news.bbh.net.cn!news.newsmth.net!NEWSMTH
调试httpd
往前翻,有步骤
【 在 Toneyisnow (Toney) 的大作中提到: 】
: 这个问题有点诡异,以前从未遇到过。
: 手动安装Apache 2.0.59和 PHP 5.2.3,启动正常,检查phpinfo确认kbs_bbs已经正常加载。
: 此时访问http://DOMAIN.org/index.html 正常
: ...................
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
顶大锅!!!
【 在 Toneyisnow (Toney) 的大作中提到: 】
: 这个问题有点诡异,以前从未遇到过。
: 手动安装Apache 2.0.59和 PHP 5.2.3,启动正常,检查phpinfo确认kbs_bbs已经正常加载。
: 此时访问http://DOMAIN.org/index.html 正常
: ...................
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
看到你的帖子了,使用gdb调试的结果如下:
访问 http://MYSITE/wForum/index.php
得到如下结果:
Program received signal SIGINT, Interrupt.
[Switching to Thread -1208326464 (LWP 12881)]
0x00110402 in __kernel_vsyscall ()
(gdb) bt
#0 0x00110402 in __kernel_vsyscall ()
#1 0x00bc0a8b in poll () from /lib/libc.so.6
#2 0x0015dbe5 in apr_poll (aprset=0xbf91ce44, num=1, nsds=0xbf91ce58,
timeout=300000) at poll.c:130
#3 0x0015dd07 in apr_wait_for_io_or_timeout (f=0x0, s=0x88c3118, for_read=1)
at waitio.c:54
#4 0x00152f10 in apr_socket_recv (sock=0x88c3118, buf=0x88c9460 "",
len=0xbf91cf04) at sendrecv.c:87
#5 0x00116c57 in socket_bucket_read (a=0x88c5460, str=0xbf91cf08,
len=0xbf91cf04, block=APR_BLOCK_READ) at apr_buckets_socket.c:36
#6 0x00116689 in apr_brigade_split_line (bbOut=0x88c8110, bbIn=0x88c35a0,
block=APR_BLOCK_READ, maxbytes=8192) at apr_brigade.c:289
#7 0x08098085 in core_input_filter (f=0x88c3568, b=0x88c8110,
mode=AP_MODE_GETLINE, block=APR_BLOCK_READ, readbytes=0) at core.c:3802
#8 0x08092ccb in ap_rgetline_core (s=0x88c7498, n=8192, read=0xbf91d008,
r=0x88c7480, fold=0, bb=0x88c8110) at protocol.c:230
#9 0x080935df in ap_read_request (conn=0x88c31f0) at protocol.c:586
#10 0x0806b06d in ap_process_http_connection (c=0x88c31f0) at http_core.c:246
#11 0x0808ddf9 in ap_run_process_connection (c=0x88c31f0) at connection.c:43
#12 0x0808114a in child_main (child_num_arg=<value optimized out>)
at prefork.c:610
#13 0x0808138a in make_child (s=0x870f848, slot=0) at prefork.c:650
#14 0x08081494 in startup_children (number_to_start=5) at prefork.c:722
---Type <return> to continue, or q <return> to quit---
【 在 atppp (Big Mouse) 的大作中提到: 】
: 调试httpd
: 往前翻,有步骤
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
又重新make clean 后编译了一遍,得到了如下结果:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208879424 (LWP 3704)]
0x00651dd8 in bbstime (t=0xbfd08144) at stuff.c:647
647 *t = publicshm->nowtime;
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) bt
#0 0x00651dd8 in bbstime (t=0xbfd08144) at stuff.c:647
#1 0x0064cfd7 in getheader (header=0xbfd08190 "\020穏\b����\001",
from=0x681d44 "system", prio=3, session=0x6a05a0) at log.c:59
#2 0x0064d0d5 in writelog (pconf=0x6a03a0, from=0x681d44 "system", prio=3,
buf=0xbfd08208 "shm shmat 2 attach error! key = e74.", session=0x6a05a0)
at log.c:75
#3 0x0064d673 in bbslog (from=0x681d44 "system",
fmt=0x681d24 "shm %s attach error! key = %x.") at log.c:180
#4 0x00650ca8 in attach_err (shmkey=3700, name=0x681d6a "shmat 2")
at stuff.c:215
#5 0x00650e9b in attach_shm1 (shmstr=0x0, defaultkey=3700, shmsize=1024,
iscreate=0xbfd084a0, readonly=0, shmaddr=0xb7f2d000) at stuff.c:261
#6 0x00651d24 in setpublicshmreadonly (readonly=0) at stuff.c:631
#7 0x006b3b7b in www_new_guest_entry (fromhostn=0xbfd09a98, idx=0xbfd09a9c)
at bbslib.c:154
#8 0x006b502f in www_user_login (user=0x0, useridx=0, kick_multi=0,
fromhost=0x6a05b0 "218.249.60.66", fullfrom=0x6a05b0 "218.249.60.66",
ppuinfo=0xbfd0a188, putmpent=0xbfd0a184) at bbslib.c:584
#9 0x00635261 in zif_bbs_wwwlogin (ht=1, return_value=0x871d248,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at phpbbs.session.c:301
#10 0x004894d8 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfd0b630)
at /home/suiyi/webworks/php-5.2.3/Zend/zend_vm_execute.h:200
---Type <return> to continue, or q <return> to quit---q
【 在 Toneyisnow (Toney) 的大作中提到: 】
: 看到你的帖子了,使用gdb调试的结果如下:
: 访问 http://MYSITE/wForum/index.php
: 得到如下结果:
: ...................
转信站: BYR!news.byr.edu.cn!news.newytht.net!news.newsmth.net!NEWSMTH
恩,已经解决了。
原来是那个ipc共享内存的问题,似乎clearipc还是不能完全清理干净,之前使用错误的bbs uid编译过,后来再编译后就出现了段错误。重启了一下机器,问题就解决了
谢谢各位
【 在 Toneyisnow (Toney) 的大作中提到: 】
: 又重新make clean 后编译了一遍,得到了如下结果:
: Program received signal SIGSEGV, Segmentation fault.
: [Switching to Thread -1208879424 (LWP 3704)]
: ...................