<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Mark,</p>
<p><br>
</p>
<p>It does indeed, the patch has just been committed so I will check out the latest from git.</p>
<p><br>
</p>
<p>Thank you for your swift reply.</p>
<p><br>
</p>
<p>Kind regards,</p>
<p><br>
</p>
<p>Ross</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> asterisk-dev-bounces@lists.digium.com <asterisk-dev-bounces@lists.digium.com> on behalf of Mark Michelson <mmichelson@digium.com><br>
<b>Sent:</b> 08 February 2017 17:55<br>
<b>To:</b> Asterisk Developers Mailing List<br>
<b>Subject:</b> Re: [asterisk-dev] Deadlock GIT 13</font>
<div> </div>
</div>
<div>
<div class="moz-cite-prefix">On 02/08/2017 11:26 AM, Ross Beer wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I'm getting a deadlock every so often with asterisk 13 GIT. There are a lot of low level locks:</p>
<p><br>
</p>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<div>#0 0x00007f64ca6f052d in nanosleep () from /lib64/libc.so.6</div>
<div>[Current thread is 1 (Thread 0x7f64cdcc9700 (LWP 20745))]</div>
<div>#0 0x00007f64ca6f052d in nanosleep () at /lib64/libc.so.6</div>
<div>#1 0x00007f64ca6f03c4 in sleep () at /lib64/libc.so.6</div>
<div>#2 0x00000000004fc844 in db_sync_thread (data=0x0) at db.c:980</div>
<div> __PRETTY_FUNCTION__ = "db_sync_thread"</div>
<div>#3 0x000000000060401e in dummy_start (data=0x1e04440) at utils.c:1235</div>
<div> __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -361566044794415684, 140733401961727, 140070926194432, 507904, 0, -361566044802804292, 302566635355346364}, __mask_was_saved = 0}}, __pad = {0x7f64cdcc8df0, 0x0, 0x0, 0x0}}</div>
<div> __cancel_routine = 0x452814 <ast_unregister_thread></div>
<div> __cancel_arg = 0x7f64cdcc9700</div>
<div> __not_first_call = 0</div>
<div> ret = 0x7f64cdcc8df0</div>
<div> a = {start_routine = 0x4fc765 <db_sync_thread>, data = 0x0, name = 0x1e055b0 "db_sync_thread started at [ 1022] db.c astdb_init()"}</div>
<div>#4 0x00007f64cb3ee61a in start_thread (arg=0x7f64cdcc9700) at pthread_create.c:334</div>
<div> __res = <optimized out></div>
<div> pd = 0x7f64cdcc9700</div>
<div> now = <optimized out></div>
<div> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140070926194432, 302565808931837372, 140733401961727, 140070926194432, 507904, 0, -361566044792318532, -361562863565433412}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
cleanup = 0x0, canceltype = 0}}}</div>
<div> not_first_call = <optimized out></div>
<div> pagesize_m1 = <optimized out></div>
<div> sp = <optimized out></div>
<div> freesize = <optimized out></div>
<div>#5 0x00007f64ca72a5fd in clone () at /lib64/libc.so.6</div>
</blockquote>
<br>
<p>Should an issue be created on Jira?</p>
<p><br>
</p>
<p>Regards,</p>
<p><br>
</p>
<p>Ross</p>
</div>
</blockquote>
<br>
Hi Ross,<br>
<br>
This may be the same issue that George discovered earlier today while doing some testing. If you apply the code change on this review
<a class="moz-txt-link-freetext" href="https://gerrit.asterisk.org/#/c/4902/" id="LPlnk336298" previewremoved="true">
https://gerrit.asterisk.org/#/c/4902/</a> , do you still see the issue?
<div id="LPBorder_GT_14865778075930.5749156908222404" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14865778075910.11077758612147437" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14865778075920.3568152902871893" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14865778075920.3544533368405858"></div>
<div id="LPTitle_14865778075920.8558372079330518" style="top: 0px; color: rgb(47, 144, 196); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14865778075920.2957097054970361" href="https://gerrit.asterisk.org/#/c/4902/" target="_blank" style="text-decoration: none;">Gerrit Code Review</a></div>
<div id="LPMetadata_14865778075930.4160950907717367" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
gerrit.asterisk.org</div>
<div id="LPDescription_14865778075930.11648321156310604" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
gerrit.asterisk.org runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
Mark Michelson<br>
</div>
</div>
</div>
</body>
</html>