Closed Bug 208293 Opened 22 years ago Closed 22 years ago

Loading a large script in the Rhino debugger results in an endless loop (100% CPU utilization)

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows 2000
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: steven.beal, Assigned: norrisboyd)

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Build Identifier: Loading a large script in the Rhino debugger results in an endless loop. The CPU utilization will jump to 100% and stay there. A <ctrl><break> thread dump from the VM indicates an endless loop in org.mozilla.javascript.Context.readReader(). Looking at the code, an error was introduced with Context.java v1.110. The buffer is never grown prior to the call to System.arraycopy(). Reproducible: Always Steps to Reproduce: 1.Start the debugger 2.Load a script file containing more than 512 characters. 3. Actual Results: CPU utilization rose to 100% Expected Results: The text of the .js file should have been displayed in the debugger.
cc'ing Igor -
I committed the fix. Thanks Steve for spotting this!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Rubber-stamp vrfy -
Status: RESOLVED → VERIFIED
Targeting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: