<div dir="ltr">Hi guys.<div><br></div><div>I've just upgrade to FS 1.4.12 (b33a86c) and I see that <a href="https://jira.freeswitch.org/browse/FS-6849">JIRA FS-6849</a> still happens. </div><div>Isn't there anyone able to fix the issue using only the feedback provided by me on that JIRA? Do you really thing git bisect is the only way to go here? I really hope not.</div><div>Looking forward to here from you.</div><div><br></div><div>Best Regards,</div><div class="gmail_extra"><br clear="all"><div><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p><p><b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d">Nuno Miguel Reis</span></b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"> | <b>Unified Communication</b></span><b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"> Systems</span></b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif""></span><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"></span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br></span></p><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:"Trebuchet MS","sans-serif";color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:"Trebuchet MS","sans-serif";color:rgb(19,55,112)"><br></span><b><span style="font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b><p><span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br><div class="gmail_quote">On Thu, Sep 25, 2014 at 4:54 AM, Nuno Reis <span dir="ltr"><<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</a>></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>Using gdb I've figured out that in mod_python.c:281:</div><div>...</div><div><span style="white-space:pre-wrap">        </span>result = PyEval_CallObjectWithKeywords(function, arg, (PyObject *) NULL);</div><div><span style="white-space:pre-wrap">        </span>Py_DECREF(function);</div><div>...</div><div><br></div><div>variable result is always null when a python script trying to use the session run the first time right after freeswitch startup. </div><div>That will make it enter the else logic in line 291 in the same file ending with a crash.</div><div>I'll still have to drill more to find out why this is happening now. </div><div>Anyone has a clue on what's going on?</div><div><br></div><div>BR,</div><div class="gmail_extra"><br clear="all"><div><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p><p><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif"></span><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span></p><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p><span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br><div class="gmail_quote">On Tue, Sep 23, 2014 at 3:53 AM, Nuno Reis <span dir="ltr"><<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">This is the output after calling the script right after start:<div><br></div><div><div>2014-09-23 03:49:45.801129 [NOTICE] mod_python.c:212 Invoking py module: teste</div><div>2014-09-23 03:49:45.801129 [NOTICE] switch_cpp.cpp:1328 Testing123...</div><div>2014-09-23 03:49:45.801129 [NOTICE] switch_cpp.cpp:1328 Dumping current CDR INFO</div><div>2014-09-23 03:49:45.801129 [ERR] mod_python.c:293 Error calling python script</div><div>2014-09-23 03:49:45.801129 [ERR] mod_python.c:164 Python Error by calling script "teste": <type 'exceptions.AttributeError'></div><div>Message: 'PySwigObject' object has no attribute 'getXMLCDR'</div><div>Exception: None</div><div><br></div><div>Traceback (most recent call last)</div><div> File: "/opt/freeswitch/scripts/teste.py", line 12, in handler</div></div><div><br></div><div>All the following script calls work just fine.</div><div><br></div><div><u style="font-weight:bold">Note:</u> If you want to test the code snippet i've added before don't forget to add:</div><div><br></div><div>import freeswitch</div><div><br></div><div>Looking forward to hear from you.</div><div><br></div><div>Best Regards,</div><div class="gmail_extra"><span><br clear="all"><div><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p><p><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif"></span><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span></p><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p><span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br></span><div><div><div class="gmail_quote">On Tue, Sep 23, 2014 at 3:44 AM, Nuno Reis <span dir="ltr"><<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi guys.<div><br></div><div>I've reported this before and i can tell that it is still happening in the latest v1.4.</div><div><br></div><div>How reproduce:</div><div><br></div><div><ol><li>just create a dialplan that calls a python script<br></li><li>dial that dialplan entry</li></ol><div><br></div><div>Example code (works with anything that invokes <b>session</b>):</div><div><br></div><div><div>#!/usr/bin/env python</div><div># -*- coding: utf-8 -*-</div><div><br></div><div>from __future__ import absolute_import</div><div># <a href="http://docs.python.org/whatsnew/pep-328.html" target="_blank">http://docs.python.org/whatsnew/pep-328.html</a></div><div><br></div><div>def handler(session, args):</div><div><div> freeswitch.consoleLog("notice", "Testing123...")<br></div><div> freeswitch.consoleLog("notice", "Dumping current CDR INFO")<br></div><div> freeswitch.consoleLog("info", str(session.getXMLCDR()))</div><div> freeswitch.consoleLog("notice", "The END!")</div></div></div><div><br></div><div><br></div><div>mod_pyhton crashes everytime the script is called right after a freeswitch start (the very first time session is invoked inside a mod_python python script).</div><div>After the first time (error), everything starts to work just fine.</div><div>This doesn't happen in e6b8b3e4f2deac73547bc9b9a2cb3e1d3147d101 from v1.2.stable</div><div><br></div><div>Should i open a jira on this?</div><div><br></div><div><span style="color:rgb(31,73,125);font-family:'Trebuchet MS',sans-serif">--</span><br></div><div><p><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif"></span><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span></p><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p><span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
</div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>