[Home]

Summary:ASTERISK-15898: Using pattern match in a hint causes deadlock under described conditions
Reporter:Shane Brath (sbrath)Labels:
Date Opened:2010-03-31 12:31:15Date Closed:2010-08-13 15:27:47
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bt-of-lockup.txt
( 1) core_show_locks.txt
Description:When using the following hint, most "dialplan reload" commands will lock the system up. Once in deadlock, existing sip conversations will continue, new sip connections will fail. sip show peers will look normal.
exten => _4040XXXX,hint,Custom:phone${EXTEN:4}

I have about 25 phones subscribing to this hint, and creating the "virtual hints", on initial load all is well, reloads lock the system.

I have included attachments with core show locks and a bt trace of a running thread to show where the deadlock is occurring.

Comments:By: Shane Brath (sbrath) 2010-03-31 12:44:35

Other notes: Server is Ubuntu 8.04 LTS, Processor is AMD 64 3800+ but linux is a 32 bit kernel with 2 GIG ram.
Server has 2 T1 cards from Digium with 1 connected to a PRI and the other to a Tie-Line to a Merlin Magix.
Asterisk version 2.6.2.6 is compiled from source
Also have app_swift and addons running.
Phones are Grandstream 2010/2000/2020 and Windows softphone ZoIPer.

By: Tilghman Lesher (tilghman) 2010-06-06 23:03:58

That doesn't actually tell me where the lock is occurring.  While it's clear that two threads are waiting for the lock, it does not appear as though the lock is actually held.  Have you perhaps truncated the 'core show locks' output?

By: Shane Brath (sbrath) 2010-06-08 15:27:58

I have checked my files, and they were not truncated when uploaded. Do you want a different test? This is actually quite easy to replicate.

By: Tilghman Lesher (tilghman) 2010-07-29 16:13:03

Would you mind trying the fix from ASTERISK-16365 ?  I suspect that they are the same issue and the fix I uploaded there will fix the issue here, as well.

By: Tilghman Lesher (tilghman) 2010-08-05 02:51:49

Fix from related issue has been committed.

Your feedback would be greatly appreciated to verify if this fix closes this issue, as well.

By: Tilghman Lesher (tilghman) 2010-08-10 14:56:02

sbrath: ping.  We need your feedback here.

By: Tilghman Lesher (tilghman) 2010-08-13 15:27:45

No response from reporter.  Assuming patch fixed the problem.