[Mono-list] Coding advice before I raise a bug
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Fri Jun 13 11:22:11 UTC 2014
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of David Burnett
> Macintosh:Release vargol$ mono --version
> Mono JIT compiler version 3.2.7 ((no/40f92d5 Thu Feb 6 18:29:16 EST 2014)
A little bit outdated, but not too bad.
> running on OSX 10.6.8, 32 bit edition.
Eek. You should probably show more concern about security updates... But to each his own...
> I've tried running the bad version using --llvm and it seems to work correctly.
> A fresh compile against .net also works correctly.
That is telling.
> The branch is mono_bug
Ok, checked out...
> to run the example
> It should eventually fail
Yes, I got the same result. To get some more info about this, I'm using Xamarin Studio, and...
Actually, I observe, that as long as the debugger is attached, the program runs without any problem. As long as there's no debugger, then it crashes. So I agree that sounds like a bug. I'm not just talking about running the project in Debug vs Release mode... I mean...
In Release build, launch with debugging. It runs to completion, and I get this command line:
"/Library/Frameworks/Mono.framework/Versions/3.4.0/bin/mono" --debug --debugger-agent=transport=dt_socket,address=127.0.0.1:53317 "/Users/eharvey/Projects/PhotonPump/SunflowSharp.Test/bin/Release/SunflowSharp.Test.exe" /Users/eharvey/Projects/PhotonPump/examples/particle_chau.sc
Then literally run the same command again on the Terminal prompt, but eliminate "--debugger-agent=..."
And it fails.
More information about the Mono-list