Bug 51167 - Crash with empty stacktrace if a property returns itself
Summary: Crash with empty stacktrace if a property returns itself
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: 5.2 (2017-04)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Zoltan Varga
Depends on:
Reported: 2017-01-02 12:18 UTC by Emil Sylvest Jensen
Modified: 2017-07-14 19:17 UTC (History)
8 users (show)

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

Test Application (24.36 KB, application/x-zip-compressed)
2017-06-22 19:35 UTC, John Miller [MSFT]

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 51167 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 Emil Sylvest Jensen 2017-01-02 12:18:22 UTC
I accidentally had a property return itself instead of a private variable as I intended (see code below):

public bool IsToggledOn {
            get { return IsToggledOn; } 

This made the app crash with no error message and an empty stacktrace when IsToggledOn was accessed, by either the program or the debugger.
Comment 1 John Miller [MSFT] 2017-06-22 19:35:35 UTC
Created attachment 23061 [details]
Test Application

## Bookkeeping Note

I've attached a console app and Android app that run the code mentioned in the report. 

In the console application, while debugging, I do see a StackOverflow exception is thrown and pauses the debugger. 

While debugging the Android app it simply exits (crashes) without any stack trace information.
Comment 2 Jon Douglas [MSFT] 2017-07-07 17:28:10 UTC
I am CONFIRMING this behavior based on https://bugzilla.xamarin.com/show_bug.cgi?id=51167#c1

Although I believe the sample is running into a recursive scenario and this behavior seems reasonable, I am leaving the bug as is until further investigation can happen with the debugger.
Comment 3 Joaquin Jares 2017-07-14 19:16:57 UTC
This is also happening in VSfMac even for a console project. Assigning to runtime.