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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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] _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
