Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to Roslyn 2.7.0 #1132

Merged
merged 7 commits into from
Apr 5, 2018
Merged

Conversation

filipw
Copy link
Member

@filipw filipw commented Mar 13, 2018

The stable packages are out.

@rchande
Copy link

rchande commented Mar 13, 2018

@filipw Can you also update the changelog? Makes it a little easier for me when we do a release 😄 . LGTM other than that.

@filipw
Copy link
Member Author

filipw commented Mar 13, 2018

ah thanks for spotting 👍

@david-driscoll
Copy link
Member

@filipw looks like mono is not happy.

@DustinCampbell is this using the embedded mono build to run tests or the mono installed on travis?

Either way an error like Assertion at local-propagation.c:562, condition ins->opcode > MONO_CEE_LAST' not met` is very obtuse to me :(

@filipw
Copy link
Member Author

filipw commented Mar 13, 2018

ugh you are right. It worked fine on my Windows box in VS Code, but on macOS I see this:

        ************ Request ************
{
  "Type": "request",
  "Seq": 29,
  "Command": "/currentfilemembersastree",
  "Arguments": {
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 29,
  "Command": "/currentfilemembersastree",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "TopLevelTypeDefinitions": []
  },
  "Seq": 746,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 30,
  "Command": "/v2/getcodeactions",
  "Arguments": {
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx",
    "Line": 6,
    "Column": 33
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 28,
  "Command": "/autocomplete",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": [],
  "Seq": 743,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 31,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject()lock (this)\n{\n    \n}",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 31,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 752,
  "Type": "response"
}
Stacktrace:

  at <unknown> <0xffffffff>
  at Roslyn.Utilities.ObjectWriter.WriteString (string) [0x00000] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.Execution.AbstractReferenceSerializationService.WritePortableExecutableReferencePropertiesTo (Microsoft.CodeAnalysis.PortableExecutableReference,Roslyn.Utilities.ObjectWriter,System.Threading.CancellationToken) [0x00015] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.Execution.AbstractReferenceSerializationService.CreatePortableExecutableReferenceChecksum (Microsoft.CodeAnalysis.PortableExecutableReference,System.Threading.CancellationToken) [0x0000e] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.Execution.AbstractReferenceSerializationService.CreateChecksum (Microsoft.CodeAnalysis.MetadataReference,System.Threading.CancellationToken) [0x0000a] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.Serialization.Serializer.CreateChecksum (object,System.Threading.CancellationToken) [0x00072] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.SymbolTreeInfo/<>c__DisplayClass48_0.<GetMetadataChecksum>b__0 (object) [0x00010] in <66ed5d668f9745538109fd99729c4ef9>:0
  at System.Runtime.CompilerServices.ConditionalWeakTable`2<TKey_REF, TValue_REF>.GetValue (TKey_REF,System.Runtime.CompilerServices.ConditionalWeakTable`2/CreateValueCallback<TKey_REF, TValue_REF>) [0x00033] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.Serialization.ChecksumCache.GetOrCreate (object,System.Runtime.CompilerServices.ConditionalWeakTable`2/CreateValueCallback<object, object>) [0x00000] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.SymbolTreeInfo.GetMetadataChecksum (Microsoft.CodeAnalysis.Solution,Microsoft.CodeAnalysis.PortableExecutableReference,System.Threading.CancellationToken) [0x0001b] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.SymbolTreeInfo.GetInfoForMetadataReferenceAsync (Microsoft.CodeAnalysis.Solution,Microsoft.CodeAnalysis.PortableExecutableReference,bool,System.Threading.CancellationToken) [0x00000] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<AddMetadataDeclarationsWithNormalQueryAsync>d__2.MoveNext () [0x0005a] in <66ed5d668f9745538109fd99729c4ef9>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<AddMetadataDeclarationsWithNormalQueryAsync>d__2> (Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<AddMetadataDeclarationsWithNormalQueryAsync>d__2&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder.AddMetadataDeclarationsWithNormalQueryAsync (Microsoft.CodeAnalysis.Project,Microsoft.CodeAnalysis.IAssemblySymbol,Microsoft.CodeAnalysis.PortableExecutableReference,Microsoft.CodeAnalysis.FindSymbols.SearchQuery,Microsoft.CodeAnalysis.SymbolFilter,Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.FindSymbols.SymbolAndProjectId>,System.Threading.CancellationToken) [0x00056] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryInCurrentProcessAsync>d__8.MoveNext () [0x00239] in <66ed5d668f9745538109fd99729c4ef9>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.FindSymbols.SymbolAndProjectId>>.Start<Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryInCurrentProcessAsync>d__8> (Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryInCurrentProcessAsync>d__8&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder.FindAllDeclarationsWithNormalQueryInCurrentProcessAsync (Microsoft.CodeAnalysis.Project,Microsoft.CodeAnalysis.FindSymbols.SearchQuery,Microsoft.CodeAnalysis.SymbolFilter,System.Threading.CancellationToken) [0x0003b] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryAsync>d__7.MoveNext () [0x000ff] in <66ed5d668f9745538109fd99729c4ef9>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.FindSymbols.SymbolAndProjectId>>.Start<Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryAsync>d__7> (Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder/<FindAllDeclarationsWithNormalQueryAsync>d__7&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.FindSymbols.DeclarationFinder.FindAllDeclarationsWithNormalQueryAsync (Microsoft.CodeAnalysis.Project,Microsoft.CodeAnalysis.FindSymbols.SearchQuery,Microsoft.CodeAnalysis.SymbolFilter,System.Threading.CancellationToken) [0x0003b] in <66ed5d668f9745538109fd99729c4ef9>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/AllSymbolsProjectSearchScope/<FindDeclarationsAsync>d__1<TSimpleNameSyntax_REF>.MoveNext () [0x00011] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.ISymbol>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/AllSymbolsProjectSearchScope/<FindDeclarationsAsync>d__1<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/AllSymbolsProjectSearchScope/<FindDeclarationsAsync>d__1<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/AllSymbolsProjectSearchScope<TSimpleNameSyntax_REF>.FindDeclarationsAsync (Microsoft.CodeAnalysis.SymbolFilter,Microsoft.CodeAnalysis.FindSymbols.SearchQuery) [0x00033] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope/<FindDeclarationsAsync>d__6<TSimpleNameSyntax_REF>.MoveNext () [0x00091] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolResult`1<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax, Microsoft.CodeAnalysis.ISymbol>>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope/<FindDeclarationsAsync>d__6<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope/<FindDeclarationsAsync>d__6<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope<TSimpleNameSyntax_REF>.FindDeclarationsAsync (string,TSimpleNameSyntax_REF,Microsoft.CodeAnalysis.SymbolFilter) [0x0003b] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<GetReferencesForMatchingTypesAsync>d__22<TSimpleNameSyntax_REF>.MoveNext () [0x000f9] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReference<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<GetReferencesForMatchingTypesAsync>d__22<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<GetReferencesForMatchingTypesAsync>d__22<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder<TSimpleNameSyntax_REF>.GetReferencesForMatchingTypesAsync (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope<TSimpleNameSyntax_REF>) [0x0002b] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<DoAsync>d__19<TSimpleNameSyntax_REF>.MoveNext () [0x00034] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReference<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<DoAsync>d__19<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder/<DoAsync>d__19<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder<TSimpleNameSyntax_REF>.DoAsync (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SearchScope<TSimpleNameSyntax_REF>) [0x0002b] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder<TSimpleNameSyntax_REF>.FindInAllSymbolsInStartingProjectAsync (bool,System.Threading.CancellationToken) [0x00019] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsInAllSymbolsInStartingProjectAsync>d__22<TSimpleNameSyntax_REF>.MoveNext () [0x00011] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsInAllSymbolsInStartingProjectAsync>d__22<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsInAllSymbolsInStartingProjectAsync>d__22<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1<TSimpleNameSyntax_REF>.FindResultsInAllSymbolsInStartingProjectAsync (Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/Reference<TSimpleNameSyntax_REF>>,Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder<TSimpleNameSyntax_REF>,bool,System.Threading.CancellationToken) [0x00044] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__21<TSimpleNameSyntax_REF>.MoveNext () [0x0002f] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/Reference<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__21<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__21<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1<TSimpleNameSyntax_REF>.FindResultsAsync (System.Collections.Concurrent.ConcurrentDictionary`2<Microsoft.CodeAnalysis.Project, Roslyn.Utilities.AsyncLazy`1<Microsoft.CodeAnalysis.IAssemblySymbol>>,System.Collections.Concurrent.ConcurrentDictionary`2<Microsoft.CodeAnalysis.PortableExecutableReference, Microsoft.CodeAnalysis.Compilation>,Microsoft.CodeAnalysis.Project,Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/SymbolReferenceFinder<TSimpleNameSyntax_REF>,bool,System.Threading.CancellationToken) [0x00056] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__19<TSimpleNameSyntax_REF>.MoveNext () [0x000c9] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/Reference<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__19<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<FindResultsAsync>d__19<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1<TSimpleNameSyntax_REF>.FindResultsAsync (Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.SemanticModel,string,Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SymbolSearch.ISymbolSearchService,bool,System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.Packaging.PackageSource>,System.Threading.CancellationToken) [0x00068] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesInCurrentProcessAsync>d__18<TSimpleNameSyntax_REF>.MoveNext () [0x001d0] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AddImportFixData>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesInCurrentProcessAsync>d__18<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesInCurrentProcessAsync>d__18<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1<TSimpleNameSyntax_REF>.GetFixesInCurrentProcessAsync (Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.Text.TextSpan,string,bool,Microsoft.CodeAnalysis.SymbolSearch.ISymbolSearchService,bool,System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.Packaging.PackageSource>,System.Threading.CancellationToken) [0x00068] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesAsync>d__17<TSimpleNameSyntax_REF>.MoveNext () [0x001c7] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.AddImport.AddImportFixData>>.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesAsync>d__17<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1/<GetFixesAsync>d__17<Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax>&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1<TSimpleNameSyntax_REF>.GetFixesAsync (Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.Text.TextSpan,string,bool,Microsoft.CodeAnalysis.SymbolSearch.ISymbolSearchService,bool,System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.Packaging.PackageSource>,System.Threading.CancellationToken) [0x00068] in <380344389f86411a9e8962384fddfb12>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportCodeFixProvider/<RegisterCodeFixesAsync>d__4.MoveNext () [0x001de] in <380344389f86411a9e8962384fddfb12>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.CodeAnalysis.AddImport.AbstractAddImportCodeFixProvider/<RegisterCodeFixesAsync>d__4> (Microsoft.CodeAnalysis.AddImport.AbstractAddImportCodeFixProvider/<RegisterCodeFixesAsync>d__4&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at Microsoft.CodeAnalysis.AddImport.AbstractAddImportCodeFixProvider.RegisterCodeFixesAsync (Microsoft.CodeAnalysis.CodeFixes.CodeFixContext) [0x0002b] in <380344389f86411a9e8962384fddfb12>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2/<AppendFixesAsync>d__13<TRequest_REF, TResponse_REF>.MoveNext () [0x00140] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2<TRequest_REF, TResponse_REF>.AppendFixesAsync (Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.Text.TextSpan,System.Collections.Generic.IEnumerable`1<Microsoft.CodeAnalysis.Diagnostic>,System.Collections.Generic.List`1<Microsoft.CodeAnalysis.CodeActions.CodeAction>) [0x00043] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2/<CollectCodeFixesActions>d__12<TRequest_REF, TResponse_REF>.MoveNext () [0x0021b] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2<TRequest_REF, TResponse_REF>.CollectCodeFixesActions (Microsoft.CodeAnalysis.Document,Microsoft.CodeAnalysis.Text.TextSpan,System.Collections.Generic.List`1<Microsoft.CodeAnalysis.CodeActions.CodeAction>) [0x0003b] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2/<GetAvailableCodeActions>d__10<TRequest_REF, TResponse_REF>.MoveNext () [0x00115] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.BaseCodeActionService`2<TRequest_REF, TResponse_REF>.GetAvailableCodeActions (OmniSharp.Models.V2.ICodeActionRequest) [0x0002d] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService/<Handle>d__1.MoveNext () [0x0000f] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.GetCodeActionsService.Handle (OmniSharp.Models.V2.GetCodeActionsRequest) [0x0002d] in <5aac748647e64a4e8ff4ad99dbb8fe16>:0
  at OmniSharp.Endpoint.Exports.RequestHandlerExportHandler`2<TRequest_REF, TResponse_REF>.Handle (TRequest_REF) [0x00001] in <294dd32eac29442cab132ada978c23bc>:0
  at OmniSharp.Endpoint.EndpointHandler`2/<HandleSingleRequest>d__18<TRequest_REF, TResponse_REF>.MoveNext () [0x000bd] in <294dd32eac29442cab132ada978c23bc>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Endpoint.EndpointHandler`2<TRequest_REF, TResponse_REF>.HandleSingleRequest (string,TRequest_REF,OmniSharp.Stdio.Protocol.RequestPacket) [0x0003b] in <294dd32eac29442cab132ada978c23bc>:0
  at OmniSharp.Endpoint.EndpointHandler`2<TRequest_REF, TResponse_REF>.HandleLanguageRequest (string,TRequest_REF,OmniSharp.Stdio.Protocol.RequestPacket) [0x0000f] in <294dd32eac29442cab132ada978c23bc>:0
  at OmniSharp.Endpoint.EndpointHandler`2/<Process>d__16<TRequest_REF, TResponse_REF>.MoveNext () [0x0027b] in <294dd32eac29442cab132ada978c23bc>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Endpoint.EndpointHandler`2<TRequest_REF, TResponse_REF>.Process (OmniSharp.Stdio.Protocol.RequestPacket,OmniSharp.Endpoint.LanguageModel,Newtonsoft.Json.Linq.JToken) [0x0003b] in <294dd32eac29442cab132ada978c23bc>:0
  at OmniSharp.Endpoint.EndpointHandler`2<TRequest_REF, TResponse_REF>.Handle (OmniSharp.Stdio.Protocol.RequestPacket) [0x00016] in <294dd32eac29442cab132ada978c23bc>:0
  at OmniSharp.Stdio.Host/<HandleRequest>d__15.MoveNext () [0x000da] in <dde4c310e674452c9e2eac109c92fa9b>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Stdio.Host.HandleRequest (string,Microsoft.Extensions.Logging.ILogger) [0x00034] in <dde4c310e674452c9e2eac109c92fa9b>:0
  at OmniSharp.Stdio.Host/<>c__DisplayClass14_0/<<Start>b__1>d.MoveNext () [0x00018] in <dde4c310e674452c9e2eac109c92fa9b>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<TStateMachine_REF> (TStateMachine_REF&) [0x0002c] in <ac812cae460544af83bd6cf54c5eee87>:0
  at OmniSharp.Stdio.Host/<>c__DisplayClass14_0.<Start>b__1 () [0x00026] in <dde4c310e674452c9e2eac109c92fa9b>:0
  at System.Threading.Tasks.Task`1<TResult_REF>.InnerInvoke () [0x0000f] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.Tasks.Task.Execute () [0x00010] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (object) [0x00000] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x00050] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x00058] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <ac812cae460544af83bd6cf54c5eee87>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <ac812cae460544af83bd6cf54c5eee87>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) [0x0001e] in <ac812cae460544af83bd6cf54c5eee87>:0

Native stacktrace:

	0   mono                                0x000000010c849541 mono_handle_native_crash + 257
	1   mono                                0x000000010c8b0ff6 altstack_handle_and_restore + 70
	2   mono                                0x000000010c808117 mono_local_cprop + 423
	3   mono                                0x000000010c7993e7 mini_method_compile + 4375
	4   mono                                0x000000010c79c525 mono_jit_compile_method_inner + 773
	5   mono                                0x000000010c79fa93 mono_jit_compile_method_with_opt + 1379
	6   mono                                0x000000010c84b9e1 common_call_trampoline + 1217
	7   mono                                0x000000010c84b4e9 mono_magic_trampoline + 73
	8   ???                                 0x000000010cc2139e 0x0 + 4509012894
	9   ???                                 0x0000000115415d9b 0x0 + 4651572635
	10  ???                                 0x0000000115410a53 0x0 + 4651551315
	11  ???                                 0x000000011541093b 0x0 + 4651551035
	12  ???                                 0x000000011540a1bb 0x0 + 4651524539
	13  ???                                 0x000000011540a0bb 0x0 + 4651524283
	14  ???                                 0x0000000115408bab 0x0 + 4651518891
	15  ???                                 0x0000000115408a3b 0x0 + 4651518523
	16  ???                                 0x000000011540380b 0x0 + 4651497483
	17  ???                                 0x0000000115402d5b 0x0 + 4651494747
	18  ???                                 0x0000000115402c0b 0x0 + 4651494411
	19  ???                                 0x000000011540008b 0x0 + 4651483275
	20  ???                                 0x00000001153ff943 0x0 + 4651481411
	21  ???                                 0x00000001153ff143 0x0 + 4651479363
	22  ???                                 0x00000001153fefed 0x0 + 4651479021
	23  ???                                 0x00000001153fdd6b 0x0 + 4651474283
	24  ???                                 0x00000001153fd5a5 0x0 + 4651472293
	25  ???                                 0x00000001153f296b 0x0 + 4651428203
	26  ???                                 0x00000001153f27fd 0x0 + 4651427837
	27  ???                                 0x00000001153f152b 0x0 + 4651423019
	28  ???                                 0x00000001153f0e8d 0x0 + 4651421325
	29  ???                                 0x00000001153f0683 0x0 + 4651419267
	30  ???                                 0x00000001153f0535 0x0 + 4651418933
	31  ???                                 0x00000001153ef23b 0x0 + 4651414075
	32  ???                                 0x00000001153ef0bb 0x0 + 4651413691
	33  ???                                 0x00000001153e8393 0x0 + 4651385747
	34  ???                                 0x00000001153e7c6b 0x0 + 4651383915
	35  ???                                 0x00000001153e7483 0x0 + 4651381891
	36  ???                                 0x00000001153e4a33 0x0 + 4651371059
	37  ???                                 0x00000001153e339b 0x0 + 4651365275
	38  ???                                 0x00000001153e3233 0x0 + 4651364915
	39  ???                                 0x00000001153e0a5b 0x0 + 4651354715
	40  ???                                 0x00000001153df70b 0x0 + 4651349771
	41  ???                                 0x00000001153df04b 0x0 + 4651348043
	42  ???                                 0x00000001153de6d7 0x0 + 4651345623
	43  ???                                 0x00000001153dd7db 0x0 + 4651341787
	44  ???                                 0x00000001153dd6a3 0x0 + 4651341475
	45  ???                                 0x00000001153d0190 0x0 + 4651286928
	46  mscorlib.dll.dylib                  0x000000010eabb7db System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_REF_TStateMachine_REF_ + 107
	47  ???                                 0x00000001153ce25b 0x0 + 4651278939
	48  mscorlib.dll.dylib                  0x000000010eabb7db System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_REF_TStateMachine_REF_ + 107
	49  ???                                 0x0000000113d319fb 0x0 + 4627569147
	50  mscorlib.dll.dylib                  0x000000010eabba9b System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
	51  ???                                 0x0000000113d19803 0x0 + 4627470339
	52  mscorlib.dll.dylib                  0x000000010eabba9b System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
	53  ???                                 0x0000000113d18abb 0x0 + 4627466939
	54  mscorlib.dll.dylib                  0x000000010eabba9b System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
	55  ???                                 0x00000001139cda63 0x0 + 4624013923

Debug info from gdb:

[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 32,
  "Command": "/currentfilemembersastree",
  "Arguments": {
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 32,
  "Command": "/currentfilemembersastree",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "TopLevelTypeDefinitions": []
  },
  "Seq": 755,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 33,
  "Command": "/v2/getcodeactions",
  "Arguments": {
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx",
    "Selection": {
      "Start": {
        "Line": 6,
        "Column": 38
      },
      "End": {
        "Line": 6,
        "Column": 42
      }
    }
  }
}
(lldb) command source -s 0 '/tmp/mono-gdb-commands.eosxXK'
Executing commands in '/tmp/mono-gdb-commands.eosxXK'.
(lldb) process attach --pid 23414
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 23414 stopped
* thread #1: tid = 0x64378e8, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
->  0x7fff9ad3cbf2 <+10>: jae    0x7fff9ad3cbfc            ; <+20>
    0x7fff9ad3cbf4 <+12>: movq   %rax, %rdi
    0x7fff9ad3cbf7 <+15>: jmp    0x7fff9ad35caf            ; cerror_nocancel
    0x7fff9ad3cbfc <+20>: retq   

Executable module set to "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 23414 stopped
* thread #1: tid = 0x64378e8, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0x64378e9, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #3: tid = 0x64378ea, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
  thread #4: tid = 0x64378eb, 0x00007fff9ad35386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
  thread #5: tid = 0x64378f1, 0x00007fff9ad3d44e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #6: tid = 0x64378f6, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_270b'
  thread #7: tid = 0x64378f7, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
  thread #8: tid = 0x64378f8, 0x00007fff9ad3e246 libsystem_kernel.dylib`read + 10, name = 'Threadpool worker'
  thread #9: tid = 0x64378f9, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
  thread #10: tid = 0x64378fa, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'
  thread #11: tid = 0x6437909, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
  thread #12: tid = 0x6437911, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
  thread #13: tid = 0x6437959, 0x00007fff9ada81d6 libsystem_malloc.dylib`_platform_memset, name = 'Threadpool worker'
  thread #14: tid = 0x643795b, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
  thread #15: tid = 0x643795c, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_4903'
  thread #16: tid = 0x6437963, 0x00007fff9ad3d3ee libsystem_kernel.dylib`__wait4 + 10, name = 'Threadpool worker'
(lldb) thread backtrace all
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
(lldb) * thread #1: tid = 0x64378e8, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c98907b mono`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x00007f8d70804ac0, mutex=0x00007f8d70804a80) + 11 at mono-os-mutex.h:173 [opt]
    frame #3: 0x000000010c989070 mono`mono_os_cond_timedwait(cond=0x00007f8d70804ac0, mutex=0x00007f8d70804a80, timeout_ms=4294967295) + 160 at mono-os-mutex.h:188 [opt]
    frame #4: 0x000000010c987c81 mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=4294967295, poll=0, alerted=<unavailable>) + 8 at w32handle.c:956 [opt]
    frame #5: 0x000000010c987c79 mono`mono_w32handle_timedwait_signal_handle(handle=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) + 217 at w32handle.c:1071 [opt]
    frame #6: 0x000000010c987b20 mono`mono_w32handle_wait_one(handle=0x000000000000202e, timeout=<unavailable>, alertable=<unavailable>) + 832 at w32handle.c:1190 [opt]
    frame #7: 0x000000010c987e03 mono`mono_w32handle_wait_multiple(handles=0x00007fff5346d710, nhandles=1, waitall=0, timeout=<unavailable>, alertable=<unavailable>) + 195 at w32handle.c:1224 [opt]
    frame #8: 0x000000010c9629c3 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) + 115 at threads.c:1892 [opt]
    frame #9: 0x000000010c962cba mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x000000000000202e, ms=-1) + 122 at threads.c:2017 [opt]
    frame #10: 0x00000001104b185e
    frame #11: 0x000000010e9e1a90 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64
    frame #12: 0x000000010e9e1a3c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44
    frame #13: 0x000000010e9e18a3 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51
    frame #14: 0x000000010e9e19a1 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne + 33
    frame #15: 0x000000010ccdc6c7
    frame #16: 0x000000010ccdbbe2
    frame #17: 0x000000010ccd781b

  thread #2: tid = 0x64378e9, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010ca110af mono`thread_func [inlined] mono_os_cond_wait(cond=0x000000010cb38960, mutex=<unavailable>) + 12 at mono-os-mutex.h:173 [opt]
    frame #3: 0x000000010ca110a3 mono`thread_func(thread_data=0x000000010cb38918) + 675 at sgen-thread-pool.c:108 [opt]
    frame #4: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #5: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #6: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #3: tid = 0x64378ea, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010ca110af mono`thread_func [inlined] mono_os_cond_wait(cond=0x000000010cb8cbd0, mutex=<unavailable>) + 12 at mono-os-mutex.h:173 [opt]
    frame #3: 0x000000010ca110a3 mono`thread_func(thread_data=0x000000010ccc6108) + 675 at sgen-thread-pool.c:108 [opt]
    frame #4: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #5: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #6: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #4: tid = 0x64378eb, 0x00007fff9ad35386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
    frame #0: 0x00007fff9ad35386 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x000000010c9932c5 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 11 at mono-os-semaphore.h:91 [opt]
    frame #2: 0x000000010c9932ba mono`finalizer_thread + 12 at mono-coop-semaphore.h:43 [opt]
    frame #3: 0x000000010c9932ae mono`finalizer_thread(unused=<unavailable>) + 270 at gc.c:864 [opt]
    frame #4: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #5: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d70421160) + 547 at threads.c:891 [opt]
    frame #6: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #7: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #8: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #5: tid = 0x64378f1, 0x00007fff9ad3d44e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff9ad3d44e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff9ae2748e libsystem_pthread.dylib`_pthread_wqthread + 1023
    frame #2: 0x00007fff9ae2707d libsystem_pthread.dylib`start_wqthread + 13

  thread #6: tid = 0x64378f6, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_270b'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010ca26e79 mono`mono_thread_info_sleep [inlined] mono_os_cond_timedwait + 130 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010ca26df7 mono`mono_thread_info_sleep + 12 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010ca26deb mono`mono_thread_info_sleep [inlined] sleep_interruptable(ms=<unavailable>, alerted=<unavailable>) + 73 at mono-threads.c:1200 [opt]
    frame #5: 0x000000010ca26da2 mono`mono_thread_info_sleep(ms=500, alerted=0x00007000034c2d88) + 562 at mono-threads.c:1232 [opt]
    frame #6: 0x000000010c96bd7a mono`monitor_thread(unused=<unavailable>) + 922 at threadpool-worker-default.c:693 [opt]
    frame #7: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #8: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d70741650) + 547 at threads.c:891 [opt]
    frame #9: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #10: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #11: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #7: tid = 0x64378f7, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c96c361 mono`worker_thread [inlined] mono_os_cond_timedwait + 139 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c96c2d6 mono`worker_thread + 13 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010c96c2c9 mono`worker_thread + 296 at threadpool-worker-default.c:417 [opt]
    frame #5: 0x000000010c96c1a1 mono`worker_thread(unused=<unavailable>) + 353 at threadpool-worker-default.c:484 [opt]
    frame #6: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #7: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d7048a5c0) + 547 at threads.c:891 [opt]
    frame #8: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #9: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #10: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #8: tid = 0x64378f8, 0x00007fff9ad3e246 libsystem_kernel.dylib`read + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3e246 libsystem_kernel.dylib`read + 10
    frame #1: 0x000000010c8c6a69 mono`console_read(handle=<unavailable>, buffer=0x00000001126d4580, numbytes=<unavailable>, bytesread=0x00007000038c80d4) + 153 at w32file-unix.c:1903 [opt]
    frame #2: 0x000000010c8f4ebd mono`ves_icall_System_IO_MonoIO_Read(handle=0x0000000000000000, dest=0x00000001126d4560, dest_offset=<unavailable>, count=1024, error=0x00007000038c81d8) + 125 at w32file.c:866 [opt]
    frame #3: 0x000000010ccdea35

  thread #9: tid = 0x64378f9, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c96c361 mono`worker_thread [inlined] mono_os_cond_timedwait + 139 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c96c2d6 mono`worker_thread + 13 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010c96c2c9 mono`worker_thread + 296 at threadpool-worker-default.c:417 [opt]
    frame #5: 0x000000010c96c1a1 mono`worker_thread(unused=<unavailable>) + 353 at threadpool-worker-default.c:484 [opt]
    frame #6: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #7: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d70740330) + 547 at threads.c:891 [opt]
    frame #8: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #9: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #10: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #10: tid = 0x64378fa, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Timer-Scheduler'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c98905f mono`mono_os_cond_timedwait(cond=0x00007f8d708032d8, mutex=0x00007f8d70803298, timeout_ms=<unavailable>) + 143 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c987c81 mono`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=99, poll=0, alerted=<unavailable>) + 8 at w32handle.c:956 [opt]
    frame #4: 0x000000010c987c79 mono`mono_w32handle_timedwait_signal_handle(handle=<unavailable>, timeout=<unavailable>, poll=0, alerted=<unavailable>) + 217 at w32handle.c:1071 [opt]
    frame #5: 0x000000010c987b20 mono`mono_w32handle_wait_one(handle=0x0000000000002001, timeout=<unavailable>, alertable=<unavailable>) + 832 at w32handle.c:1190 [opt]
    frame #6: 0x000000010c987e03 mono`mono_w32handle_wait_multiple(handles=0x0000700003cce600, nhandles=1, waitall=0, timeout=<unavailable>, alertable=<unavailable>) + 195 at w32handle.c:1224 [opt]
    frame #7: 0x000000010c9629c3 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) + 115 at threads.c:1892 [opt]
    frame #8: 0x000000010c962cba mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x0000000000002001, ms=-1) + 122 at threads.c:2017 [opt]
    frame #9: 0x00000001104b185e
    frame #10: 0x000000010e9e1a90 mscorlib.dll.dylib`System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 64
    frame #11: 0x000000010e9e1a3c mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_long_bool + 44
    frame #12: 0x000000010e9e18a3 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 51
    frame #13: 0x000000010e9e19cc mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 28
    frame #14: 0x000000010e9e8387 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 2423
    frame #15: 0x000000010e9dac17 mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 151
    frame #16: 0x000000010e9d88b1 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    frame #17: 0x000000010e9d8840 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 80
    frame #18: 0x000000010e9dad5f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
    frame #19: 0x000000010cfe65b9
    frame #20: 0x000000010c7a3784 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000700003cceea0, exc=0x000000010d05e0d0, error=<unavailable>) + 1316 at mini-runtime.c:2791 [opt]
    frame #21: 0x000000010c99b398 mono`do_runtime_invoke(method=0x00007f8d72826f00, obj=0x000000010d05e228, params=0x0000700003cceea0, exc=0x0000000000000000, error=0x0000700003ccee38) + 88 at object.c:2862 [opt]
    frame #22: 0x000000010c96748e mono`start_wrapper + 171 at threads.c:837 [opt]
    frame #23: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d720171a0) + 547 at threads.c:891 [opt]
    frame #24: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #25: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #26: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #11: tid = 0x6437909, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c96c361 mono`worker_thread [inlined] mono_os_cond_timedwait + 139 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c96c2d6 mono`worker_thread + 13 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010c96c2c9 mono`worker_thread + 296 at threadpool-worker-default.c:417 [opt]
    frame #5: 0x000000010c96c1a1 mono`worker_thread(unused=<unavailable>) + 353 at threadpool-worker-default.c:484 [opt]
    frame #6: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #7: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d727c3d80) + 547 at threads.c:891 [opt]
    frame #8: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #9: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #10: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #12: tid = 0x6437911, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c98905f mono`mono_os_cond_timedwait(cond=0x000000010cb3dc40, mutex=0x000000010cb3dc00, timeout_ms=<unavailable>) + 143 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c9889f7 mono`mono_w32handle_timedwait_signal [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=4294967295, poll=1, alerted=0x00007000040d3de0) + 24 at w32handle.c:973 [opt]
    frame #4: 0x000000010c9889df mono`mono_w32handle_timedwait_signal(timeout=4294967295, poll=1, alerted=0x00007000040d3de0) + 143 at w32handle.c:1016 [opt]
    frame #5: 0x000000010c98855d mono`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=0, timeout=<unavailable>, alertable=<unavailable>) + 2077 at w32handle.c:1364 [opt]
    frame #6: 0x000000010c9629c3 mono`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) + 115 at threads.c:1892 [opt]
    frame #7: 0x000000010c962b1b mono`ves_icall_System_Threading_WaitHandle_WaitAny_internal(mono_handles=0x000000010d042b58, ms=-1) + 219 at threads.c:1989 [opt]
    frame #8: 0x00000001137e8c0e
    frame #9: 0x000000010e9e1fc2 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___int_bool + 226
    frame #10: 0x000000010e9e2195 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitAny_System_Threading_WaitHandle___System_TimeSpan_bool + 85
    frame #11: 0x000000010e9e5780 mscorlib.dll.dylib`System_Threading_RegisteredWaitHandle_Wait_object + 240

  thread #13: tid = 0x6437959, 0x00007fff9ada81d6 libsystem_malloc.dylib`_platform_memset, name = 'Threadpool worker'
    frame #0: 0x00007fff9ada81d6 libsystem_malloc.dylib`_platform_memset
    frame #1: 0x00007fff9ad9084d libsystem_malloc.dylib`szone_malloc_should_clear + 1387
    frame #2: 0x00007fff9ad9243e libsystem_malloc.dylib`malloc_zone_calloc + 87
    frame #3: 0x00007fff9ad92d7f libsystem_malloc.dylib`calloc + 30
    frame #4: 0x000000010ca30feb mono`monoeg_malloc0 [inlined] monoeg_g_calloc(n=1, x=24) + 18 at gmem.c:114 [opt]
    frame #5: 0x000000010ca30fd9 mono`monoeg_malloc0(x=24) + 9 at gmem.c:121 [opt]
    frame #6: 0x000000010c90af2b mono`inflate_generic_signature_checked(image=<unavailable>, sig=<unavailable>, context=<unavailable>, error=<unavailable>) + 59 at loader.c:538 [opt]
    frame #7: 0x000000010c90b283 mono`mono_method_get_signature_checked(method=0x00007f8d708988c0, image=<unavailable>, token=167772340, context=<unavailable>, error=0x00007f8d76a81cd8) + 403 at loader.c:721 [opt]
    frame #8: 0x000000010c7cee33 mono`mono_method_to_ir(cfg=<unavailable>, method=<unavailable>, start_bblock=0x00007f8d76b59e58, end_bblock=0x00007f8d76b59fa0, return_var=0x0000000000000000, inline_args=0x00007f8d76b5ab50, inline_offset=<unavailable>, is_virtual_call=<unavailable>) + 143299 at method-to-ir.c:9800 [opt]
    frame #9: 0x000000010c798f27 mono`mini_method_compile(method=<unavailable>, opts=370239999, domain=0x00007f8d70410b30, flags=JIT_FLAG_RUN_CCTORS, parts=0, aot_method_index=-1) + 3159 at mini.c:3442 [opt]
    frame #10: 0x000000010c79c525 mono`mono_jit_compile_method_inner(method=0x00007f8d756adec0, target_domain=0x00007f8d70410b30, opt=370239999, error=0x00007000042d4bb0) + 773 at mini.c:4167 [opt]
    frame #11: 0x000000010c79fa93 mono`mono_jit_compile_method_with_opt(method=0x00007f8d756adec0, opt=<unavailable>, jit_only=0, error=<unavailable>) + 1379 at mini-runtime.c:2129 [opt]
    frame #12: 0x000000010c84b9e1 mono`common_call_trampoline(regs=0x00007000042d4c88, code="H\x0f\xb6\U00000005��\x84t", m=0x00007f8d756adec0, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) + 1217 at mini-trampolines.c:708 [opt]
    frame #13: 0x000000010c84c99e mono`mono_vcall_trampoline(regs=0x00007000042d4c88, code="H\x0f\xb6\U00000005��\x84t", slot=-15, tramp=<unavailable>) + 206 at mini-trampolines.c:919 [opt]
    frame #14: 0x000000010cc2279e
    frame #15: 0x0000000115446b8f
    frame #16: 0x000000011544657f
    frame #17: 0x000000011544603b
    frame #18: 0x0000000115442753
    frame #19: 0x000000011544261b
    frame #20: 0x00000001154424b9
    frame #21: 0x000000011543fa2b

  thread #14: tid = 0x643795b, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010c96c361 mono`worker_thread [inlined] mono_os_cond_timedwait + 139 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010c96c2d6 mono`worker_thread + 13 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010c96c2c9 mono`worker_thread + 296 at threadpool-worker-default.c:417 [opt]
    frame #5: 0x000000010c96c1a1 mono`worker_thread(unused=<unavailable>) + 353 at threadpool-worker-default.c:484 [opt]
    frame #6: 0x000000010c967463 mono`start_wrapper [inlined] start_wrapper_internal + 128 at threads.c:829 [opt]
    frame #7: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d72301500) + 547 at threads.c:891 [opt]
    frame #8: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #9: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #10: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #15: tid = 0x643795c, 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_4903'
    frame #0: 0x00007fff9ad3cbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff9ae287fa libsystem_pthread.dylib`_pthread_cond_wait + 712
    frame #2: 0x000000010ca26e79 mono`mono_thread_info_sleep [inlined] mono_os_cond_timedwait + 130 at mono-os-mutex.h:216 [opt]
    frame #3: 0x000000010ca26df7 mono`mono_thread_info_sleep + 12 at mono-coop-mutex.h:102 [opt]
    frame #4: 0x000000010ca26deb mono`mono_thread_info_sleep [inlined] sleep_interruptable(ms=<unavailable>, alerted=<unavailable>) + 73 at mono-threads.c:1200 [opt]
    frame #5: 0x000000010ca26da2 mono`mono_thread_info_sleep(ms=2000, alerted=0x00007000046dd80c) + 562 at mono-threads.c:1232 [opt]
    frame #6: 0x000000010c96155b mono`ves_icall_System_Threading_Thread_Sleep_internal(ms=2000) + 107 at threads.c:1461 [opt]
    frame #7: 0x00000001137ea746
    frame #8: 0x000000010e9d88b1 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 33
    frame #9: 0x000000010e9d8840 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 80
    frame #10: 0x000000010e9dad5f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 47
    frame #11: 0x000000010cfe65b9
    frame #12: 0x000000010c7a3784 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007000046ddea0, exc=0x00000000000007d0, error=<unavailable>) + 1316 at mini-runtime.c:2791 [opt]
    frame #13: 0x000000010c99b398 mono`do_runtime_invoke(method=0x00007f8d72826f00, obj=0x000000010d045e58, params=0x00007000046ddea0, exc=0x0000000000000000, error=0x00007000046dde38) + 88 at object.c:2862 [opt]
    frame #14: 0x000000010c96748e mono`start_wrapper + 171 at threads.c:837 [opt]
    frame #15: 0x000000010c9673e3 mono`start_wrapper(data=0x00007f8d724d3160) + 547 at threads.c:891 [opt]
    frame #16: 0x00007fff9ae2793b libsystem_pthread.dylib`_pthread_body + 180
    frame #17: 0x00007fff9ae27887 libsystem_pthread.dylib`_pthread_start + 286
    frame #18: 0x00007fff9ae2708d libsystem_pthread.dylib`thread_start + 13

  thread #16: tid = 0x6437963, 0x00007fff9ad3d3ee libsystem_kernel.dylib`__wait4 + 10, name = 'Threadpool worker'
    frame #0: 0x00007fff9ad3d3ee libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010c8495ce mono`mono_handle_native_crash(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) + 398 at mini-exceptions.c:2720 [opt]
    frame #2: 0x000000010c8b0ff6 mono`altstack_handle_and_restore(ctx=0x00007000048db240, obj=0x0000000000000000, stack_ovf=0) + 70 at exceptions-amd64.c:799 [opt]
    frame #3: 0x000000010c808117 mono`mono_local_cprop(cfg=<unavailable>) + 423 at local-propagation.c:545 [opt]
    frame #4: 0x000000010c7993e7 mono`mini_method_compile(method=<unavailable>, opts=370239999, domain=0x00007f8d70410b30, flags=JIT_FLAG_RUN_CCTORS, parts=0, aot_method_index=-1) + 4375 at mini.c:3525 [opt]
    frame #5: 0x000000010c79c525 mono`mono_jit_compile_method_inner(method=0x00007f8d72a79c38, target_domain=0x00007f8d70410b30, opt=370239999, error=0x00007000048db818) + 773 at mini.c:4167 [opt]
    frame #6: 0x000000010c79fa93 mono`mono_jit_compile_method_with_opt(method=0x00007f8d72a79c38, opt=<unavailable>, jit_only=0, error=<unavailable>) + 1379 at mini-runtime.c:2129 [opt]
    frame #7: 0x000000010c84b9e1 mono`common_call_trampoline(regs=0x00007000048db8f8, code="H\x83\U00000098\U00000088\x83��L\x89<$H\x89|$\bL\x8b�I\x8b�H\x8bt$\bI\x8b\a��p�, m=0x00007f8d72a79c38, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) + 1217 at mini-trampolines.c:708 [opt]
    frame #8: 0x000000010c84b4e9 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) + 73 at mini-trampolines.c:838 [opt]
    frame #9: 0x000000010cc2139e
    frame #10: 0x0000000115415d9b
    frame #11: 0x0000000115410a53
    frame #12: 0x000000011541093b
    frame #13: 0x000000011540a1bb
    frame #14: 0x000000011540a0bb
    frame #15: 0x0000000115408bab
    frame #16: 0x0000000115408a3b
    frame #17: 0x000000011540380b
    frame #18: 0x0000000115402d5b
    frame #19: 0x0000000115402c0b
    frame #20: 0x000000011540008b
    frame #21: 0x00000001153ff943
    frame #22: 0x00000001153ff143
    frame #23: 0x00000001153fefed
    frame #24: 0x00000001153fdd6b
    frame #25: 0x00000001153fd5a5
    frame #26: 0x00000001153f296b
    frame #27: 0x00000001153f27fd
    frame #28: 0x00000001153f152b
    frame #29: 0x00000001153f0e8d
    frame #30: 0x00000001153f0683
    frame #31: 0x00000001153f0535
    frame #32: 0x00000001153ef23b
    frame #33: 0x00000001153ef0bb
    frame #34: 0x00000001153e8393
    frame #35: 0x00000001153e7c6b
    frame #36: 0x00000001153e7483
    frame #37: 0x00000001153e4a33
    frame #38: 0x00000001153e339b
    frame #39: 0x00000001153e3233
    frame #40: 0x00000001153e0a5b
    frame #41: 0x00000001153df70b
    frame #42: 0x00000001153df04b
    frame #43: 0x00000001153de6d7
    frame #44: 0x00000001153dd7db
    frame #45: 0x00000001153dd6a3
    frame #46: 0x00000001153d0190
    frame #47: 0x000000010eabb7db mscorlib.dll.dylib`System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_REF_TStateMachine_REF_ + 107
    frame #48: 0x00000001153ce25b
    frame #49: 0x000000010eabb7db mscorlib.dll.dylib`System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_REF_TStateMachine_REF_ + 107
    frame #50: 0x0000000113d319fb
    frame #51: 0x000000010eabba9b mscorlib.dll.dylib`System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
    frame #52: 0x0000000113d19803
    frame #53: 0x000000010eabba9b mscorlib.dll.dylib`System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
    frame #54: 0x0000000113d18abb
    frame #55: 0x000000010eabba9b mscorlib.dll.dylib`System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_REF_TStateMachine_REF_ + 107
    frame #56: 0x00000001139cda63
(lldb) detach
(lldb) quit
Process 23414 detached
(lldb) [dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 34,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject()l",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 34,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 760,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 35,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject()",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 35,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 763,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 36,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject()l",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 36,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 766,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 37,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject()",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 37,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 769,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 38,
  "Command": "/updatebuffer",
  "Arguments": {
    "Buffer": "#! \"netcoreapp2.0\"\n#r \"nuget:Newtonsoft.Json, 11.0.1\"\n\nusing Newtonsoft.Json;\n\nJsonConvert.DeserializeObject();",
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 38,
  "Command": "/updatebuffer",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": true,
  "Seq": 772,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 39,
  "Command": "/autocomplete",
  "Arguments": {
    "FileName": "/Users/filip/Documents/dev/dotnet-script/build/Build.csx",
    "Line": 6,
    "Column": 33,
    "WordToComplete": "l",
    "WantDocumentationForEveryCompletionResult": true,
    "WantKind": true,
    "WantReturnType": true
  }
}

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

@filipw
Copy link
Member Author

filipw commented Mar 13, 2018

Actually, I was on an older Mono (5.4.0) when it failed for me. After upgrading to 5.8.0 everything works fine.
So in order to take this in, the embedded mono will need to be updated, as we still pull the 5.2.0 version - and we will need help from the wizard @DustinCampbell here 😄

@DustinCampbell
Copy link
Contributor

We should reach out to the Mono folks to help us pull bits for our embedded Mono automatically. In the meantime, yes, we should update this. I can take a look later this week.

@DustinCampbell
Copy link
Contributor

@filipw: The build appears to have failed with a similar stack using Mono 5.8.0. Maybe try setting Mono to "latest" or "beta" to see if this problem is in the latest Mono

@DustinCampbell
Copy link
Contributor

FWIW, it appears that this same issue was found with MonoDevelop as well: mono/monodevelop#3693.

@KirillOsenkov also ran into the same problem (dotnet/roslyn#23520) and it appears to have been fixed in Mono. I suspect we'll need to use a Mono newer than 5.8.0 though.

@KirillOsenkov
Copy link

Yes, you'll need Mono >= 5.8.0.130 to avoid hitting this bug.

@DustinCampbell
Copy link
Contributor

Thanks @KirillOsenkov! Looks like we're just shy of that version: 😄

$ mono --version
Mono JIT compiler version 5.8.0.129 (2017-10/835a98d8559 Fri Feb 23 21:09:37 EST 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.6.0svn-mono-master/8b1520c8aae)
	GC:            sgen (concurrent by default)

@KirillOsenkov
Copy link

Hmm, I may be misremembering, it could be that 129 is good enough. If you're not seeing the crash on 5.8.0.129 then it's that one :) For sure 5.8.0.0 was affected though.

@filipw
Copy link
Member Author

filipw commented Mar 15, 2018

So on my Mac, when using 5.8.0.129, the error is not there anymore. I can happily run OmniSharp and use it in i.e. VS Code.
When using 5.8.0 in travis.yml it actually pulls in 5.8.0.127; I updated this to latest it installs 5.10.0.160�, however it doesn't matter as it's only used for build, and it built fine even with 5.2.0.

But the tests run against the local Mono from the .mono folder (as downloaded and unzipped in the Cake step) which is still 5.2.0, and that's why they fail at the moment.

@DustinCampbell
Copy link
Contributor

Ah, ok. That makes sense. I've actually pushed new Mono runtimes and frameworks to blob storage. I haven't verified them manually yet, but try updating https://github.com/OmniSharp/omnisharp-roslyn/blob/master/build.json with the following:

  "MonoRuntimeMacOS": "mono.osx-5.10.0.175.zip",
  "MonoRuntimeLinux32": "mono.linux-x86-5.10.0.175.zip",
  "MonoRuntimeLinux64": "mono.linux-x86_64-5.10.0.175.zip",
  "MonoFramework": "framework-5.10.0.175.zip",

@filipw
Copy link
Member Author

filipw commented Mar 15, 2018

thanks! this did the trick on my Mac - the test suite passes there without issues. It also fixed the issue on travis - on Mac agent.
Somehow it still managed it failed on the Linux agent though, with the error

========================================
Test
========================================
Executing task: Test
Corlib not in sync with this runtime: expected corlib version 1051000002, found 1051000003.
Loaded from: /home/travis/build/OmniSharp/omnisharp-roslyn/.mono/framework/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.mono-project.com/download.
An error occurred when executing task 'Test'.
Error: One or more errors occurred.
	Test OmniSharp.MSBuild.Tests failed for net46
The command "./build.sh --target All --publish-all --archive" exited with 1.

So somehow there appears to be a corlib version mismatch somewhere.
From what I have seen, corlib 1051000002 was used between between Mono 5.10.0.91 and Mono 5.10.0.170 (earlier releases had 1051000001).
Only Mono 5.10.0.175 changed it to 1051000003.

The only thing I could think of is that the "global" Mono we install on Travis (latest) is 5.10.0.160 so maybe that's that?

@DustinCampbell
Copy link
Contributor

I bet I grabbed the wrong Linux runtimes. I'll check when I get into the office.

@filipw
Copy link
Member Author

filipw commented Mar 16, 2018

ah that could be that indeed! Could also be that they packaged a wrong DLL 😊
Btw, looks like there is a 5.10.0.178 today.

@DustinCampbell
Copy link
Contributor

FWIW, the Linux builds of 5.10.0.178 aren't available in apt yet. So, I'm going to grab 5.10.0.170 for OSX from Mono's archives instead.

@DustinCampbell
Copy link
Contributor

Also, I've already updated the bits in blob storage. I'm going to submit a PR with the new Mono runtimes to ensure it passes CI. In the meantime, if you like, you can update them in your PR to ensure everything looks good.

@DustinCampbell
Copy link
Contributor

Here's the PR I submitted to move us to Mono 5.10.0.170: #1137

@filipw
Copy link
Member Author

filipw commented Mar 16, 2018

@DustinCampbell thanks a lot - it's green now 🍻

.travis.yml Outdated
@@ -6,7 +6,7 @@ env:
- secure: m2PtYwYOhaK0uFMZ19ZxApZwWZeAIq1dS//jx/5I3txpIWD+TfycQMAWYxycFJ/GJkeVF29P4Zz1uyS2XKKjPJpp2Pds98FNQyDv3OftpLAVa0drsjfhurVlBmSdrV7GH6ncKfvhd+h7KVK5vbZc+NeR4dH7eNvN/jraS//AMJg=
- secure: EA2fP5ymar2/ZM2G4cyP3FzK437zv1wP03AgUPCcQgke8Z5oG8Y5U632AzxBeeaqGAxHEi5Ewbq2A8N93pN+xAsoGlQf+AdLJROCeo7gy9O589Z8tmp/vAdMzZzyNhKi7SUSxOJ/TIDzLMlvBHZwj1XqFyCbOGABzkxl9sW4+uk=
- secure: UYglcVukRlhS09V7MXwMQ5pU6gZZZ+bsaKnCSlPV+CQyh+ExabEYYmF7NBJirF/RDK30tbuI6mlSYagjX18PpLZ3390WI3WkKRbP0F1SfylHKlMh5MDcKNTsSwYMcQ0BX7teg7kpYmxbigP7jing8LPehP/QdQAhnkhpdXe1P/o=
mono: 5.2.0
mono: latest
Copy link
Contributor

@DustinCampbell DustinCampbell Apr 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's hold off on this. I've got things working on 5.2.0 again with the latest Mono package.

build.json Outdated
@@ -6,12 +6,12 @@
"1.1.2"
],
"LegacyDotNetVersion": "1.0.0-preview2-1-003177",
"RequiredMonoVersion": "5.2.0.196",
"RequiredMonoVersion": "5.8.0.129",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not change this. The latest Mono package works fine when 5.2.0.196 is installed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that's great. so let's merge #1137 and then I'll rebase this and get rid of these changes

@DustinCampbell
Copy link
Contributor

merged. Feel free to update this PR.

@filipw
Copy link
Member Author

filipw commented Apr 5, 2018

Done - should be good to go as soon as the build completes

@filipw
Copy link
Member Author

filipw commented Apr 5, 2018

...as soon as the feed stops returning 503 🙂

@DustinCampbell
Copy link
Contributor

...as soon as the feed stops returning 503

Yeah. 😞 I've been restarting the builds multiple times. It seems like myget is intermittently failing.

@DustinCampbell
Copy link
Contributor

Finally green!

@DustinCampbell DustinCampbell merged commit 2757c23 into OmniSharp:master Apr 5, 2018
@filipw filipw deleted the feature/roslyn-2.7.0 branch April 5, 2018 14:47
@filipw
Copy link
Member Author

filipw commented Apr 5, 2018

🚀🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants