作者deduce (耍哈哈)
看板PttCurrent
标题[问题] 断线
时间Wed Aug 11 17:54:45 2004
我的bbs只要编辑文章就很容易发生断线的情形
有时候是在打完标题、有时候一进去编辑画面刚要换行就断、有
时候是要存档的时候才断
我不太会用gdb..参考了之前的文章
在断线後看到ps aux果然出现一个debug me的process
我就gdb然後attach
然後用where跟info program..(这都是参考之前文章的..有错误请指教@@")
(gdb) where
#0 0x400e5de1 in nanosleep () from /lib/libc.so.6
#1 0x400e5d78 in sleep () from /lib/libc.so.6
#2 0x0807adae in abort_bbs_debug ()
#3 0x400b3074 in malloc () from /lib/libc.so.6
#4 0x400a6681 in fopen () from /lib/libc.so.6
#5 0x08068ac4 in write_file ()
#6 0x472f7364 in ?? ()
Cannot access memory at address 0x72616f62
(gdb) info program
Using the running image of attached process 24467.
Program stopped at 0x400e5de1.
It stopped with signal SIGSTOP, Stopped (signal).
不知道我贴的这些能不能有助於除错?
我的作业系统是debian.
感觉起来问题似乎是出在/lib/libc.so.6
请各位指教,感谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.139.87.218