Closed
Bug 330684
Opened 20 years ago
Closed 19 years ago
Simple Javascript Pattern test that will freeze Firefox
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 307456
People
(Reporter: shaohua.wen, Unassigned)
Details
Attachments
(1 file)
|
358 bytes,
text/html
|
Details |
During some extension development,we found a bug of firefox
when doning a pattern test.
the pattern test just makes firefox occupy 100% cpu and freeze.
Please find attached test html file.
| Reporter | ||
Updated•20 years ago
|
Severity: normal → major
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Duplicate of bug 265353 or bug 307456, maybe? Which build are you testing this in?
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
| Reporter | ||
Comment 3•20 years ago
|
||
We are trying this with firefox 1.5.0.1,latest nightly builds are not tried yet.
Comment 4•20 years ago
|
||
marking in-testsuite- for now since the hang would prevent the test library from completing.
Flags: in-testsuite-
Whiteboard: DUPEME
Comment 5•19 years ago
|
||
The automated js browser and shell tests now support timeouts, so adding this test to the suite now.
Checking in regress-330684.js;
/cvsroot/mozilla/js/tests/ecma_3/RegExp/regress-330684.js,v <-- regress-330684.js
initial revision: 1.1
Flags: in-testsuite- → in-testsuite+
Comment 6•19 years ago
|
||
(In reply to comment #2)
> Duplicate of bug 265353 or bug 307456, maybe? Which build are you testing this
> in?
>
Gavin is right, it is a dup of bug 307456. I confirmed it on my local build with patch. It is fairly easy for one to write a regular expression that takes exponential time in current regex engine. We need some documentation to help web programmers avoid this.
*** This bug has been marked as a duplicate of 307456 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•