[Mono-bugs] [Bug 42402][Nor] New - mcs silently crashes when using an invalid class combination during instantiation

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 5 May 2003 18:02:53 -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 awuest@swissonline.ch.

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

--- shadow/42402	Mon May  5 18:02:53 2003
+++ shadow/42402.tmp.15140	Mon May  5 18:02:53 2003
@@ -0,0 +1,61 @@
+Bug#: 42402
+Product: Mono/MCS
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: awuest@swissonline.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs silently crashes when using an invalid class combination during instantiation
+
+Description of Problem:
+
+mcs 0.23 crashes without further problem report or failure message, when
+using a not sensible combination of classes during an instantiation
+statement. Since mcs does not report anything, just terminates without
+saying "compilation succeeded", it is extremely difficult to find such a
+bug in a large program (I had to remove step-by-step every single class or
+its content until reaching the culprit itself, which made a lot of failed
+recompiles..)
+
+Steps to reproduce the problem:
+1. Compile:
+
+public class Store {
+	private double[] priceInfo = new int[4];
+}
+
+public class Controller {
+	public static void Main() {}
+}
+
+The culprit is the int[4]; instead it should be double[4].
+
+
+Actual Results:
+
+mcs plainly terminates without further notice, i.e. it does not report any
+line number or similar, nor throws a segfault or some other system failure.
+
+
+Expected Results:
+
+compilation succeeded
+
+
+How often does this happen? 
+
+everytime
+
+
+Additional Information:
+
+none