[Asterisk-Users] Asterisk freezing HELP

TeleSIP ricvil at telesip.net
Mon Dec 8 20:01:28 MST 2003


UPDATE:
We were able to consistently reproduce this problem using a Grandstream
phone with buggy firmware.

Mark Spencer logged into our Asterisk and identified the issue.  He said it
was a typo in an ast_mutex_lock.  After fixing it, the problem seems to have
been solved.  We have now repeated about 100 calls and no lockup (with the
buggy phone we were able to lock it up in under 7 calls).

CVS should now reflect his fix.

And by the way, do not use firmware > 1.0.4.18 on GS phones.  It contains a
nasty SIP Port bug.

Regards,
Andres.

----- Original Message ----- 
From: "TeleSIP" <ricvil at telesip.net>
To: <asterisk-users at lists.digium.com>
Sent: Monday, December 08, 2003 2:30 PM
Subject: Re: [Asterisk-Users] Asterisk freezing HELP


> Hi TC,
>
> I followed your instructions.  Today I managed to lock up one of our
> Asterisk boxes with an incoming SIP call.
>
> It locks up right after seeing I this line:
> Dec  8 13:48:34 WARNING[4101]: File chan_sip.c, Line 456 (retrans_pkt):
> Maximum retries exceeded on call fc19b3c44627f4d6 at 192.168.0.160 for seqno
> 1058 (Response)
>
> I was able to follow down to STEP #7 of your Deadlock debug Instructions,
> but the file in step #8 is not present.
>
> In any case here is the relevant thread that is locked:
> Thread 6 (Thread 4101 (LWP 8372)):
> #0  0x420292e5 in sigsuspend () from /lib/i686/libc.so.6
> #1  0x40039679 in __pthread_wait_for_restart_signal () from
> /lib/i686/libpthread.so.0
> #2  0x4003b4b9 in __pthread_alt_lock () from /lib/i686/libpthread.so.0
> #3  0x4003816e in pthread_mutex_lock () from /lib/i686/libpthread.so.0
> #4  0x41be8235 in retrans_pkt (data=0x8138e50) at
> ../include/asterisk/lock.h:89
> #5  0x08051e05 in ast_sched_runq (con=0x80eeac8) at sched.c:355
> #6  0x41bfba86 in do_monitor (data=0x0) at chan_sip.c:5409
> #7  0x40036fef in pthread_start_thread () from /lib/i686/libpthread.so.0
>
> (gdb) thread 6
> [Switching to thread 6 (Thread 4101 (LWP 8372))]#0  0x420292e5 in
sigsuspend
> () from /lib/i686/libc.so.6
> (gdb) frame 2
> #2  0x4003b4b9 in __pthread_alt_lock () from /lib/i686/libpthread.so.0
> (gdb)
>
> Is this enough to open a ticket in the BUG tracker?
>
> Is there anything else I should look for?  I have not restared Asterisk
yet.
>
> Thanks,
> Andres.
>
>
> ----- Original Message ----- 
> From: "TC" <trclark at shaw.ca>
> To: <asterisk-users at lists.digium.com>
> Sent: Friday, December 05, 2003 4:47 PM
> Subject: Re: [Asterisk-Users] Asterisk freezing HELP
>
>
> > >
> > > The only suspicious thing is that they always seem to freeze when the
> SIP
> > > channel is right around this line:
> > >                 if (pkt->owner->owner) {
> > >                         /* XXX Potential deadlocK?? XXX */
> > >                         ast_queue_hangup(pkt->owner->owner, 0);
> > >                         ast_mutex_unlock(&pkt->owner->owner->lock);
> > Would you be able to follow the How to Deug a dead lock next time
> > & post the info to bugs.digium.com ??
> >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list