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)
Tracking
(Not tracked)
VERIFIED
FIXED
1.5R5
People
(Reporter: steven.beal, Assigned: norrisboyd)
Details
Attachments
(1 file)
680 bytes,
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
cc'ing Igor -
Comment 3•22 years ago
|
||
I committed the fix. Thanks Steve for spotting this!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•