Closed
Bug 490751
Opened 16 years ago
Closed 14 years ago
if i run an infinite loop, the firefox hangs...
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: vishnus, Unassigned)
References
()
Details
(Keywords: hang)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4
I have made an html file and uploaded in my server, just click the button and it will crash the firefox. Its just a normal do while loop which is infinite, in Internet explorer its displaying for sometime and then a message box comes, in chrome the browser doesnt crash, but the tab crashes, in firefox the entire browser crashes and used plenty of memory
Reproducible: Always
Steps to Reproduce:
1.Open that website
2. click the button
3.
Actual Results:
the entire firefox got not responding, then when checked in taskmanager, it shows using memory very high and increasing.
Expected Results:
it should produce the output of that loop.
Just go through the source code of that HTML file
Updated•16 years ago
|
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → 1.9.1 Branch
Comment 1•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre) Gecko/20090428 Minefield/3.6a1pre
and
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b4pre) Gecko/20090414 Shiretoko/3.5b4pre
Works for me. Can you navigate to about:crashes and paste a crash report id in this bug, if you don't get one, please see https://developer.mozilla.org/En/How_to_get_a_stacktrace_for_a_bug_report
Keywords: crash
Reporter | ||
Comment 2•16 years ago
|
||
what do you get when you press the button ?
Reporter | ||
Comment 3•16 years ago
|
||
its actually not a crash, it just goes not responding and uses plenty of memory. I tried in FF 3.1 b3 and 3.5b4 and also in my friends system.. its not showing anythings and just goes not responding.
Comment 4•16 years ago
|
||
Hang then.
Still works for me, I get about ~10 seconds of unresponsiveness, then the stop script dialog comes up. Is this a regression from 3.0?
Reporter | ||
Comment 5•16 years ago
|
||
that stop script dialog comes in IE. see the screenshots : http://vishnus.name/crashfirefox/
regression from 3.0 means ? (im bad in english ) :P
Comment 6•16 years ago
|
||
Wow, it's crashing because it's out of memory, I don't experience anything like that.
Regression means that it got worse since a previous Firefox version. I get about 100k and then the stop script dialog comes up. Have you tried this on a fresh profile http://support.mozilla.com/en-US/kb/Basic+Troubleshooting#Make_a_new_profile
so. if you actually had a debugger open and managed to stop the script, you should be able to close the window and then you'd find you haven't leaked any memory. which means it isn't a memory leak.
your page is functionally equivalent to a web server script:
#!/usr/bin/perl
$| = 1;
my $i = 0;
do {
print "The number is = " + ($i) + "<br/>";
$i++;
} while (1);
you have an infinitely long document, such a page would require an infinite amount of memory, As kong as the browser lets the user close the page, it probably won't leak anything and would be ok.
Assignee: general → nobody
Component: JavaScript Engine → DOM
Keywords: mlk
QA Contact: general → general
Summary: if i run an infinite loop, the firefox crashes... → if i run an infinite loop, the firefox hangs...
Comment 8•16 years ago
|
||
timeless: for me that's the way it worked, for him, he has 12gb of memory getting consumed (see screenshot), that's why I added mlk, I can't *confirm* this bug report though...
and fwiw, just tried latest-1.9.1 and it works for me there as well.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b5pre) Gecko/20090429 Shiretoko/3.5b5pre
Comment 9•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11pre) Gecko/2009050205 GranParadiso/3.0.11pre
I'm getting a warning message:
A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
[ ] Don't show this warning again.
I'm using a core 2 Duo, 1 GB RAM, running freeware Process Explorer from sysinternals.com to look at RAM consumption, and Kill Firefox, and did multiple runs of Firefox.
When 'Commit' in the Process Explorer System Informations panel grows from about 650 MB to 1.2 GB, the first script warning comes, I accept, and it comes again at about 1.4GB, then 1.8GB, or so. Memora size topped at 2.0GB, went back to 1.8GB, and rested there. Firefox didn't respond, the whole computer was slow as both CPUs were running Firefox nearly 100%. Using Windows to kill Firefox didn't work, I had to use 'Kill Process Tree' from Process Explorer.
2nd run same as above, but memory grow stopped early at 1.8GB
3rd run: no warnings, or one warning only?, memory grow stopped at 2.5GB, but available memory was sinking, last number I could see before crash was about 1.600 kB available.
Maybe the reporter disabled the warning message by checking the [x] don't show again!, but I at least once went up to 1.8GB without getting any message, and I never disable warnings like these.
Comment 10•14 years ago
|
||
WFM per comments, can't verify as test case is 404 now.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•