[Mono-bugs] [Bug 51679][Wis] New - segfault on 'return'

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 3 Dec 2003 21:53:21 -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 orphennui@yahoo.com.

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

--- shadow/51679	2003-12-03 21:53:20.000000000 -0500
+++ shadow/51679.tmp.6065	2003-12-03 21:53:20.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 51679
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: orphennui@yahoo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: segfault on 'return'
+
+I get this crash when I put a 'return' at the top of a method with local
+variables, when debugging to make a method do nothing:
+
+** ERROR **: Invalid IL code at IL0054 in Daybook.ConfigManager:SaveConfig
+(Daybook.Backend): IL_0054: ldc.i4.5
+
+The method in question:
+
+public static void SaveConfig (Backend backend) {
+	return;
+
+	Type backend_type = backend.GetType ();
+	XmlSerializer serial = new XmlSerializer (backend_type, 
+		backend.GetSerializationTypes());
+
+	EnsureConfigDir ();
+
+	string filename = backend.User.Username + ":" + 
+		backend_type.FullName + ".xml";
+	Stream outstream = File.Create (Path.Combine (ConfigDir, 
+		filename));
+	serial.Serialize (outstream, backend);
+}