Subj : Re: possible infinite loop? To : Edward Chan From : Brendan Eich Date : Thu Sep 04 2003 06:40 pm Edward Chan wrote: >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? > > Never seen a problem there. Are the stacks deep? What makes you think there is a loop, rather than some kind of deadlock? What are all the threads' stacks (at least all the threads with JS engine code on their stacks)? What version of the engine are you using? /be .