[Freeswitch-users] Freeswitch crashes randomly while executing a javascript with odbc calls.
Brian West
brian.west at mac.com
Tue Jan 22 15:55:11 PST 2008
B,
Anyway I can get a backtrace and the full script so we can reproduce
this issue? Or even access to your machine? An ssh key in SVN that
you can put in place to allow Anthony into your machine just find me
on IRC (bkw_ or anthm) or email me in private and we can get in and
look at it...
Thanks,
Brian
On Jan 22, 2008, at 7:35 AM, B Karthik wrote:
> Hi,
>
> I configured freeswitch to execute this script whenever a call is
> made from one number to another.
>
> function init() {
> use("ODBC");
> var db = new ODBC("test", "testuser", "testpwd");
> var path = "test.mp3";
> if(db.connect()) {
> var tn = session.getVariable("destination_number");
> var sql = "select path from sounds where tn = " +tn;
> db.exec(sql);
> if( db.nextRow()) {
> data = db.getData();
> console_log("**********Playing back " + data["path"] +
> "**********");
> path = data["path"];
> }
> }
> else {
> console_log("Connection to database failed!");
> }
> db = null;
> bridgeCall(path);
> }
> init();
>
> This script executes fine when the call is initiated for the first
> time. For subsequent calls, the script may execute or freeswitch
> might crash with a segmentation fault. It usually crashes when the
> second call is made but it is not always the same.
>
> The last three lines output in the console before crashing is -
>
> 2008-01-22 07:22:45 [DEBUG] mod_spidermonkey.c:3202 js_api_use()
> Loading ODBC
> 2008-01-22 07:22:45 [DEBUG] switch_odbc.c:145
> switch_odbc_handle_connect() Connecting test
> Segmentation fault (core dumped)
> ________________________________
>
> OS: RHEL 4.
> Freeswitch Version: Latest svn checkout (22nd jan 2008 11 AM)
>
> Kindly help me in resolving this issue.
>
> Thanks in Advance,
>
> B Karthik
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
More information about the FreeSWITCH-users
mailing list