[Freeswitch-users] session orignate freeswitch 1.0.3 segmentation error

Gopal krishnan gopal2krishnan at gmail.com
Thu Feb 26 22:11:23 PST 2009


Hi Brian,
  Please find the attached backtrace files attached.
And
1. SVN revision number (or binary file) - FreeSWITCH Version 1.0.3
(exported)
2. Operating System and revision - CentOS 5.2
3. Hardware information - 32 bit with 512 MB RAM
4. I am using Event socket
5. Language - Javascript

One more thing in the same machine earlier I was using freeswitch 1.0.2.
when the segmentation fault happens the core file was generated in the older
version freeswitch bin. In 1.0.3 there is no bin directory. Is that could be
the prob?

On Thu, Feb 26, 2009 at 9:05 PM, Brian West <brian at freeswitch.org> wrote:

> can you include the backtrace?  We might have already fixed this one.
> http://wiki.freeswitch.org/wiki/Reporting_Bugs
>
> /b
>
>
> On Feb 26, 2009, at 9:11 AM, Gopalakrishnan A.N wrote:
>
> Hi,
>
>    I have installed Freeswitch 1.0.3. I am using event socket with
> Javascript. When I try to dial the script with below command, the call is
> not going thru it seems to be idle. and segmentation fault core dump error,
> (freeswitch hangs).....<323.gif>
>
>
> new_session = new Session.originate(session,
> "sofia/default/<outbound-number>@foo.com");
> bridge(session, new_session);
>
> I saw in the wiki
> http://wiki.freeswitch.org/wiki/FreeSwitch_Javascript_Session
> that the session is depreciated, earlier I was using like this in
> Freeswitch 1.0.2, it works fine....:)
>
> session = new Session();
> session.originate(session,
> "{ignore_early_media=true}sofia/default/<outbound-number>@foo.com");
>
> So something I am missing, please let me know where I am wrong?
>
>
>
> _______________________________________________
> 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
>
>


-- 
Thank you  with regards,
Gopal,
PeopleTech Systems Private Limited
www.peopletech.co.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090227/6daf4869/attachment-0002.html 
-------------- next part --------------
(gdb) bt
#0  session_originate (cx=0x856e988, obj=0x85d59b0, argc=2, argv=0x85e44c8, rval=0xaad1a25c) at mod_spidermonkey.c:2855
#1  0x00806231 in js_Invoke () from /usr/local/freeswitch/lib/libjs.so.1
#2  0x007f9418 in js_Interpret () from /usr/local/freeswitch/lib/libjs.so.1
#3  0x00805976 in js_Execute () from /usr/local/freeswitch/lib/libjs.so.1
#4  0x007c503a in JS_ExecuteScript () from /usr/local/freeswitch/lib/libjs.so.1
#5  0x0070bfe4 in eval_some_js (code=0x84c3656 "new1.js", cx=0x856e988, obj=0x85d3fc8, rval=0xaad1b278) at mod_spidermonkey.h:103
#6  0x0070c592 in js_parse_and_execute (session=0x0, input_code=0x84c3656 "new1.js", ro=0xaad1b2a0) at mod_spidermonkey.c:3583
#7  0x0070c8b1 in jsapi_function (cmd=0x84c3656 "new1.js", session=0x0, stream=0xaad1b328) at mod_spidermonkey.c:3663
#8  0x00edb91d in switch_api_execute (cmd=0x84c3650 "jsapi", arg=0x84c3656 "new1.js", session=0x0, stream=0xaad1b328)
    at src/switch_loadable_module.c:1524
#9  0x00ec0c06 in switch_console_process (cmd=0x84c3650 "jsapi", rec=0) at src/switch_console.c:254
#10 0x00ec0e3a in console_thread (thread=0x8535980, obj=0x85358f8) at src/switch_console.c:454
#11 0x00f370d6 in dummy_worker (opaque=0x8535980) at threadproc/unix/thread.c:138
#12 0x00caf462 in start_thread () from /lib/i686/nosegneg/libpthread.so.0
#13 0x00c062ce in clone () from /lib/i686/nosegneg/libc.so.6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bt_full.txt
Url: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090227/6daf4869/attachment-0002.txt 
-------------- next part --------------
[root at localhost bin]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.66GHz
stepping        : 9
cpu MHz         : 2659.202
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lm
bogomips        : 6651.17

[root at localhost bin]# 
-------------- next part --------------
[root at localhost bin]# uname -a
Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Mon Nov 12 03:26:12 EST 2007 i686 i686 i386 GNU/Linux
[root at localhost bin]# 


More information about the FreeSWITCH-users mailing list