Bug 31396 - Stack overflow while mono loads roslyn CSharpSyntaxGenerator.exe
Summary: Stack overflow while mono loads roslyn CSharpSyntaxGenerator.exe
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: marcos.henrich
URL:
Depends on:
Blocks:
 
Reported: 2015-06-26 05:42 UTC by marcos.henrich
Modified: 2015-07-06 06:53 UTC (History)
2 users (show)

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


Attachments
gdb frames of first seg fault (1.98 KB, application/octet-stream)
2015-06-26 05:42 UTC, marcos.henrich
Details


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 GitHub or Developer Community 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 marcos.henrich 2015-06-26 05:42:02 UTC
Created attachment 11747 [details]
gdb frames of first seg fault

Mono runtime crashes with stack overflows while loading roslyn/Binaries/Debug/CSharpSyntaxGenerator.exe

Mono used to build roslyn:https://github.com/esdrubal/mono/commit/8a500077604f92eef57288da224f69490a3e23ab
Roslyn builded:https://github.com/mono/roslyn/commit/d3a855e171d4d815804fae181beaa3fda8665284

The crash also happens while mono master tries to load CSharpSyntaxGenerator.exe.

mono /Users/marcos/dev/roslyn/Binaries/Debug/CSharpSyntaxGenerator.exe
Stack overflow in unmanaged: IP: 0x100c7b149, fault addr: 0x7fff5e98fc90
Stack overflow in unmanaged: IP: 0x100c7b149, fault addr: 0x7fff5e98de40
Stack overflow in unmanaged: IP: 0x7fff8f98d681, fault addr: 0x7fff5e98cff8
Stack overflow in unmanaged: IP: 0x100c7b149, fault addr: 0x7fff5e98bff0
Stack overflow in unmanaged: IP: 0x100c7b149, fault addr: 0x7fff5e98adc0
Stack overflow in unmanaged: IP: 0x100c7286d, fault addr: 0x7fff5e989fd8
Stack overflow in unmanaged: IP: 0x100c7b149, fault addr: 0x7fff5e988f70
Stack overflow: IP: 0x7fff8f98d6f5, fault addr: 0x7fff5e986ff8
Stacktrace:
Comment 1 marcos.henrich 2015-06-26 05:48:31 UTC
The following pull request fixes the bug:
https://github.com/mono/mono/pull/1900
Comment 2 marcos.henrich 2015-07-06 06:53:44 UTC
PR 1900 fixed the stack overflow, but the what was causing cyclic references was a bug on xbuild fixed by the following pull request:

https://github.com/mono/mono/pull/1906

Fixed in master 94e31f159f06fed9aa77c60c43b831fa0ffecc0c.
https://github.com/mono/mono/commit/94e31f159f06fed9aa77c60c43b831fa0ffecc0c