Bug 60495 - Exception Catchpoint for StackOverflowException fails to break
Summary: Exception Catchpoint for StackOverflowException fails to break
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-02 15:32 UTC by Joel Martinez
Modified: 2017-11-08 18:17 UTC (History)
4 users (show)

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

error messages (184.63 KB, image/png)
2017-11-02 15:32 UTC, Joel Martinez

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 60495 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 Joel Martinez 2017-11-02 15:32:25 UTC
Created attachment 25545 [details]
error messages

If I'm debugging code that throws a StackOverflowException, and I add an exception catchpoint, it fails to break at all ... I've had mixed responses from the IDE. In one case, it writes `Stack overflow in unmanaged: IP: 0xa165bfc1, fault addr: 0xbf76ccac
Stack overflow in unmanaged: IP: 0x171b8c, fault addr: 0xbf76bfdc` ... in another case, it shows a few error windows (Screenshot attached). 

The expectation, of course, would be for the debugger to break, and show me the stack trace so that I can debug and see what chain is causing the loop that leads to the stack overflow.
Comment 1 Ludovic Henry 2017-11-08 18:17:23 UTC

Unfortunately, debugging a StackOverflowException is a bit tricky, since invoking the debugger while there is no more stack will most likely just trigger another stack overflow.

Can you get a stacktrace of the stackoverflow, or is that also failing?

Thank you,