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 (show other bugs)
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)

See Also:
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]

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.

Note You need to log in before you can comment on or make changes to this bug.