[Mono-bugs] [Bug 72152][Maj] New - segmentation fault on simple regex test

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Feb 2005 20:51:29 -0500 (EST)


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 mcsulits@gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=72152

--- shadow/72152	2005-02-02 20:51:29.000000000 -0500
+++ shadow/72152.tmp.8980	2005-02-02 20:51:29.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 72152
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mcsulits@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: segmentation fault on simple regex test
+
+After compiling the following source with mcs from mono 1.0.5 and running
+it I get a segmentation fault. I tested it on debian with mono 1.0.5 x86
+and gentoo x86 with mono 1.0.5 too.
+
+using System;
+using System.Text.RegularExpressions;
+
+class Testcase {
+  
+  public static int Main(string[] args){
+    string content = "\nbbbbbbb";
+    string cont2 = "";
+    for(int i = 1; i < 600; ++i){
+      cont2 += content;
+    }
+    Match m = Regex.Match(cont2, "(.|\n)*");
+    
+    return 0;
+  }    
+    
+}