[問題] 一發文就會斷線

作者: herman602 (奸商)   2009-06-25 14:10:36
安裝完目前最新版的PttBBS
狀況是只要一發文或回覆文章就會出現錯誤並斷線
但是那篇文章會存進去
卻不會顯示在文章列表
刪除文章的時候之前發的就都會跑出來
文章也不會出現在ALLPOST
不知道是什麼問題@@
以下是debug資料
root@[/root] # gdb -p 821 /home/bbs/bin/mbbsd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...
Attaching to program: /usr/home/bbs/bin/mbbsd, process 1002
Reading symbols from /usr/local/lib/libhz.so.0...done.
Loaded symbols for /usr/local/lib/libhz.so.0
Reading symbols from /lib/libkvm.so.4...done.
Loaded symbols for /lib/libkvm.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
0x2833d80f in nanosleep () from /lib/libc.so.7
(gdb) where
#0 0x2833d80f in nanosleep () from /lib/libc.so.7
#1 0x2830b62a in sleep () from /lib/libc.so.7
#2 0x0808c242 in abort_bbs_debug (sig=11) at mbbsd.c:354
#3 <signal handler called>
#4 0x2834cb80 in open () from /lib/libc.so.7
#5 0x00000004 in ?? ()
#6 0x2e323931 in ?? ()
#7 0x00000000 in ?? ()
#8 0x080eca47 in __func__.7173 ()
#9 0x080f0032 in real_outbuf ()
#10 0x00000080 in ?? ()
#11 0x280f27fc in _rtld_error () from /libexec/ld-elf.so.1
#12 0x2835004f in vfprintf () from /lib/libc.so.7
#13 0x2833eb2e in fprintf () from /lib/libc.so.7
#14 0x0806329a in do_general (isbid=0) at bbs.c:1173
#15 0x080637f3 in do_post () at bbs.c:1297
#16 0x08063a8b in do_generalboardreply (fhdr=0x28417080) at bbs.c:1363
#17 0x08063cdd in do_reply (fhdr=0x28417080) at bbs.c:1417
#18 0x08065428 in read_post (ent=2, fhdr=0x28417080,
direct=0x80f2620 "boards/S/SYSOP/.DIR") at bbs.c:2056
#19 0x08070828 in i_read_key (rcmdlist=0x80d4000, locmem=0x80f1b7c, bid=1,
bottom_line=2) at read.c:1072
#20 0x0807114d in i_read (cmdmode=13, direct=0x80f2620 "boards/S/SYSOP/.DIR",
dotitle=0x80610a0 <readtitle>, doentry=0x80611f0 <readdoent>,
rcmdlist=0x80d4000, bidcache=1) at read.c:1341
#21 0x0806a439 in Read () at bbs.c:4092
#22 0x080757f6 in choose_board (newflag=0) at board.c:1712
#23 0x080759d1 in choose_board (newflag=0) at board.c:1750
#24 0x080766b8 in Class () at board.c:2057
#25 0x08057374 in domenu (cmdmode=1, cmdtitle=0x80cf530 "主功\能表", cmd=259,
cmdtable=0x80cf4a0) at menu.c:415
#26 0x080579ff in main_menu () at menu.c:726
#27 0x0808f602 in main (argc=15, argv=0xbfbfee48, envp=0xbfbfee88)
at mbbsd.c:1884
作者: herman602 (奸商)   2009-06-28 21:39:00
環境是 Freebsd 7.1 Release
作者: smartboy (小光光)   2009-07-11 12:24:00
你的 stack 看起來是爛的, 重 build GDB=1 再看吧

Links booklink

Contact Us: admin [ a t ] ucptt.com