[Mono-bugs] [Bug 30035][Blo] New - Program fails to run, problem with the ABI perhaps.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
8 Sep 2002 18:55:47 -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 miguel@ximian.com.

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

--- shadow/30035	Sun Sep  8 14:55:47 2002
+++ shadow/30035.tmp.4831	Sun Sep  8 14:55:47 2002
@@ -0,0 +1,43 @@
+Bug#: 30035
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: misc
+AssignedTo: dietmar@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Program fails to run, problem with the ABI perhaps.
+
+The following program fails to run on Linux/RH7.3/gcc2.96/glibc2.2.5
+
+using System;
+using System.IO;
+
+
+class X {
+	static void Main ()
+	{
+		FileStream f = new FileStream ("test", FileMode.Create);
+
+		f.Seek (1024, SeekOrigin.Begin);
+		f.WriteByte (65);
+		f.Close ();
+
+		FileInfo fi = new FileInfo ("test");
+		if (fi.Length != 1025)
+			Console.WriteLine ("Fails");
+		else
+			Console.WriteLine ("Passes");
+	}
+
+}
+
+Running mono with strace will show some interesting things.