[Mono-bugs] [Bug 610587] New: Long perform a regular expression.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 1 07:41:50 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=610587
http://bugzilla.novell.com/show_bug.cgi?id=610587#c0
Summary: Long perform a regular expression.
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: Other
OS/Version: Debian Woody
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: kyevstig at mfisoft.ru
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Hello,
we found a trouble in using RegularExpression:
our user often input incorrect regexp like "^*8.*", when mono try to matching
this pattern mono use 100% cpu and this continues about 2.5 minutes. So system
stay this time and do not processing request.
test program:
--------------------------------------------
Console.WriteLine(DateTime.Now.ToString());
Regex.Match("888", "^*8.*");
Console.WriteLine(DateTime.Now.ToString());
--------------------------------------------
output:
--------------------------------------------
hp-bl9:~/7# /usr/local/mono2.6.4/bin/mono ./ConsoleApplication1.exe
06/01/2010 15:06:53
06/01/2010 15:09:19
hp-bl9:~/7#
the same problem on mono 2.4
it's stop all service so i think severity = major
Reproducible: Always
Steps to Reproduce:
1. make program with line Regex.Match("888", "^*8.*");
2. run program
3.
Actual Results:
program using 100%, and perform about 2,5 minutes.
Expected Results:
function Regex.Match return false and do it not do long time.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list