Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Func eval of functions that take 16-byte input structs corrupts the input #6628

Closed
gregg-miskelly opened this issue Sep 9, 2016 · 1 comment
Assignees
Milestone

Comments

@gregg-miskelly
Copy link
Contributor

Build a debuggee with the following code:

    public class Program
    {
        public static DateTime ReturnInput(DateTime input)
        {
            return input; 
        }

        public static void Main(string[] args)
        {
            DateTime now = DateTime.Now;
            Console.WriteLine(now); // set breakpoint here
        }
    }
  1. Set a breakpoint on the call to Console.WriteLine
  2. In the debugger evaluate now and ReturnInput(now)

Result:
The two variables have different values:

now
{09/08/2016 12:34:49}
ReturnInput(now)
{06/24/0001 02:59:04}

Expected:
Two values should be the same

@mikem8361 mikem8361 self-assigned this Sep 10, 2016
mikem8361 referenced this issue in mikem8361/coreclr Sep 12, 2016
Issue #7115.

MethodDescCallSide.CallTargetWorker used by funceval needed to deal with
enregistered 16 byte value types arguments not just return values.
mikem8361 referenced this issue in mikem8361/coreclr Sep 12, 2016
Issue #7115.

MethodDescCallSide.CallTargetWorker used by funceval needed to deal with
enregistered 16 byte value types arguments not just return values.
janvorli referenced this issue in dotnet/coreclr Sep 13, 2016
Issue #7115.

MethodDescCallSide.CallTargetWorker used by funceval needed to deal with
enregistered 16 byte value types arguments not just return values.
@mikem8361
Copy link
Member

PR dotnet/coreclr#7149 fix this.

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the 1.1.x milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants