Hi Mathieu,<br><br>Thanks for your help.<br><br>How can I intentionally crash a hanging freeswitch and obtain the core file to run gdb?<br><br>Thanks,<br>Mark<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 11:59 PM, Mathieu Rene <span dir="ltr">&lt;<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Means another task is hanging, do a &quot;thread apply all bt&quot; in gdb and<br>
look for scheduler tasks.<br>
<br>
Mathieu Rene<br>
Avant-Garde Solutions Inc<br>
Office: + 1 (514) 664-1044 x100<br>
Cell: +1 (514) 664-1044 x200<br>
<a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a><br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 21-Aug-09, at 11:41 AM, mark morreny wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am experiencing some hanging when fs is executing<br>
&gt; switch_scheduler_add_task.<br>
&gt;<br>
&gt; switch_scheduler_add_task(switch_epoch_time_now(NULL) ,<br>
&gt; data_flush_callback, &quot;data_flush&quot;,&quot;core&quot;,0,NULL,SSHF_NONE|<br>
&gt; SSHF_NO_DEL);<br>
&gt;<br>
&gt; I place switch_scheduler_add_task in my SWITCH_MODULE_LOAD_FUNCTION<br>
&gt; and sometimes, hanging occurs on that particular line.  My<br>
&gt; data_flush_callback is as follows.  I debug the module and it does<br>
&gt; not even enter data_flush_callback.  It is hanging at<br>
&gt; switch_scheduler_add_task().<br>
&gt;<br>
&gt; SWITCH_STANDARD_SCHED_FUNC(data_flush_callback) {<br>
&gt;<br>
&gt;     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,<br>
&gt; &quot;starting to flush cdr record...\n&quot;);<br>
&gt;<br>
&gt;     int last_sequence = flush_data_to_csv();<br>
&gt;     if (last_sequence &gt; -1 ) {<br>
&gt;<br>
&gt;         update_last_seq(last_sequence);<br>
&gt;     }<br>
&gt;     task-&gt;runtime = switch_epoch_time_now(NULL) + globals.cycle_time;<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; Does anyone know why?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Mark<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>