Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 493670

Summary: [acorn] Chrome browser bug causes infinite loop
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie, Olivier_Thomann
Version: 10.0   
Target Milestone: 12.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Michael Rennie CLA 2016-05-13 13:07:23 EDT
While working on our test suites for the past few days, Curtis, Olivier and myself have started to notice that the suite will sometimes hang and kill the tab running it.

CPU use would go through the roof as would memory consumption. 

Olivier managed to catch the culprit - which appears to be the way the acorn code is interpreted in the browser - that is causing an infinite loop and creating vast amounts of "EmptyStatement" AST nodes.

This same problem does not happen in any of the other browsers and is pretty easy to reproduce - just run our test suite in Chrome (or chrome canary), it will happen after 1-3 test runs.
Comment 1 Olivier Thomann CLA 2016-05-13 13:27:22 EDT
As soon as the debugger is used, the problem never occurs again.
Comment 2 Olivier Thomann CLA 2016-05-13 19:09:41 EDT
Created attachment 261740 [details]
Proposed patch
Comment 3 Olivier Thomann CLA 2016-05-13 20:04:09 EDT
Delivered.