Closed Bug 243796 Opened 21 years ago Closed 21 years ago

Mozilla freeze in infinite loop with undeclared counter variable

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: newbeewan, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.6) Gecko/20040413 Debian/1.6-5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.6) Gecko/20040413 Debian/1.6-5 Just compare this pieces of code : function crashMozilla(){ for( i = 0; i < 10; i++){ alert("My counter : " + i ); } } function mozillaProof(){ for( var i = 0; i < 10; i++){ alert("My counter : " + i ); } } I think it is not a normal way to break counter allocation in that loop. For me, the normal way will be to work propely in that 2 cases to be conform to javascript... Reproducible: Always Steps to Reproduce: 1.copy/paste the code to crashMozilla() function 2.call it 3.enjoy Actual Results: mozilla freeze with 100% cpu load because counter stay in the same value Expected Results: the counter shoud increment as expected
the "crashMozilla" version works fine over here (current Linux trunk build). It increments the counter 10 times. Is this a problem with Mozilla.org builds? Or only with Debian builds?
WFM LInux 2004062105 added data: URL
I just install the debian unstable version ( 1.6-7 ) and it seem to work normally. I don't know why... So more test needed to be sure it's solved by it self and it's debian specific.
worksforme with linux trunk 2004062206 and 1.6. please report bugs in debian builds to debian unless you can reproduce them in a build from mozilla.org resolving as INVALID -- this is not a Mozilla bug.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.