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: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
