Subj : Re: Possible Multi-threading issues. To : Gappodi From : Brendan Eich Date : Mon May 03 2004 02:11 pm Gappodi wrote: > Hello, > > > We have been successfully using JavaScript-C 1.5 pre-release 4 > 2002-01-01. > > In recent scenarios we have multiple application threads entering the > engine, with a thread per context only. > We have not compiled with JS_THREADSAFE option. > > The Application has been crashing with the trace leading to the > following line: > > #0 0x4243925d in js_Interpret (cx=0x43639688, result=0x456feea8) at > jsinterp.c:2630 > 2630 PROPERTY_OP(-1, CACHED_GET(OBJ_GET_PROPERTY(cx, > obj, id, &rval))); > (gdb) > > > (gdb) bt > #0 0x4243925d in js_Interpret (cx=0x43639688, result=0x456feea8) at > jsinterp.c:2630 > #1 0x4242f21e in js_Execute (cx=0x43639688, chain=0x43602880, > script=0x49054c48, down=0x0, special=0, > result=0x456feea8) at jsinterp.c:1012 > #2 0x42404f02 in JS_ExecuteScript (cx=0x43639688, obj=0x43602880, > script=0x49054c48, rval=0x456feea8) > at jsapi.c:3251 > > > Could this be a Multi-threading issue? Who knows? There are no known bugs crashing here. You really need to debug more. Where is the PC? What are the instructions around it, and the live registers? Can you hand-expand the PROPERTY_OP and any nested macro calls, so you can get better source line number correlation. What is the script being interpreted? You can look at script->filename to find its source file name, and script->lineno to find its first line number. Are you using JS_BeginRequest and JS_EndRequest? Please read the API docs, they have been corrected. /be .