[Mono-bugs] [Bug 31853][Nor] New - mono segfault/memory corruption on explicit enum conversion to string
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
7 Oct 2002 03:50:14 -0000
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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=31853
--- shadow/31853 Sun Oct 6 23:50:14 2002
+++ shadow/31853.tmp.12844 Sun Oct 6 23:50:14 2002
@@ -0,0 +1,35 @@
+Bug#: 31853
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vladimir@pobox.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono segfault/memory corruption on explicit enum conversion to string
+
+Given:
+/** startcode **/
+using System;
+class Driver {
+ enum FooEnum {
+ AA,
+ BB,
+ CC
+ }
+ public static void Main (string[] args) {
+ FooEnum fe = FooEnum.AA;
+ Console.WriteLine ("fe: " + (string) fe);
+ }
+}
+/** endcode **/
+
+mono will segfault. if the (string) cast is removed, things work as expected.