Bug 52534 - Infinite Loop when should stack overflow
Summary: Infinite Loop when should stack overflow
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 4.6.0 (C8)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-02-15 19:12 UTC by ds3263
Modified: 2017-02-15 22:39 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Problematic executable (35.00 KB, application/x-msdownload)
2017-02-15 19:12 UTC, ds3263

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 for Bug 52534 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description ds3263 2017-02-15 19:12:31 UTC
Created attachment 19829 [details]
Problematic executable

I wrote some simple code in Dafny (https://github.com/Microsoft/Dafny)
I keep track of 3 numbers as linked lists of digits and repeatedly multiply and add pairs of them.
As long as I keep the iterations under a certain number, the .exe runs on both Windows 7 and on Mac/Linux with mono.
If I increase the number of iterations too much, I get a stackoverflow on Windows 7 but mono runs for over 5 minutes (duration of my test) without throwing an exception.

I'm afraid this is a security issue and mono is potentially accessing memory it shouldn't have access to.

Note: reproduced on Ubuntu 16.04 VM running on Google cloud.