- 主题:gdb bbsd error
[root@localhost root]# cd /home/bbs/bin
[root@localhost bin]# gdb bbsd
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
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 "i386-redhat-linux-gnu"...
(gdb) r -d -p 100
Starting program: /home/bbs/bin/bbsd -d -p 100
[New Thread 1074050944 (LWP 24278)]
~c
Couldn't get registers: 不允许的操作.
~c是ctrl+c吗?
论坛的症状每次陆发帖第一篇能发,后再发就提示“发帖过于频繁,休息几秒”之类的
前几天运行得好好的,昨天刚出的问题,bbs的源码没改过,除了站点定制文件
系统是rh9.0 linux
kbsbbs2.0
--
修改:Kisson FROM 211.151.89.*
FROM 211.151.89.*
我gdb的话都是attache到某个进程上,ms置顶acore的帖子也是那么写的吧...
【 在 Kisson (歪歪鼻子) 的大作中提到: 】
: [root@localhost root]# cd /home/bbs/bin
: [root@localhost bin]# gdb bbsd
: GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
: ...................
--
FROM 221.192.237.*
我看错了,acore不是那么写的,不过我一直那么操作,呵呵
【 在 foxban (长白发了....) 的大作中提到: 】
: 我gdb的话都是attache到某个进程上,ms置顶acore的帖子也是那么写的吧...
--
FROM 221.192.237.*
Couldn't get registers: 不允许的操作.
这句话什么意思呢?
run了以后,到另一个term下无法连接gdb的bbsd啊
【 在 Kisson (歪歪鼻子) 的大作中提到: 】
: [root@localhost root]# cd /home/bbs/bin
: [root@localhost bin]# gdb bbsd
: GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
: ...................
--
FROM 211.151.89.*
(gdb) r Starting program: /sbin/ifenslave Couldn't get registers: Operation not permitted. (gdb) 看吧,我们没有足够的权限调试这个有问题的程序.
google出来的结果...
你按我的步骤试试...
先正常启动bbs,然后登陆一个帐号
ps aux|grep bbsd找到那个帐号的进程号
root运行gdb bbsd,然后attache刚才的进程号
设置断点,开始调试
【 在 Kisson (歪歪鼻子) 的大作中提到: 】
: Couldn't get registers: 不允许的操作.
: 这句话什么意思呢?
: run了以后,到另一个term下无法连接gdb的bbsd啊
: ...................
--
FROM 221.192.237.*
[root@localhost bin]# ps aux|grep bbsd
bbs 23978 0.0 0.1 2736 484 ? S 15:41 0:00 [bbsd]
bbs 24278 0.0 0.2 2688 524 pts/3 S 16:03 0:00 [bbsd]
bbs 24407 0.0 2.5 14852 6272 ? S 16:20 0:00 [bbsd]
root 24412 0.0 0.2 4812 636 pts/3 S 16:21 0:00 grep bbsd
[root@localhost bin]# gdb bbsd
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
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 "i386-redhat-linux-gnu"...
(gdb) attach 24407
Attaching to program: /home/bbs/bin/bbsd, process 24407
Couldn't get registers: 不允许的操作.
【 在 foxban (长白发了....) 的大作中提到: 】
: (gdb) r Starting program: /sbin/ifenslave Couldn't get registers: Operation not permitted. (gdb) 看吧,我们没有足够的权限调试这个有问题的程序.
: google出来的结果...
: 你按我的步骤试试...
: ...................
--
FROM 211.151.89.*
弱问一个
如果我直接下载dev上的文件不做任何修改,是不是一般不会出现这些问题?包括站点定制文件
【 在 foxban (长白发了....) 的大作中提到: 】
: Orz...-_-
--
FROM 211.151.89.*
不更改站点定制文件是不行的,至少得有gid/uid啊...
你不是没更改源码么
【 在 Kisson (ouldn't get registers: \x{4E0D}\x{5141}) 的大作中提到: 】
: 弱问一个
: 如果我直接下载dev上的文件不做任何修改,是不是一般不会出现这些问题?包括站点定制文件
--
FROM 221.192.237.*
站点定制文件改了
uid
gid
和系统的一致了
【 在 foxban (长白发了....) 的大作中提到: 】
: 不更改站点定制文件是不行的,至少得有gid/uid啊...
: 你不是没更改源码么
--
FROM 211.151.89.*
#make install
libtool: install: warning: relinking `libphpbbslib.la'
【 在 Kisson (ouldn't get registers: \x{4E0D}\x{5141}) 的大作中提到: 】
: 站点定制文件改了
: uid
: gid
: ...................
--
FROM 211.151.89.*