[Mono-bugs] [Bug 69958][Nor] New - Improper setter compiles but SEGs when run.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 27 Nov 2004 11:33:37 -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 jon@norman.k12.ok.us.
http://bugzilla.ximian.com/show_bug.cgi?id=69958
--- shadow/69958 2004-11-27 11:33:37.000000000 -0500
+++ shadow/69958.tmp.8253 2004-11-27 11:33:37.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 69958
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: Gentoo 2004.3
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jon@norman.k12.ok.us
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Improper setter compiles but SEGs when run.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Compiler allows improper setter usage. The JIT compiler (mono) seg faults
+when it runs the resulting assembly. The interpreter (mint) hangs when it
+runs the assembly.
+
+Steps to reproduce the problem:
+1. mcs test.cs
+2. mono test.exe
+
+Actual Results:
+Segmentation fault
+
+Expected Results: none
+
+How often does this happen? always
+
+Additional Information: mono 1.0.4
+
+test.cs
+================================
+class Broken
+{
+ public int i {
+ set { i = value; }
+ }
+}
+
+class MainClass
+{
+ public static void Main() {
+ Broken b = new Broken();
+ b.i = 5;
+ }
+}