这几行语在phpbbs.post.c中吧?
if (clen > 0) { /*有这个判断*/
f_append(fp, unix_string(content));
}
发文的过程是正常完成了的,发完后点击刚发的帖出现如下GDB信息。
gdb信息如下:
# gdb /usr/local/apache/bin/httpd
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run -X -f /usr/local/apache/conf/httpd.conf
Starting program: /usr/local/apache/bin/httpd -X -f /usr/local/apache/conf/httpd.conf
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
^H
Program received signal SIGSEGV, Segmentation fault.
0xfdfb8398 in checkattach (buf=0xfe0200cf "", size=34796, len=0xffbeb45c, attachptr=0xffbeb86c) at article.c:1921
1921 *len = ntohl(*(int *) buf);
(gdb) bt
#0 0xfdfb8398 in checkattach (buf=0xfe0200cf "", size=34796, len=0xffbeb45c, attachptr=0xffbeb86c) at article.c:1921
#1 0xfe348cc0 in zif_bbs2_readfile (ht=-33423153, return_value=0x87ec, this_ptr=0xffbeb45c, return_value_used=-4278164)
at phpbbs.file.c:110
#2 0xfe73583c in execute (op_array=0x1) at /export/home0/php-4.3.4/Zend/zend_execute.c:1616
(gdb)
【 在 atppp (Big Mouse) 的大作中提到: 】
:
http://www.newsmth.net/bbscon.php?bid=196&id=55683--
修改:BTang3 FROM 211.93.167.*
FROM 211.93.167.*