[Mono-bugs] [Bug 440046] New: `(int**) 0xdeadbeaf' yields 0xffffffffdeadbeaf, not 0x00000000deadbeaf

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 29 19:08:03 EDT 2008


           Summary: `(int**) 0xdeadbeaf' yields 0xffffffffdeadbeaf, not
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: vargaz at gmail.com
        ReportedBy: martin at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

The following test case:

using System;

unsafe class Program
        static void Main (string[] args)
                int** dead = (int**) 0xdeadbeaf;
                Console.WriteLine ("TEST: {0:x}", new IntPtr (dead).ToInt64

Prints 'ffffffffdeadbeaf' when run on Mono and 'deadbeaf' when run on .NET.

The same happens if you run the mcs-generated assembly on .NET or the
csc-generated one on Mono.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list