Subj : Re: possible infinite loop? To : netscape.public.mozilla.jseng From : Brendan Eich Date : Thu Sep 04 2003 10:31 pm Edward Chan wrote: >Hi there, > >I'm wondering if anybody may have experienced an infinite loop using >SpiderMonkey. I have an app that looks like it has gone into an infinite >loop. Using a Microsoft debugging utility called ADPlus, I've taken a >snapshot of the process when this happens. There are more than a few >threads with call stacks like the following : > >JS_ArenaAllocate >js_AllocRawStack >js_Invoke >JS_CallFunctionValue > >There are 2 loops in JS_ArenaAllocate. But I'm not sure if this is where it >is stuck. Has anybody seen or know of any problem related to >JS_ArenaAllocate? > > This turned out to be yetanother case (see news://news.mozilla.org:119/bdq7tc$dcb4@ripley.netscape.com) of using the engine from multiple threads without defining JS_THREADSAFE. /be .