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"><<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>></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 "thread apply all bt" 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>
> Hi,<br>
><br>
> I am experiencing some hanging when fs is executing<br>
> switch_scheduler_add_task.<br>
><br>
> switch_scheduler_add_task(switch_epoch_time_now(NULL) ,<br>
> data_flush_callback, "data_flush","core",0,NULL,SSHF_NONE|<br>
> SSHF_NO_DEL);<br>
><br>
> I place switch_scheduler_add_task in my SWITCH_MODULE_LOAD_FUNCTION<br>
> and sometimes, hanging occurs on that particular line. My<br>
> data_flush_callback is as follows. I debug the module and it does<br>
> not even enter data_flush_callback. It is hanging at<br>
> switch_scheduler_add_task().<br>
><br>
> SWITCH_STANDARD_SCHED_FUNC(data_flush_callback) {<br>
><br>
> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,<br>
> "starting to flush cdr record...\n");<br>
><br>
> int last_sequence = flush_data_to_csv();<br>
> if (last_sequence > -1 ) {<br>
><br>
> update_last_seq(last_sequence);<br>
> }<br>
> task->runtime = switch_epoch_time_now(NULL) + globals.cycle_time;<br>
><br>
> }<br>
><br>
> Does anyone know why?<br>
><br>
> Thanks,<br>
> Mark<br>
><br>
</div></div>> _______________________________________________<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>
<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>