Bug 1283 - Stack overflow exception while parsing cs files for code completion
Summary: Stack overflow exception while parsing cs files for code completion
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: 2.8.1
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-05 18:39 UTC by Krzysztof Kowalczyk
Modified: 2011-10-07 10:11 UTC (History)
4 users (show)

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

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 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.

Related Links:
Status:
RESOLVED FIXED

Description Krzysztof Kowalczyk 2011-10-05 18:39:52 UTC
This is MonoDevelop 2.8 on Windows.

Repro steps:
1. clone https://github.com/kjk/volante
2. Try to open csharp\Volante.sln

What happens: Mono Develop crashes

What should happen: no crash

It also crashes on Mac (last build I tried was 2.8 beta 1).

On some builds it didn't crash immediately but only after I tried to expand the list of files.

It's a rather simple solution that I created in Visual Studio 2010.

MonoDevelop also crashes when I try to re-create the project i.e. I create a new DLL project, use "Add files from folder", select "csharp\src" folder, use "Include al" option in the dialog, press "Ok" => crash.

If I'm to believe Visual Studio debugger, it's a stack overflow crash in "Background parser" thread: "An unhandled exception of type 'System.StackOverflowException' occurred in MonoDevelop.Core.dll"

Per procmon, the last file accessed are Btree.cs, BlobImpl.cs so most likely some built-in parser is crashing processing one of those files.
Comment 1 Mike Krüger 2011-10-07 10:11:15 UTC
fixed that one.