[Mono-bugs] [Bug 40720][Maj] New - Null check causes segfault
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 3 Apr 2003 11:00:34 -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 dick@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=40720
--- shadow/40720 Thu Apr 3 11:00:34 2003
+++ shadow/40720.tmp.30426 Thu Apr 3 11:00:34 2003
@@ -0,0 +1,36 @@
+Bug#: 40720
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: dick@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Null check causes segfault
+
+using System;
+
+class foo {
+ public static void Main()
+ {
+ Version v=null;
+
+ if(v==null) {
+ Console.WriteLine("woohoo!");
+ }
+ }
+}
+
+Latest runtime and class libs, this will segfault at the comparison.
+Changing the type of v (I tried String, because thats also sealed,
+IComparable, ICloneable) causes it to not crash.
+
+I can't see anything obviously wrong in Version.Equals() either.