Closed
Bug 1286946
Opened 9 years ago
Closed 9 years ago
Certain reg exp makes the browser very slow
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1276626
People
(Reporter: iammaxmaxmaximus, Unassigned)
Details
(Keywords: crash)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Steps to reproduce:
this is work
"qqqqqqqqqqqqqqqq wwwwwwwwwwwwwww".replace(/\w+(\w+(=('|").*\3)?\s*)*/, '')
this crash browser (i add > to the regExp end)
"qqqqqqqqqqqqqqqq wwwwwwwwwwwwwww".replace(/\w+(\w+(=('|").*\3)?\s*)*>/, '')
Updated•9 years ago
|
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Comment 1•9 years ago
|
||
it takes long time and pops up "slow script dialog", and it could result in executing RegExp in interpreter, and takes much more time.
so it should be related to bug 1276626.
but It doesn't cause crash for me.
See Also: → 1276626
Comment 2•9 years ago
|
||
Do you have crash report ID for the crash?
https://support.mozilla.org/en-US/kb/mozillacrashreporter
Flags: needinfo?(iammaxmaxmaximus)
| Reporter | ||
Comment 3•9 years ago
|
||
no, this chash charhed in all browsers
Comment 4•9 years ago
|
||
(In reply to iammaxmaxmaximus from comment #3)
> no, this chash charhed in all browsers
Sorry, what do you mean?
| Reporter | ||
Comment 5•9 years ago
|
||
Sorry, i from Russia, and use translator), i no understand your question =)
Comment 6•9 years ago
|
||
I want a "Crash Report" of the RegExp crash.
Please follow this document.
https://support.mozilla.org/ru/kb/otchet-o-padeniyah-mozilla
Then
1. do comment #0 in browser
2. (when browser crash) submit a crash report
3. post the "Report ID" here
| Reporter | ||
Comment 7•9 years ago
|
||
its not crash its very slow, and user needs restart browser, cuz another tabs not works TOO
Comment 8•9 years ago
|
||
Thank you :)
Then, it is the same bug as bug 1276626.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(iammaxmaxmaximus)
Resolution: --- → DUPLICATE
See Also: 1276626 →
Summary: reg exp crash the browser → Certain reg exp makes the browser very slow
You need to log in
before you can comment on or make changes to this bug.
Description
•