<div>
<style type="text/css">
td a, td a:link, td a:visited, td a:hover, td a:active {background:transparent;font-family: Arial, sans-serif;text-decoration:underline;}
td a:link {color:#369;}
td a:visited {color:#444;}
td a:hover, td a:active {color:#036;}
td a:hover {text-decoration:none;}
</style>
<font size="2" color="black" face="Arial, Helvetica, sans-serif" style="font-family: Arial, sans-serif;font-size: 13px;color:#000">

    <table align="center" border="0" cellpadding="5" cellspacing="0" width="98%">
        <tr>
            <td style="vertical-align:top">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#f2f2f2;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;color:#000;">
            <tr>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;padding:5px 10px">
                    <a href="http://bamboo.asterisk.org/browse/ASTTRUNK-CENTOS55-I386/log" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#000">ASTTRUNK-CENTOS55-I386-150</a>
                    <span style="font-family: Arial, sans-serif; font-size: 14px;"> has been queued, but there's no agent capable of building it.</span>
                </td>
            </tr>
            </table>
            <br>

  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td width="60%" style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;padding:5px 10px">
                <a href="http://bamboo.asterisk.org/browse/ASTTRUNK-CENTOS55-I386/log" style="text-decoration: none; font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036" >Code Changes</a>
            </td>
            <td width="40%" style="font-family: Arial, sans-serif;text-align:right;font-size:13px;color:#036;padding:5px 10px">
            </td>
        </tr>
   </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/jpeeler" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       jpeeler</a><br>
                    Merged revisions 301790 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/branches/1.8">https://origsvn.digium.com/svn/asterisk/branches/1.8</a><br/>
<br/>
........<br/>
&nbsp;&nbsp;r301790 | jpeeler | 2011-01-14 11:32:52 -0600 (Fri, 14 Jan 2011) | 42 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Resolve deadlock involving REFER.<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Two fixes:<br/>
&nbsp;&nbsp;1) One must always have the private unlocked before calling<br/>
&nbsp;&nbsp;pbx_builtin_setvar_helper to not invalidate locking order since it locks the<br/>
&nbsp;&nbsp;channel.<br/>
&nbsp;&nbsp;2) Unlock the channel before calling pbx_find_extension, which starts and stops<br/>
&nbsp;&nbsp;autoservice during the lookup. The problem scenario as illustrated by the<br/>
&nbsp;&nbsp;reporter:<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Thread: do_monitor<br/>
&nbsp;&nbsp;-----------------------<br/>
&nbsp;&nbsp;handle_request_do<br/>
&nbsp;&nbsp;&nbsp;handle_incoming<br/>
&nbsp;&nbsp;&nbsp;&nbsp;handle_request_refer<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ast_parking_ext_valid<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pbx_find_extension<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ast_autoservice_stop<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while (chan_list_state == as_chan_list_state) { usleep(1000); }<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Thread: autoservice_run<br/>
&nbsp;&nbsp;-----------------------<br/>
&nbsp;&nbsp;autoservice_run<br/>
&nbsp;&nbsp;&nbsp;chan = ast_waitfor_n<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ast_waitfor_nandfds<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ast_waitfor_nandfds_classic / simple / complex (depending on your system)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ast_channel_lock(c[x]);<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;handle_request_do and schedule_process_request_queue locks the owner<br/>
&nbsp;&nbsp;if it exists. The autoservice thread is waiting for the channel lock, which<br/>
&nbsp;&nbsp;wasn't ever released since the do_monitor thread was waiting for autoservice<br/>
&nbsp;&nbsp;operations to complete. Solved by unlocking the channel but keeping a reference<br/>
&nbsp;&nbsp;to guarantee safety.<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;(closes issue #18403)<br/>
&nbsp;&nbsp;Reported by: jthurman<br/>
&nbsp;&nbsp;Patches: <br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20110103-blind_deadlock.diff uploaded by jthurman (license 614)<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;issue18403.patch uploaded by jpeeler (license 325)<br/>
&nbsp;&nbsp;Tested by: jthurman<br/>
........<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (301791)
                </td></tr>
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/lathama" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       lathama</a><br>
                    Add relationships to function documentation.<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (301846)
                </td></tr>
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/bbryant" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       bbryant</a><br>
                    Merged revisions 301845 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/branches/1.8">https://origsvn.digium.com/svn/asterisk/branches/1.8</a><br/>
<br/>
........<br/>
&nbsp;&nbsp;r301845 | bbryant | 2011-01-14 14:35:23 -0500 (Fri, 14 Jan 2011) | 9 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Fix for a consistent MulticastRTP channel driver crash due to use of unitilized<br/>
&nbsp;&nbsp;data.<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;(closes issue #18290)<br/>
&nbsp;&nbsp;(closes issue #18602)<br/>
&nbsp;&nbsp;Reported by: voipgate, wybecom<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Review: <a href="https://reviewboard.asterisk.org/r/1076/">https://reviewboard.asterisk.org/r/1076/</a><br/>
........<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (301847)
                </td></tr>
    <tr><td colspan="3">
        <br/><a href="http://bamboo.asterisk.org/browse/ASTTRUNK-CENTOS55-I386/log" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">5 more changes...</a>
    </td></tr>
</table><br>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td colspan="2" align="center" style="font-family: Arial, sans-serif;text-align:center;font-size:11px;font-weight:bold;color:#999;vertical-align:top;padding:20px">
        Email generated by <a href="http://bamboo.asterisk.org" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">Atlassian Bamboo</a> - if you wish to stop receiving these emails edit your  <a href="http://bamboo.asterisk.org/profile/userNotifications.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">user profile</a> or <a href="http://bamboo.asterisk.org/viewAdministrators.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">notify your administrator</a>
    </td>
    </tr>
</table>

            </td>
            <td width="150" style="vertical-align:top">
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;vertical-align:top;padding:5px 10px">
                Actions
            </td>
        </tr>
    </table>
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#f5f9fc;border-bottom:1px solid #bbd0e5;">
        <tr>
            <td style="font-family: Ariel, sans-serif; font-size: 13px; color:#036;vertical-align:top;padding:5px 10px;line-height:1.7">
    <a href="http://bamboo.asterisk.org/browse/ASTTRUNK-CENTOS55-I386/log" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Online</a>
    <br>
    <a href="http://bamboo.asterisk.org/build/admin/stopPlan.action?planKey=ASTTRUNK-CENTOS55-I386" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Stop Build</a>
    <br>
            </td>
        </tr>
    </table>
            </td>
        <tr>
    </table>
</font>
</div>