[Asterisk-Users] Avoided deadlock

mattf mattf at vicimarketing.com
Wed Dec 1 08:19:51 MST 2004


In my experience with ast_channel_walk_locked every time this WARNING came
up all audio streams on my asterisk server stopped for between 1-10 seconds.
In my case, this WARNING was the only indication of something going wrong,
there was no other output anywhere that described something going wrong at
the times when the problem would occur. I know that this is not technically
an ERROR, but it is usually an indication of a serious problem that is very
hard to diagnose because it can be caused by many different things, none of
which is easily decipherable from the assorted WARNINGS, ERRORS or DEBUG
messages given.

Is there any way to find a more descriptive message of what would be causing
ast_channel_walk_locked WARNINGS on a particular machine?

MATT---


-----Original Message-----
From: Brian West [mailto:brian at bkw.org]
Sent: Wednesday, December 01, 2004 9:59 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Avoided deadlock


Repeat after me... WARNING != ERROR.  This is just letting you know that it
walked the channel list and did avoid a dead lock by not trying to grab a
lock on a channel that's already locked.

            if (ast_mutex_trylock(&l->lock)) {
                if (retries < 10)
                    ast_log(LOG_DEBUG, "Avoiding initial deadlock for
'%s'\n", l->name);
                else
                    ast_log(LOG_WARNING, "Avoided initial deadlock for '%s',
%d retries!\n", l->name, retries);


Read the code it tells you... channel.c 

bkw

> I'd suggest posting a bug if you haven't already and if you have purchased
> any Digium products I would recommend calling them as well. The
> ast_channel_walk_locked error is a rare and hard to diagnose problem and
> the
> bug trackers and Digium would be the best people to help you.


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list