[Mono-dev] Weird bug in new port

Zoltan Varga vargaz at gmail.com
Sat Jul 15 05:14:17 EDT 2006


                                     Hi,

  It might be a problem with the 'unbox trampolines' which handle
virtual calls to valuetypes.
Maybe such a trampoline is not created by mono_magic_trampoline ()
when it should.

                         Zoltan

On 7/15/06, Bill Seurer <seurer at us.ibm.com> wrote:
>
> We're seeing a weird bug in the port (of Mono 1.1.15) we are working on for
> PASE on i5/OS (i.e., AIX).
>
> Here's a good example.  If I run this C# program (a small extract from
> something else):
>
> class MainClass
> {
>       public static void Main(string[] args)
>       {
>             int i;
>             object o;
>             string s1;
>
>             i = 12345678;           // 0x00bc614e
>             o = (object)i;
>             s1 = o.ToString();
>             System.Console.WriteLine(s1);
>       }
> }
>
> I get something like this output:
>
> 537061256
>
> which is 0x2002E788 in hex and probably a pointer to something that Mono
> created internally (it's in the right range for memory that Mono is
> allocating from).
>
> Everything looks good up to the call to ToString and ToString returns a
> string that actually has the characters "537061256" in it.  So it looks
> like ToString or something it calls is the culprit.  Does this look like
> anything someone else may have run into?
>
> I'm going to try to trace at a machine instruction level through ToString
> as it executes but that gets tricky with multiple function calls through
> pointers that Mono makes.
> --
> Bill Seurer     IBM System i5 internal compiler development   Rochester, MN
> Business: seurer at us.ibm.com                         Home: Bill at seurer.net
> http://w3.rchland.ibm.com/~seurer/                  http://www.seurer.net
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list