[Mono-bugs] [Bug 82137][Nor] New - s390/s390x don't handle specific function calls correctly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jul 19 09:18:57 EDT 2007
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 rolfkvinge at ya.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82137
--- shadow/82137 2007-07-19 09:18:57.000000000 -0400
+++ shadow/82137.tmp.27766 2007-07-19 09:18:57.000000000 -0400
@@ -0,0 +1,99 @@
+Bug#: 82137
+Product: Mono: Runtime
+Version: 1.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: rolfkvinge at ya.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: s390/s390x don't handle specific function calls correctly
+
+Repro:
+
+using System;
+
+class C
+{
+ static void Main ()
+ {
+ C c = new C ();
+ c.Test ();
+ }
+ public void Test ()
+ {
+ Token tok = new Token ();
+ tok.m_TokenObject = "something";
+
+ Console.WriteLine ("Sending: {0}", tok.m_TokenObject);
+ Test (tok, null, null, null, null, new Span ());
+ // Test (tok, null, null, null, null, 2);
+ Console.WriteLine ("Got back: {0}", tok.m_TokenObject);
+ }
+
+ public void Test (Token tok, object a, object b, object c, object
+d, long Location)
+ {
+ Console.WriteLine ("Got: {0}", tok.m_TokenObject);
+ }
+
+ public void Test (Token tok, object a, object b, object c, object
+d, Span Location)
+ {
+ Console.WriteLine ("Got: {0}", tok.m_TokenObject);
+ }
+
+}
+
+struct Token
+{
+ public object m_TokenObject;
+ public long m_Location;
+}
+
+struct Span
+{
+ public long m_Line;
+}
+
+Actual result:
+Sending: something
+Got:
+Got back: something
+
+Expected result:
+Sending: something
+Got: something
+Got back: something
+
+Notes:
+- Uncommenting the commented line will show this:
+Sending: something
+Got:
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+ at (wrapper stelemref) System.Object:stelemref (object,intptr,object)
+ at System.String.Format (System.String format, System.Object
+arg0) [0x00000] in /home/builder/tmp/monobuild/build/BUILD/mono-82271/mcs/
+class/corlib/System/String.cs:1413
+ at System.IO.TextWriter.Write (System.String format, System.Object
+arg0) [0x00000] in /home/builder/tmp/monobuild/build/BUILD/mono-82271/mcs/
+class/corlib/System.IO/TextWriter.cs:189
+ at System.IO.TextWriter.WriteLine (System.String format, System.Object
+arg0) [0x00008] in /home/builder/tmp/monobuild/build/BUILD/mono-82271/mcs/
+class/corlib/System.IO/TextWriter.cs:304
+ at System.Console.WriteLine (System.String format, System.Object
+arg0) [0x0000c] in /home/builder/tmp/monobuild/build/BUILD/mono-82271/mcs/
+class/corlib/System/Console.cs:419
+ at C.Test (Token tok, System.Object a, System.Object b, System.Object c,
+System.Object d, Int64 Location) [0x00000]
+ at C.Test () [0x00000]
+ at C.Main () [0x00000]
More information about the mono-bugs
mailing list