Subj : Re: automatic variable that holds JSAtom* in JS_DefineFunction() is not GC protected. To : netscape.public.mozilla.jseng From : myngs@hotmail.com (itaj sherman) Date : Tue Mar 11 2003 05:03 pm > > I can't even build this on RedHat 8.0. > why? it doens't compile? is it on unix? well... i'm using MSVC6 do you want to tell me what went wrong? we have some unix compilers i'm not sure which (i rarely use unix, we have a guy resposible for unix stuff) i'll check tomorrow at work (it's night here now) maybe we can try to compile with it and i'll fix that program. > How did the GC fail to mark the atom it is sweeping? I.e., via what > root do you think it should have reached that atom? i'm not sure. the atom was read by js_Interpret() is case JSOP_DEFFUN from the compiled bytecode of the JSScript, expected to hold the function object that is going to be used there, but it points to garbage - this is where it crashes most of the times. there are a some other places sometimes, i can send stack dumps tomorrow. and it is the executing JSScript as you can see i did protect it with a ScriptObject. so isn't that JSScript supposed to protect that atom? .