Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2006 00:03:37 +0200 (EET)
From:      Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
To:        Ganbold <ganbold@micom.mng.net>
Cc:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: application hangs in STABLE from time to time
Message-ID:  <20061202235755.A51678@atlantis.atlantis.dp.ua>
In-Reply-To: <456FC4C6.30201@micom.mng.net>
References:  <456652AF.7070808@micom.mng.net> <20061124030100.GA92039@xor.obsecurity.org> <456FB769.5070703@micom.mng.net> <20061201051343.GA97010@xor.obsecurity.org> <456FC4C6.30201@micom.mng.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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:

dmitry@homelynx$ 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:

root@homelynx# 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:  dmitry@atlantis.dp.ua
nic-hdl: LYNX-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061202235755.A51678>