Subj : spider monkey core dump in js_EmitTree To : "'Brendan Eich'" , From : Anindita.Mahapatra@comverse.com (Mahapatra Anindita) Date : Wed Mar 19 2003 09:30 pm I have a threadsafe, optimized Linux version of libjs.so I'm executing a vxml script, the in-house vxml interpreter passes requests to the script engine to evaluate expressions In this particular case, while an expression is being evaluated, the executable gives a segmentation fault & running gdb on the core file yields: #0 0x402c3447 in js_EmitTree () from /vob/ThirdParty/ScriptEngine/SpiderMonkey/linux/lib/libjs.so The individual expressions that are being passed to spiderMonkey look like the following It is executed close to 193 times, each time e1_cnt/e2_cnt is incremented by 1, around the 194th time, it stops while evaluating & core dumps var __type = typeof(e1_cnt+1); The expressions by themselves are evaluated ok, but somehow it seems that after so many calls, it core dumps. Is it possible that I could be running out of stack space ? I'm using the default #define JS_INIT_SIZE 1000000L #define StackChunkSize 8192 Anybody has any suggestions/advise ? Please let me know if there is any other information you require ? ---------------------- dialog.e1_cnt = 1;e1_cnt = 1; e1_cnt _event = undefined; _message = undefined; _event = 'event.e2'; _message = undefined; _event == 'event.e1' _event == 'event.e2' e2_cnt e2_cnt+1 var __type = typeof(e2_cnt+1); __type dialog.e2_cnt = 1;e2_cnt = 1; e2_cnt _event = undefined; _message = undefined; _event = 'event.e1'; e1_cnt e1_cnt+1 var __type = typeof(e1_cnt+1); __type ------------- dialog.e1_cnt = 2;e1_cnt = 2; e1_cnt _event = undefined; _message = undefined; _event = 'event.e2'; _message = undefined; _event == 'event.e1' _event == 'event.e2' e2_cnt e2_cnt+1 var __type = typeof(e2_cnt+1); __type dialog.e2_cnt = 2;e2_cnt = 2; e2_cnt _event = undefined; _message = undefined; _event = 'event.e1'; e1_cnt e1_cnt+1 var __type = typeof(e1_cnt+1); __type ----------- ..... upto ~193 .