[Asterisk-Users] Chan_Capi initial deadlock

Carl Sempla cas at accld.com
Thu Feb 3 09:32:06 MST 2005


On Thursday, 03 February, 2005 13:54 : Felix Deierlein
<mails.asterisk at epyron.de> wrote:

> I had applied the patch and it got much better. Now I only have
> problems every two days....
>
> eb  3 14:04:12 WARNING[23065]: channel.c:472 ast_channel_walk_locked:
> Avoided initial deadlock for 'CAPI[contr1/1429092]/279', 10 retries!
> Feb  3 14:04:12 WARNING[23065]: channel.c:472 ast_channel_walk_locked:
> Avoided initial deadlock for 'CAPI[contr1/1429092]/279', 10 retries!
> Feb  3 14:04:12 WARNING[23065]: channel.c:472 ast_channel_walk_locked:
> Avoided initial deadlock for 'CAPI[contr1/1429092]/279', 10 retries!
>
> Any idea?

When you have this message, attach gdb to asterisk and type :
thread apply all bt
in the list, select the lastest asterisk function, just before libc, and
type frame (this number).
Example :

(gdb) thread apply all bt

Thread 13 (Thread 19469 (LWP 3466)):
#0  0x4016bde1 in nanosleep () from /lib/libc.so.6
#1  0x40195e8e in usleep () from /lib/libc.so.6
#2  0x402af5f2 in capi_activehangup (c=0x40508ba8) at chan_capi.c:563
#3  0x402af7c7 in capi_hangup (c=0x40508ba8) at chan_capi.c:606
#4  0x0805945c in ast_hangup (chan=0x40508ba8) at channel.c:741
#5  0x08072b7f in ast_pbx_run (c=0x40508ba8) at pbx.c:1968
#6  0x08079036 in pbx_thread (data=0x40508ba8) at pbx.c:1980
#7  0x400200ba in pthread_start_thread () from /lib/libpthread.so.0

(gdb) frame 2
#2  0x402af5f2 in capi_activehangup (c=0x40508ba8) at chan_capi.c:563
563                 usleep(10000);


And past the results of these commands.

Good luck

-- 
Carl





More information about the asterisk-users mailing list