Saying that we are ignoring an issue, considering the workload we have, is not the best way to open a conversation.<br>If you are willing to work on this issue and volunteer your time and efforts to get a more long term solution. please contact us.<br>
<br><br><div class="gmail_quote">On Sun, Feb 15, 2009 at 11:30 AM, Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</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;">
Hi Ron,<br>
<br>
don't know if it's always like that, but I can confirm I had to use<br>
joinable thread for Skypiax to have a reliable "killability" without<br>
crashes on Windows (on the Debug build, not cheked on Release).<br>
<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
=========================================<br>
<a href="http://www.celliax.org" target="_blank">www.celliax.org</a><br>
via Pierlombardo 9, 20135 Milano<br>
Italy<br>
gmaruzz at celliax dot org<br>
Cell : +39-347-2665618<br>
Fax : +39-02-87390039<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
On Sun, Feb 15, 2009 at 3:49 PM, Ron Avriel <<a href="mailto:ravriel_1@yahoo.com">ravriel_1@yahoo.com</a>> wrote:<br>
> Hi,<br>
><br>
> Under Windows, FreeSWITCH consistently crashes with all default install<br>
> setting after issuing the 'shutdown'<br>
> command from console immediately after startup, without a single call<br>
> handled.<br>
> Note that on my servers, this only happens in 'Release' version, not in<br>
> 'Debug'.<br>
><br>
> The problem is due to "problematic" Windows thread handling.<br>
> I noticed that all FS threads are 'detachable' and not 'joinable'. When an<br>
> application with active detached threads terminates, a race condition can<br>
> lead to the application crash, as shown in the sample application<br>
> at <a href="http://pastebin.freeswitch.org/7225" target="_blank">http://pastebin.freeswitch.org/7225</a> .<br>
><br>
> This is exactly what causes FS to crash as a result of the mod_event_socket<br>
> detached runtime thread.<br>
><br>
> A temporary workaround is to change in switch_loadable_module_exec() the<br>
> call to<br>
> switch_yield(1000000) with switch_thread_exit(thread, 0).<br>
><br>
> In my case it solved the crash, but theoretically it does not always solve<br>
> the problem, because there is no<br>
> guarantee that it will get called before the main thread reaches its<br>
> termination code.<br>
><br>
> I think the only safe solution is to use 'joinable' threads. Is there a good<br>
> reason they're not used?<br>
><br>
> Note – this problem was reported to jira about a month ago<br>
> <a href="http://jira.freeswitch.org/browse/MODEVENT-37" target="_blank">http://jira.freeswitch.org/browse/MODEVENT-37</a> but it seems it was ignored.<br>
><br>
> Thanks,<br>
> Ron<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Freeswitch-dev mailing list<br>
> <a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>