Hello!
On Fri, 1 Dec 2006, Ganbold wrote:
this. Next time use the -o wchan argument to ps to find out what
state the process is blocked in.
Ok, Here it is:
573 ?? Is 0:00.02 /usr/sbin/inetd -wW -C 60
78721 ?? I 0:00.01 /usr/local/Radiator-3.15/hooks/PSA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
voiprad# ps -o wchan
WCHAN
ttyin
It's more convenient to use -O here:
[EMAIL PROTECTED] ps axO wchan
PID WCHAN TT STAT TIME COMMAND
0 - ?? WLs 0:00.00 [swapper]
1 wait ?? ILs 0:00.01 /sbin/init --
2 - ?? DL 0:00.58 [g_event]
3 - ?? DL 0:11.72 [g_up]
4 - ?? DL 0:18.63 [g_down]
5 crypto ?? DL 0:00.00 [crypto]
kgdb /dev/mem /boot/kernel/kernel.symbols
I tried with with kernel.debug without success:
voiprad# kgdb /dev/mem /usr/obj/usr/src/sys/VOIPRAD/kernel.debug
kgdb: bad namelist
Reverse the arguments:
[EMAIL PROTECTED] kgdb /boot/kernel.debug/kernel.debug /dev/mem
kgdb: kvm_nlist(_stopped_cpus):
kgdb: kvm_nlist(_stoppcbs):
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:
Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
...
(kgdb) info threads
111 Thread 100127 (PID=3196: kgdb) 0xc04aa6fb in sched_switch (
td=0xc6b31900, newtd=0xc35b2600, flags=1)
at /usr/RELENG_6/src/sys/kern/sched_4bsd.c:973
110 Thread 100100 (PID=2734: more) 0xc04aa6fb in sched_switch (
td=0xc4dd3d80, newtd=0xc35b2600, flags=1)
at /usr/RELENG_6/src/sys/kern/sched_4bsd.c:973
thanks,
Ganbold
Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail: [EMAIL PROTECTED]
nic-hdl: LYNX-RIPE
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"