又重新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: 得到如下结果:
: ...................
--
FROM 218.249.60.*