Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In the following code:
static double f(double a)
return a * 2;
public static void Main (string args)
double d = 2;
double d2 = f (d);
Console.WriteLine ("f(" + d + ") = " + d2);
the output is incorrect when stepping through code. If I place a breakpoint in the first line of Main, and then Step Over until I reach the readline, the output is incorrect in both the console and the locals view (it reads 3.75). If I place a breakpoint on each line, and repeat Run to the readline (rather than stepping), the output is correct.
If I step into the f() function, I see the parameter A equals 4.5 in the locals view, and the function returns 1.5.
What platform/mono version is this ?
I use MonoDevelop 4.1.7 on Ubuntu Linux.
mono --version yields:
Mono Runtime Engine version 3.2.3 (master/9acd6e3 vr okt 18 22:00:18 CEST 2013)
Copyright (C) 2002-2013 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
I can reproduce this. Seems like its amd64 only, the x86 version works fine.
Fixed in master 216ccda87a16eb92fd89ef54e0d9e8af5fa8f6b3.