<div dir="ltr">Any news regarding this issue?<div><br></div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mickael Marrache</b> <span dir="ltr"><<a href="mailto:mickaelmarrache@gmail.com">mickaelmarrache@gmail.com</a>></span><br>Date: Mon, Jul 20, 2015 at 10:00 AM<br>Subject: Re: [OpenSIPS-Users] Segmentation fault when TM and DIALOG timer routines are not executed sequentially<br>To: Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>><br><br><br><div dir="ltr">Hi,<div><br></div><div>Sorry to reply late.</div><div><br></div><div><div>(gdb) print dlg->h_entry</div><div>$1 = 775173170</div><div>(gdb) print d_table->size</div><div>$2 = 4096</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Mickael</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 5:23 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Hi Mickael,<br>
<br>
Could print in frame 0 the </tt><tt>following:<br>
dlg->h_entry<br>
and<br>
d_table->size<br>
<br>
Best regards,<br>
</tt><span>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span><div><div><div>On 02.07.2015 16:52, Mickael Marrache
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'm running version 1.11.2.</div>
<div><br>
</div>
<div>Mickael</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jul 2, 2015 at 4:49 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Mickael,<br>
<br>
What OpenSIPS version are you using ?<br>
<br>
Best Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div>
<div>On 02.07.2015 13:25, Mickael Marrache wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>We currently have OpenSIPS crashes that look
to be caused by synchronization issues between
the TM and DIALOG modules.</div>
<div><br>
</div>
<div>We started to get these crashes after setting
the following modparam:</div>
<div><br>
</div>
<div>modparam("tm", "own_timer_proc", 2)</div>
<div><br>
</div>
<div>Note that we don't set the own_timer_proc
parameter for the DIALOG module, therefore it
uses the global timer process.</div>
<div><br>
</div>
<div>Do you have an idea what may cause the issue?</div>
<div><br>
</div>
<div>The backtrace extracted from the core file:</div>
<div><br>
</div>
<div>
<div>#0 0x00002b69aa157a28 in next_state_dlg
(dlg=0x2b69b1271408, event=1, dir=2,
old_state=0x7fff7e830358,
new_state=0x7fff7e83035c,
unref=0x7fff7e830354, is_replicated=0 '\0') at
dlg_hash.c:777</div>
<div>#1 0x00002b69aa14aafc in dlg_onreply
(t=0x0, type=<value optimized out>,
param=<value optimized out>) at
dlg_handlers.c:457</div>
<div>#2 0x00002b69aa14bc67 in
unreference_dialog_create
(dialog=0x2b69b1271408) at dlg_handlers.c:744</div>
<div>#3 0x00002b69a7fe2b59 in empty_tmcb_list
(head=0x2b69b837c948) at t_hooks.c:56</div>
<div>#4 0x00002b69a7fd057e in free_cell
(dead_cell=0x2b69b837c8d8) at h_table.c:140</div>
<div>#5 0x00002b69a7fe5e78 in delete_cell
(p_cell=0x2b69b837c8d8, unlock=1) at
timer.c:240</div>
<div>#6 0x00002b69a7fe69ac in timer_routine
(ticks=<value optimized out>,
set=<value optimized out>) at
timer.c:416</div>
<div>#7 0x00000000004babe2 in
start_timer_processes () at timer.c:384</div>
<div>#8 0x0000000000434711 in main_loop () at
main.c:1016</div>
<div>#9 0x00000000004386f5 in main
(argc=<value optimized out>,
argv=0x7fff7e830838) at main.c:1634</div>
</div>
<div><br>
</div>
<div>The seg fault happens in the next_state_dlg
function (line 777 - when trying to lock the
dialog entry):</div>
<div><br>
</div>
<div>
<div>(gdb) list</div>
<div>772 struct dlg_entry * d_entry;</div>
<div>773</div>
<div>774 d_entry =
&(d_table->entries[dlg->h_entry]);</div>
<div>775 *unref = 0;</div>
<div>776</div>
<div>777 dlg_lock(d_table, d_entry);</div>
<div>778</div>
<div>779 *old_state = dlg->state;</div>
<div>780</div>
<div>781 switch (event) {</div>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Mickael</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>
</div></div></div><br></div></div>