<div dir="ltr">Well apparently not : my dmesg doesn&#39;t show anything for this crash &quot;freeswitch: pthread_mutex_lock.c:62: __pthread_mutex_lock: Assertion `mutex-&gt;__data.__owner == 0&#39; failed.&quot; or for the fsctl crash tests that I ran.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 2:05 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think the coredump request was for this crash:<div class="im"><div><div style="font-family:arial,sans-serif;font-size:13px">
freeswitch: pthread_mutex_lock.c:62: __pthread_mutex_lock: Assertion `mutex-&gt;__data.__owner == 0&#39; failed.<br>

</div></div></div><div>Which sounds independant of the silent crash.</div><div><br></div><div>Dmesg will always show either a segfault/general protection message. It&#39;s a ring buffer so the oldest entries will disappear so you can also check /var/log/messages.log. It&#39;ll always show a *crash* - it won&#39;t crash silently if it is indeed a crash. It won&#39;t show a program exiting normally though (eg a script calling exit) and for normally exiting programs you won&#39;t get a coredump.</div>


<div><br></div><div>-Steve</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 April 2013 18:40, Antoine Reversat <span dir="ltr">&lt;<a href="mailto:antoine@fibrenoire.ca" target="_blank">antoine@fibrenoire.ca</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just made sur the core dumping would work using fsctl crash, I will open a jira as soon as it happens again and I get a core dump.<span><font color="#888888"><div>


<br></div><div>Antoine</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 25, 2013 at 1:10 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr"><div>it would be better to continue this discussion on the jira that you open(ed).<br></div>-MC<br></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 7:43 AM, Antoine Reversat <span dir="ltr">&lt;<a href="mailto:antoine@fibrenoire.ca" target="_blank">antoine@fibrenoire.ca</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok so this would have dumped a core if I had set up my environnment properly ?<div><br></div><div><br></div>




</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, Apr 25, 2013 at 10:40 AM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>



<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">You should have core dumping enable for freeswitch, then get a backtrace...<br>
<br>
See <a href="http://wiki.freeswitch.org/wiki/Debugging_Freeswitch" target="_blank">http://wiki.freeswitch.org/wiki/Debugging_Freeswitch</a><div><br>
<br>
<br>
On 4/25/13 9:23 AM, &quot;Antoine Reversat&quot; &lt;<a href="http://antoine@fibrenoire.ca" target="_blank">antoine@fibrenoire.ca</a>&gt; wrote:<br>
<br>
</div></span></font><div><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Doing what you told me yielded an interesting result.<br>
<br>
Freeswitch crashed with this : <br>
<br>
freeswitch: pthread_mutex_lock.c:62: __pthread_mutex_lock: Assertion `mutex-&gt;__data.__owner == 0&#39; failed.<br>
<br>
Should I run freeswitch in gdb to get why this happens ?<br>
<br>
<br>
On Tue, Apr 23, 2013 at 11:16 AM, Anthony Minessale &lt;<a href="http://anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt; wrote:<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">See if maybe one of your scripts is calling the exit syscall.  This can terminate the whole process.<br>
Run FS in a unix screen session and run it from the console so you can see what happens in the stdout.<br>
<br>
<br>
<br>
On Tue, Apr 23, 2013 at 9:17 AM, Antoine Reversat &lt;<a href="http://antoine@fibrenoire.ca" target="_blank">antoine@fibrenoire.ca</a>&gt; wrote:<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Hi,<br>
<br>
I have a weird issue where once in a  while (apparently randomly) freeswitch crashes silently (that is I don&#39;t see any mention of freeswitch having sgfaulted in the output of dmesg and the logs aren&#39;t helpgul either).<br>






<br>
The version of freeswitch is the latest 1.2 stable branch from git packaged by myself for ubuntu.<br>
<br>
The  OS is Ubuntu 12.04 with the latest 3.2.0-39-generic #62-Ubuntu kernel.<br>
<br>
I have 2 servers and both randomly crash in the same way so I ruled out a hardware issue.<br>
<br>
Our whole call processing is done in LUA but the crash occurs with no call in progress.<br>
<br>
I know it&#39;s not a lot to work with but if you have pointers on how to get more information about what happens I&#39;d be happy to try it out.<br>
</span></font></blockquote></blockquote></blockquote></div><span><font color="#888888"><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
</span></font>
</font></span></div>


<br></div></div><div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(80,0,80)">Antoine Reversat</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Fibrenoire - </span><a href="http://www.fibrenoire.ca/" style="color:rgb(17,85,204)" target="_blank">www.fibrenoire.ca</a><br style="color:rgb(80,0,80)">





<span style="color:rgb(80,0,80)">A: 550 ave Beaumont, suite 320, Montreal, Qc, H3N 1V1</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">T: <a href="tel:514%20907-3002%20x132" value="+15149073002" target="_blank">514 907-3002 x132</a> </span><br style="color:rgb(80,0,80)">




antoine<a href="mailto:jf@fibrenoire.ca" style="color:rgb(17,85,204)" target="_blank">@fibrenoire.ca</a><br>
</div>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br><br clear="all"><br>-- <br></div></div>Michael S Collins<br>Twitter: @mercutioviz<div><br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>




<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(80,0,80)">Antoine Reversat</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Fibrenoire - </span><a href="http://www.fibrenoire.ca/" style="color:rgb(17,85,204)" target="_blank">www.fibrenoire.ca</a><br style="color:rgb(80,0,80)">



<span style="color:rgb(80,0,80)">A: 550 ave Beaumont, suite 320, Montreal, Qc, H3N 1V1</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">T: <a href="tel:514%20907-3002%20x132" value="+15149073002" target="_blank">514 907-3002 x132</a> </span><br style="color:rgb(80,0,80)">


antoine<a href="mailto:jf@fibrenoire.ca" style="color:rgb(17,85,204)" target="_blank">@fibrenoire.ca</a><br>
</div>
</div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(80,0,80)">Antoine Reversat</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Fibrenoire - </span><a href="http://www.fibrenoire.ca/" style="color:rgb(17,85,204)" target="_blank">www.fibrenoire.ca</a><br style="color:rgb(80,0,80)">
<span style="color:rgb(80,0,80)">A: 550 ave Beaumont, suite 320, Montreal, Qc, H3N 1V1</span><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">T: 514 907-3002 x132 </span><br style="color:rgb(80,0,80)">antoine<a href="mailto:jf@fibrenoire.ca" style="color:rgb(17,85,204)" target="_blank">@fibrenoire.ca</a><br>
</div>
</div>