[Mono-bugs] [Bug 57274][Nor] New - Regex.Split hangs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Apr 2004 12:19:32 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=57274
--- shadow/57274 2004-04-20 12:19:32.000000000 -0400
+++ shadow/57274.tmp.15619 2004-04-20 12:19:32.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 57274
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Regex.Split hangs
+
+As reported in mono-list...
+Compile and run:
+using System;
+using System.Text.RegularExpressions;
+
+class MainClass {
+ public static void Main(string[] args)
+ {
+ string ss = "a b c d e";
+ string[] words = Regex.Split(ss, "[ \t\n\r]*");
+ forearch (string x in words)
+ Console.WriteLine (x);
+ }
+}
+
+Expected results:
+
+a
+
+b
+
+c
+
+d
+
+e
+
+Actual results:
+100% CPU used