Bug#617648: asterisk randomly hangs 100% CPU

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Mar 10 10:37:23 UTC 2011


Hi,

On Thu, Mar 10, 2011 at 11:28:07AM +0200, Nikolay Yatsyshyn wrote:

> Asterisk is hang randomly, taking 100% cpu on all cores. Asterisk is
> not respond on restart or kill -15, just kill -9 <pid>. Full log of
> asterisk is ending every time in different places on different
> applications. Cli is worked, established calls is ending normaly,
> new is waiting for something.

Asterisk is a multi-threaded application. 'top' shows by default
processes rather than threads. To break things down by threads, press
'H' (shift-h). Do you see a single thread taking 100% CPU? Or multiple
threads? A long-lived one? Many short-lived ones?

If a long-lived one, try attaching to it with strace (install that
package if it's not already installed):

  strace -p PID

where PID is the ID of the thread. Do you see it constantly running
something? Or just "waiting" (a 100% CPU loop in userspace)?

>
> For testing purposes hardware was changed, debian was reinstalled from
> scratch, saved just asterisk sip.conf, extensions.conf, queues.conf,
> features.conf.

Is the issue still reproducable?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir





More information about the Pkg-voip-maintainers mailing list