Closed
Bug 286905
Opened 20 years ago
Closed 15 years ago
Hang and crash with recursive setInterval
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 261633
People
(Reporter: gparadee, Unassigned)
References
()
Details
(Keywords: crash, hang, Whiteboard: [sg:dos] DUPEME)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
With a speically crafted javascript code Firefox will crash. The code is
<body onLoad="KillTheFox()">
</body>
<SCRIPT LANGUAGE="JavaScript">
function KillTheFox() {
window.setInterval("KillTheFox()", 0);
window.status = "a";
}
</SCRIPT>
In Internet Explorer there is no crash.
Reproducible: Always
Steps to Reproduce:
1.Load the webpage
Actual Results:
Firefox froze up and eventually closed.
Expected Results:
Display the page normally.
It just freezes so I would guess firefox.exe
Comment 1•20 years ago
|
||
I didn't see a crash, but saw 100% CPU as the script ran. Stopped when I closed the window -- no crash. IE also loops forever, but manages to limit the CPU resources taken up. Do we not detect script loops if they're setInterval? guess not.
Assignee: dveditz → general
Group: security
Status: UNCONFIRMED → NEW
Component: Security → DOM: Level 0
Ever confirmed: true
Product: Firefox → Core
QA Contact: firefox → ian
Whiteboard: [sg;dos]
Version: unspecified → Trunk
Updated•20 years ago
|
Whiteboard: [sg;dos] → [sg:dos]
Comment 2•20 years ago
|
||
Greg Paradee: Could you provide Talkback incident id for your crash?
Keywords: crash
| Reporter | ||
Comment 3•20 years ago
|
||
(In reply to comment #2) > Greg Paradee: Could you provide Talkback incident id for your crash? the Talkback incident id? I dont understand.
Comment 4•20 years ago
|
||
We have existing bugs on this (exponential growth in number of pending timers).
Whiteboard: [sg:dos] → [sg:dos] DUPEME
Same idea as https://bugzilla.mozilla.org/show_bug.cgi?id=288396
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: hang
Resolution: --- → DUPLICATE
Summary: Crash with special javascript code → Hang and crash with recursive setInterval
You need to log in
before you can comment on or make changes to this bug.
Description
•