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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Feb 2005 11:14:12 -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 matze@braunis.de.

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

--- shadow/72152	2005-02-03 14:26:41.000000000 -0500
+++ shadow/72152.tmp.6614	2005-02-08 11:14:12.000000000 -0500
@@ -38,6 +38,44 @@
     
 }
 
 ------- Additional Comments From gonzalo@ximian.com  2005-02-03 14:26 -------
 Just verified that this fails on 1-0, not on HEAD and that there are
 no source code differences among the files in 1-0 and the ones in HEAD.
+
+------- Additional Comments From matze@braunis.de  2005-02-08 11:14 -------
+I investigated this a bit more on my system after Michael told me
+about the bug.
+
+Here on my box (gentoo x86, mono 1.0.5) I get a few error messages
+before it crashs:
+
+
+Unhandled Exception: System.StackOverflowException: The requested
+operation caused a stack overflow.
+in <0x000f6> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+in <0x015cd> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+
+...
+
+in <0x015cd> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+in <0x0101a> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+in <0x015cd> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+in <0x0101a> System.Text.RegularExpressions.Interpreter:Eval
+(System.Text.RegularExpressions.Interpreter/Mode,int&,int)
+
+Segmentation fault
+
+
+So it seems there are several bugs at work here:
+
+* mono seems to still suffer from crashs in case of stack overflows (a
+simple "class Test { public static void Main() { Main(); } }" crashs
+here too, but this bug is already filled a number of times.
+* The regex library has a bug that produces a stack overflow for this
+simple testcase...
+