Closed Bug 479168 Opened 17 years ago Closed 15 years ago

Regular Expression (Regex) enters infinite loop?

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: karl, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090218 Minefield/3.2a1pre When attempting to test a particular string with a particular regular expression the line failed to evaluate, and an Unresponsive Script Error message was shown. The line is: //^\w+(_\w+)+$//.test("000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000(number)") Reproducible: Always Steps to Reproduce: 1.Navigate to example page (http://werehamster.net/bugs/regex-bug.html) 2.run through tests Actual Results: Firefox hangs, until the unresponsive script error message appears, whereupon it it possible to halt the script. Expected Results: The regular expression should be evaluated correctly, or if that is not possible, then an error should be thrown. #444926 is a similar ticker, however that appears to be solved (at least in minefield latest).
Confirmed on Linux with 3.0.6 and 3.1b3pre. Hangs on 3rd test.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Product: Firefox → Core
QA Contact: general → general
Assignee: nobody → general
Component: General → JavaScript Engine
QA Contact: general → general
Is this reproducible with FF 3.6 or 4.0beta?
(In reply to comment #2) > Is this reproducible with FF 3.6 or 4.0beta? http://xenomonkey.com/bugs/regex-bug.html no longer exists.
URL: http://werehamster.net/bugs/regex-bug...NA http://werehamster.net/bugs/regex-...
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.