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 <[email protected]> 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
> [email protected]
> 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
(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
(gdb) bt full
#0  session_originate (cx=0x856e988, obj=0x85d59b0, argc=2, argv=0x85e44c8, 
rval=0xaad1a25c) at mod_spidermonkey.c:2855
        jss = (struct js_session *) 0x0
        pool = (switch_memory_pool_t *) 0x0
        __func__ = "session_originate"
#1  0x00806231 in js_Invoke () from /usr/local/freeswitch/lib/libjs.so.1
No symbol table info available.
#2  0x007f9418 in js_Interpret () from /usr/local/freeswitch/lib/libjs.so.1
No symbol table info available.
#3  0x00805976 in js_Execute () from /usr/local/freeswitch/lib/libjs.so.1
No symbol table info available.
#4  0x007c503a in JS_ExecuteScript () from /usr/local/freeswitch/lib/libjs.so.1
No symbol table info available.
#5  0x0070bfe4 in eval_some_js (code=0x84c3656 "new1.js", cx=0x856e988, 
obj=0x85d3fc8, rval=0xaad1b278) at mod_spidermonkey.h:103
        script = (JSScript *) 0x854ba20
        cptr = <value optimized out>
        path = 0x854cef0 "/usr/local/freeswitch/scripts/new1.js"
        script_name = <value optimized out>
        result = -1
        __func__ = "eval_some_js"
#6  0x0070c592 in js_parse_and_execute (session=0x0, input_code=0x84c3656 
"new1.js", ro=0xaad1b2a0) at mod_spidermonkey.c:3583
        javascript_global_object = (JSObject *) 0x85d3fc8
        buf = "~var argv = new 
Array();\000\000\000\000\020?[\b¸®Ñª\207°ô\000\020?[\bl±Ñª 
â...@eý\000\000\220z\b\024\000\000\000\210±Ñªhá÷\000x|V\b\020?[\b\017\000\000\000\000\000\000\000`±Ñª\020?[\b\000\000\000\000ø®Ñªuï¹\000
 aÇ\000Ô\002\000\...@eý\000kzô\000@Eý\000H¯ÑªáÇô\000`âV\b\000\000\00---Type 
<return> to continue, or q <return> to quit---
        
0\000Ô\002\000\...@eý\000\030\000\000\000x|V\bè?[\b`±Ñª\000\000\000\000\a\000\000\000\001\000\000\000\000\000\000\000}\000\000\000\031\000\000\000\a\000\000\000\024\000\000\000"...
        argv = {0xaad1acd8 "\a", 0xc76150 
"¨d^\b\230ÏT\b\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0x0, 0x0, 0xb9d7c1 
"\201Ã3x\r", 
  0xf475e1 "\201Ã_Ï\b", 0x0, 0x0, 0x0, 0xaad1acd8 "\a", 0x85b5ba0 "", 0x1 
<Address 0x1 out of bounds>, 0x85b3f10 "(3[\bTh/\006,>]\bP°\205", 
  0xaad1acd8 "\a", 0x0, 0x0, 0xaad1acd8 "\a", 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
0x0, 0xaad1a718 "x©ÑªÝîô", 
  0xf4df57 
"\213MØ\vMà\211Mè\213MÜ\vMä\211Mì\213Mè\tñ\211Mð\213Mì\213uð\tù\211Ï\tÆ\211Mô\t×\203Ä0\211ð\211ú^_]Ã\215v",
 
  0xc5c69c "double free or corruption (!prev)", 0xb9cf61 "\201Ã\223\200\r", 
0x85b3fa0 "", 0xf68c07 "\201Ã9¹\006", 
  0x1 <Address 0x1 out of bounds>, 0x0, 0x0, 0x0, 0x1 <Address 0x1 out of 
bounds>, 0x0, 0x1 <Address 0x1 out of bounds>, 0x0, 
  0xfd4540 "\030³\024", 0x85b3f58 "", 0xaad1a978 "¹üû", 0xf4eedd 
"\205Àt\027\213\225üýÿÿ\213b\020\...@\f\2130\200>Y\017\204\224\002", 
  0x856e988 "@\207...@\207v\b\001", 0x85b3fa0 "", 0xaad1a960 "\f", 0xaad1a965 
"|V\b\230©ÑªÖ¿ô", 0xb9d7c1 "\201Ã3x\r", 0x85a8bf0 "H\001", 
  0x29d8 <Address 0x29d8 out of bounds>, 0x2220 <Address 0x2220 out of bounds>, 
0xc5c69c "double free or corruption (!prev)", 
  0x9 <Address 0x9 out of bounds>, 0xaad1a7b8 "XaÇ", 0xf57b39 "\201Ã\aÊ\a", 
0x856ee58 "API-Command", 0xc762b8 "°bÇ", 0x0, 0x0, 
  0xaad1ab5c "̰ѪجѪ\001", 0x85a97c0 "t>]\b ±\205", 0x45000000 <Address 
0x45000000 out of bounds>, 0xaad1ab70 " ?[\bÿÿ", 0xaad1acd8 "\a", 
  0x85b3fa0 "", 0xb9d7c1 "\201Ã3x\r", 0x0, 0x1 <Address 0x1 out of bounds>, 
0x0, 0xb9d7c1 "\201Ã3x\r", 0x45 <Address 0x45 out of bounds>, 
  0x2 <Address 0x2 out of bounds>, 0x30 <Address 0x30 out of bounds>, 
0xaad1a7a8 "\030¨ÑªPaÇ", 0xf534b3 "1ÀÉÃ\211ö\215¼'", 0xaad1a817 "", 0x0, 
  0xaad1a818 "\217¨ÑªXcÇ", 0xc76150 
"¨d^\b\230ÏT\b\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0xaad1a827 "", 0x0, 
  0xc76158 "\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0x19 <Address 0x19 out of 
bounds>, 0xc7612c "", 0x85a9680 "", 
  0x38 <Address 0x38 out of bounds>, 0x19 <Address 0x19 out of bounds>, 0x0, 
0x85a9668 "f", 0x50 <Address 0x50 out of bounds>, 0x0, 0x0, 
  0xaad1a800 "¨~V\b\003", 0x0, 0x0, 0xb9d7c1 "\201Ã3x\r", 0x85d3cc0 "\006", 
0x7e8 <Address 0x7e8 out of bounds>, 0x85d3cc8 "\006", 0x8567ea8 "", 
  0x3 <Address 0x3 out of bounds>, 0x7e4 <Address 0x7e4 out of bounds>, 
0xfd4540 "\030³\024", 0x85d3cc8 "\006", 0x3 <Address 0x3 out of bounds>, 
  0xaad1a88f "", 0xc76358 "PcÇ", 0xc74ff4 "\234MÇ", 0xc76120 "", 0xf <Address 
0xf out of bounds>, 0xaad1a848 "x¨Ñªú­ô", 
  0xb9ef75 "\205À\211Çt*e\203=\f", 0xc76120 "", 0xb9d7c1 "\201Ã3x\r", 0xfd4540 
"\030³\024", 0x6 <Address 0x6 out of bounds>, 
  0xf <Address 0xf out of bounds>, 0xaad1a878 "¨¨Ñª\021", 0xf4adfa "Æ\004>", 
0x85a9688 "dC]\b", 0x85a9670 "a", 0xf <Address 0xf out of bounds>, 
---Type <return> to continue, or q <return> to quit---
  0xc76168 "`aÇ", 0xaad1a8d7 "\b", 0xc76158 
"\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0xc76158 
"\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 
  0xc76150 "¨d^\b\230ÏT\b\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0x6 <Address 0x6 
out of bounds>, 0x8567c58 "", 0xaad1a8a8 "\030©ÑªÀfö", 
  0x11 <Address 0x11 out of bounds>, 0xc76128 "", 0xc76150 
"¨d^\b\230ÏT\b\230ÏT\b\230ÏT\b\230ÎT\b\230ÎT\b`aÇ", 0x20 <Address 0x20 out of 
bounds>, 
  0x0, 0x1 <Address 0x1 out of bounds>, 0x85b3f6c "!", 0xaad1a8c8 "X|V\b[\\ö", 
0xfd4540 "\030³\024", 0x59 <Address 0x59 out of bounds>, 
  0x85b3f58 "", 0xaad1a918 "\001", 0xf666c0 "º\001", 0x8567c58 "", 0x59 
<Address 0x59 out of bounds>, 0x0, 0x0, 0x85a9698 "rom \021", 
  0x2 <Address 0x2 out of bounds>, 0x8567c58 "", 0xf65c5b 
"\203ø\001\031À\203Ä\020!ð[^]Ã\215´&", 0xf47551 "\201ÃïÏ\b", 
  0x85e12e8 "HöZ\bèñZ\bÈòZ\bhõZ\b", 0x0, 0xfd4540 "\030³\024", 0xc74ff4 
"\234MÇ", 0xc76120 "", 0x1 <Address 0x1 out of bounds>, 
  0xaad1a908 "8©Ñªú­ô", 0xb9ef75 "\205À\211Çt*e\203=\f", 0xc76120 "", 0x2 
<Address 0x2 out of bounds>, 0xfd4540 "\030³\024", 
  0x8 <Address 0x8 out of bounds>, 0x1 <Address 0x1 out of bounds>, 0xaad1a938 
"h©Ñª ­ô", 0xf4adfa "Æ\004>", 0x85a96a0 "m", 0x85d6838 "", 
  0x1 <Address 0x1 out of bounds>, 0xf4abce "\201Ãr\231\b", 0x85d6838 "", 
0x85b3f58 "", 0x85a8f10 "G", 0xfd4540 "\030³\024", 
  0xfd4540 "\030³\024", 0xc <Address 0xc out of bounds>, 0xaad1a968 
"\230©ÑªÖ¿ô", 0xf4ada0 "\213u\020\213eð\205�...@\f", 0x8567c58 "", 
  0xffffffff <Address 0xffffffff out of bounds>, 0x85d6838 "", 0xf4bf07 
"\201Ã9\206\b", 0xfbfcb9 "+", 0x42 <Address 0x42 out of bounds>, 
  0x85a8f60 "e", 0xfd4540 "\030³\024", 0xc <Address 0xc out of bounds>, 
0x8567c58 "", 0xaad1a998 "ø­Ñªó\021õ", 
  0xf4bfd6 "\211ð\213]ô\213uø\213}ü\211ì]Ã\215t&", 0x8567c58 "", 0xc <Address 
0xc out of bounds>, 0xfbfcb9 "+", 0xf4eb64 "\201ÃÜY\b", 0x0, 
  0xaad1ab5c "̰ѪجѪ\001", 0x1 <Address 0x1 out of bounds>, 0xfd4540 
"\030³\024", 0x8567eb0 "", 
  0xfffffffc <Address 0xfffffffc out of bounds>...}
        y = 140335432
        cx = (JSContext *) 0x856e988
        rval = -2147483647
#7  0x0070c8b1 in jsapi_function (cmd=0x84c3656 "new1.js", session=0x0, 
stream=0xaad1b328) at mod_spidermonkey.c:3663
        ro = {cmd = 0x84c3656 "new1.js", session = 0x0, stream = 0xaad1b328}
        path_info = <value optimized out>
#8  0x00edb91d in switch_api_execute (cmd=0x84c3650 "jsapi", arg=0x84c3656 
"new1.js", session=0x0, stream=0xaad1b328)
---Type <return> to continue, or q <return> to quit---
    at src/switch_loadable_module.c:1524
        api = (switch_api_interface_t *) 0x85233e0
        status = <value optimized out>
        __PRETTY_FUNCTION__ = "switch_api_execute"
        __func__ = "switch_api_execute"
#9  0x00ec0c06 in switch_console_process (cmd=0x84c3650 "jsapi", rec=0) at 
src/switch_console.c:254
        handle = (FILE *) 0xc754c0
        arg = 0x84c3656 "new1.js"
        alias = <value optimized out>
        stream = {write_function = 0xec1c30 <switch_console_stream_write>, 
raw_write_function = 0xec1de0 <switch_console_stream_raw_write>, 
  data = 0x8567c58, end = 0x8567c58, data_size = 1024, data_len = 0, alloc_len 
= 1024, alloc_chunk = 1024, param_event = 0x8449110}
        __func__ = "switch_console_process"
        __PRETTY_FUNCTION__ = "switch_console_process"
#10 0x00ec0e3a in console_thread (thread=0x8535980, obj=0x85358f8) at 
src/switch_console.c:454
        cmd = 0x84c3650 "jsapi"
        p = <value optimized out>
        lf = <value optimized out>
        foo = 0x84ca320 "jsapi new1.js\n"
        count = 14
        line = 0x84ca320 "jsapi new1.js\n"
        pool = (switch_memory_pool_t *) 0x85358f8
        __func__ = "console_thread"
        __PRETTY_FUNCTION__ = "console_thread"
---Type <return> to continue, or q <return> to quit---
#11 0x00f370d6 in dummy_worker (opaque=0x8535980) at 
threadproc/unix/thread.c:138
No locals.
#12 0x00caf462 in start_thread () from /lib/i686/nosegneg/libpthread.so.0
No symbol table info available.
#13 0x00c062ce in clone () from /lib/i686/nosegneg/libc.so.6
No symbol table info available.
[r...@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

[r...@localhost bin]# 
[r...@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
[r...@localhost bin]# 
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to