Status: New
Owner: ----

New issue 2655 by [email protected]: Matching a particular regular expression causes hang/freeze!
http://code.google.com/p/v8/issues/detail?id=2655

This is hard to believe. Run this in Chrome or Node:

"https://www.dropbox.com/sh/oijdfs1uhn3zi6y/DoiUdfIpPE?m".match(/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/)

Node will hang. Chrome will hang if this JS is in a page. If in the console, the console will proceed to the next line right away, but you'll never see a result, and what you pasted won't be in the input history (e.g. if you press up).

Tested in Node 0.10, Node 0.6, and Chrome 26 across three different machines, all Mac OS X, but both 10.7 and 10.8.

I've randomly changed the characters of the Dropbox URL, but maintained their character classes (lowercase letter, uppercase letter, number). If I change the URL more, it seems to work, so there's something about this type of URL and/or the regular expression.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to