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
Developer Community or GitHub 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.
Created attachment 2653 [details]
When a stack overflow occurs:
- no exception is thrown
- nothing is output to the "Application Output" pane
- the program just stops without explanation
In my current project, debugging just stopped. Finding the offending line involved stepping through every line of code until it broke, and even then I only identified it by noticing the trend in the call stack (after 2 hours of debugging).
public static void Main(string args)
Console.WriteLine ("Hello World!");
Main (new string);
Created attachment 2654 [details]
Screenshot of Visual Studio
In .NET, a StackOverflowException is thrown by the runtime, which is then handled by Visual Studio with an exception notification.
Thanks Michael, you're right -- the runtime should be catching this condition.
Yeah, StackOverFlowException has historically been a runtime problem on MacOS. The problem (as I understand it) is that when catching the signal, the stack has no space left for the handler to do anything... so it has to be relayed to an "altstack" (alternative stack). AFAIK it's been fixed on Mono 2.12 for a while, but the fix has not backported to Mono 2.10 (which MonoTouch uses) because it's quite invasive.
Just tried with Mono 2.11.5, and it's working (a StackOverflow exception is thrown).