Subj : Static optimized release build (VC 7) crashes To : netscape.public.mozilla.jseng From : block111 Date : Mon Oct 18 2004 11:09 am Hi, I've tried to build static builds of spidermonkey and have a strange problem. When I compile statically my lib to the jsshell I get crash when any optimization is enabled. (I haven't seen any problems with static debug) Basicly jsshell seem to work in optimized build, but it doesn't work the right way and a single line like "var x;" crashes the program. It seem to break inside jsparse.c on line 2169. the comments in this place are: /* * Property not found in current variable scope: we have not seen * this variable before. Define a new local variable by adding a * property to the function's scope, allocating one slot in the * function's frame. Global variables and any locals declared in * with statement bodies are handled at runtime, by script prolog * JSOP_DEFVAR bytecodes generated for slot-less vars. */ and then in a few lines if (!js_AddNativeProperty(cx, obj, (jsid)atom, currentGetter, currentSetter, SPROP_INVALID_SLOT, pn2->pn_attrs | JSPROP_SHARED, SPROP_HAS_SHORTID, fun->nvars)) { // < line 2169. and at this point fun is 0 Have anybody seen this problem?? Thanks .