Bug 20071 - Too many files open message and then crash when attempting to run kpm restore on MvcSample.Web project from ASP.vNext
Summary: Too many files open message and then crash when attempting to run kpm restore...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-27 16:14 UTC by Tom R
Modified: 2017-07-12 22:45 UTC (History)
5 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 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 NOT_REPRODUCIBLE

Description Tom R 2014-05-27 16:14:03 UTC
Seeing a lot of "Too many files open" messages and then a crash.  

KRE version is KRE-mono45-x86.0.1-alpha-build-0472 but fails on earlier ones too.


  [tom@pip] ~/github/Mvc/samples/MvcSample.Web
  0> mono --version  
  Mono JIT compiler version 3.4.1 (master/7b09fdb Tue 27 May 2014 19:59:19 BST)
  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:          supported, not enabled.
        GC:            sgen

  [tom@pip] ~/github/Mvc/samples/MvcSample.Web
  1> kpm restore
  Restoring packages for /Users/tom/github/Mvc/samples/MvcSample.Web/project.json
  Attempting to resolve dependency MvcSample.Web >= 0.1-alpha-SNAPSHOT
  Attempting to resolve dependency Helios >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Helios'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Helios'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Helios'
  Attempting to resolve dependency Microsoft.AspNet.Http >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http'
  Attempting to resolve dependency Microsoft.AspNet.Mvc >= 
  Attempting to resolve dependency Microsoft.AspNet.FileSystems >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Common >= 
  Attempting to resolve dependency System.Linq >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Linq'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq'
  Attempting to resolve dependency System.Reflection >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection'
  Attempting to resolve dependency System.Runtime >= 4.0.20.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Razor.Host >= 
  Attempting to resolve dependency System.Collections >= 
  Attempting to resolve dependency System.Runtime >= 
  Attempting to resolve dependency System.Xml >= 
  Attempting to resolve dependency System.Xml.Linq >= 
  Attempting to resolve dependency Microsoft.AspNet.Razor >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Razor'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Razor'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Razor'
  Attempting to resolve dependency Microsoft.AspNet.RequestContainer >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.RequestContainer'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.RequestContainer'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.RequestContainer'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Core >= 
  Attempting to resolve dependency Microsoft.AspNet.Security >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security'
  Attempting to resolve dependency Microsoft.AspNet.Security.DataProtection >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection'
  Attempting to resolve dependency Microsoft.Framework.Runtime.Interfaces >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces'
  Attempting to resolve dependency Newtonsoft.Json >= 5.0.8
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Newtonsoft.Json'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Newtonsoft.Json'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Newtonsoft.Json'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.ModelBinding >= 
  Attempting to resolve dependency System.Runtime.Serialization >= 
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Razor >= 
  Attempting to resolve dependency K.Roslyn >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='K.Roslyn'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='K.Roslyn'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='K.Roslyn'
  Attempting to resolve dependency Microsoft.AspNet.Routing >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Routing'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Routing'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Routing'
  Attempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
  Attempting to resolve dependency Microsoft.DataAnnotations >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.DataAnnotations'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.DataAnnotations'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.DataAnnotations'
  Attempting to resolve dependency Microsoft.Framework.ConfigurationModel >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel'
  Attempting to resolve dependency Microsoft.Framework.DependencyInjection >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.DependencyInjection'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.DependencyInjection'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.DependencyInjection'
  Attempting to resolve dependency System.ComponentModel.DataAnnotations >= 
  Attempting to resolve dependency mscorlib >= 
  Attempting to resolve dependency System >= 
  Attempting to resolve dependency System.Core >= 
  Attempting to resolve dependency Microsoft.CSharp >= 
  Attempting to resolve dependency MvcSample.Web >= 0.1-alpha-SNAPSHOT
  Attempting to resolve dependency Helios >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Http >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Mvc >= 
  Attempting to resolve dependency Microsoft.AspNet.FileSystems >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Common >= 
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Razor.Host >= 
  Attempting to resolve dependency System.Collections >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Collections'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections'
  Attempting to resolve dependency System.Collections.Concurrent >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Concurrent'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Collections.Concurrent'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Concurrent'
  Attempting to resolve dependency System.Diagnostics.Contracts >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Contracts'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Diagnostics.Contracts'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Contracts'
  Attempting to resolve dependency System.Globalization >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Globalization'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Globalization'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Globalization'
  Attempting to resolve dependency System.IO >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.IO'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.IO'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.IO'
  Attempting to resolve dependency System.IO.FileSystem >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.IO.FileSystem'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.IO.FileSystem'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.IO.FileSystem'
  Attempting to resolve dependency System.Resources.ResourceManager >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Resources.ResourceManager'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Resources.ResourceManager'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Resources.ResourceManager'
  Attempting to resolve dependency Microsoft.AspNet.Razor >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.RequestContainer >= 0.1-alpha
  Attempting to resolve dependency System.Linq >= 4.0.0.0
  Attempting to resolve dependency System.Reflection >= 4.0.10.0
  Attempting to resolve dependency System.Runtime.Extensions >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Extensions'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime.Extensions'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Extensions'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Core >= 
  Attempting to resolve dependency Microsoft.AspNet.Security >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Security.DataProtection >= 0.1-alpha
  Attempting to resolve dependency Microsoft.Framework.Runtime.Interfaces >= 0.1-alpha
  Attempting to resolve dependency Newtonsoft.Json >= 5.0.8
  Attempting to resolve dependency Microsoft.CSharp >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.CSharp'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.CSharp'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.CSharp'
  Attempting to resolve dependency System.Linq.Expressions >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq.Expressions'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Linq.Expressions'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq.Expressions'
  Attempting to resolve dependency System.Reflection.Emit.ILGeneration >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.ILGeneration'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.Emit.ILGeneration'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.ILGeneration'
  Attempting to resolve dependency System.Reflection.Emit.Lightweight >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.Lightweight'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.Emit.Lightweight'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.Lightweight'
  Attempting to resolve dependency System.Reflection.Extensions >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Extensions'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.Extensions'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Extensions'
  Attempting to resolve dependency System.Security.Claims >= 0.1-alpha
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Claims'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Security.Claims'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Claims'
  Attempting to resolve dependency System.Security.Cryptography >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Security.Cryptography'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography'
  Attempting to resolve dependency System.Security.Cryptography.HashAlgorithms.SHA2 >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography.HashAlgorithms.SHA2'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Security.Cryptography.HashAlgorithms.SHA2'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography.HashAlgorithms.SHA2'
  Attempting to resolve dependency System.Security.Principal >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Principal'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Security.Principal'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Principal'
  Attempting to resolve dependency System.Text.Encoding >= 4.0.20.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Text.Encoding'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding'
  Attempting to resolve dependency System.Threading >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Threading'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.ModelBinding >= 
  Attempting to resolve dependency System.Reflection.Primitives >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Primitives'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.Primitives'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Primitives'
  Attempting to resolve dependency System.Reflection.TypeExtensions >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.TypeExtensions'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection.TypeExtensions'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.TypeExtensions'
  Attempting to resolve dependency System.Runtime.Serialization.Primitives >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Serialization.Primitives'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime.Serialization.Primitives'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Serialization.Primitives'
  Attempting to resolve dependency System.Text.Encoding.Extensions >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding.Extensions'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Text.Encoding.Extensions'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding.Extensions'
  Attempting to resolve dependency Microsoft.AspNet.Mvc.Razor >= 
  Attempting to resolve dependency K.Roslyn >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Routing >= 0.1-alpha
  Attempting to resolve dependency Microsoft.AspNet.Server.WebListener >= 0.1-alpha
  Attempting to resolve dependency Microsoft.DataAnnotations >= 0.1-alpha
  Attempting to resolve dependency Microsoft.Framework.ConfigurationModel >= 0.1-alpha
  Attempting to resolve dependency Microsoft.Framework.DependencyInjection >= 0.1-alpha
  Attempting to resolve dependency System.ComponentModel >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.ComponentModel'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.ComponentModel'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.ComponentModel'
  Attempting to resolve dependency System.Console >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Console'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Console'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Console'
  Attempting to resolve dependency System.Diagnostics.Debug >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Debug'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Diagnostics.Debug'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Debug'
  Attempting to resolve dependency System.Diagnostics.Tools >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Tools'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Diagnostics.Tools'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Tools'
  Attempting to resolve dependency System.Dynamic.Runtime >= 4.0.0.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Dynamic.Runtime'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Dynamic.Runtime'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Dynamic.Runtime'
  Attempting to resolve dependency System.Runtime >= 4.0.20.0
  Attempting to resolve dependency System.Runtime.InteropServices >= 4.0.20.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices'
  Attempting to resolve dependency System.Threading.Tasks >= 4.0.10.0
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks'
    GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Threading.Tasks'
    GET https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks'
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Reflection' 7764ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Runtime' 7838ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='System.Linq' 7842ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http' 7940ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems' 7935ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces' 7911ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Helios' 7959ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security' 7929ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Routing' 8012ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq' 8129ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime' 8161ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces' 8147ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Extensions' 8124ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.DataAnnotations' 8142ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel' 8186ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Contracts' 8179ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.IO' 8178ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection' 8200ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.IO' 8179ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http' 8228ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Console' 8157ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Extensions' 8176ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq.Expressions' 8179ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Resources.ResourceManager' 8184ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Http' 8235ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography' 8176ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.ComponentModel' 8160ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.ILGeneration' 8180ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security' 8210ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography' 8182ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.IO.FileSystem' 8192ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Console' 8166ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.ILGeneration' 8187ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.DataAnnotations' 8204ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Tools' 8167ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Serialization.Primitives' 8174ms
    GET https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Http/0.1-alpha-build-0479
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Primitives' 8193ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection' 8235ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 8237ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Claims' 8226ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.TypeExtensions' 8215ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Debug' 8208ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Extensions' 8229ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding.Extensions' 8215ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems' 8285ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding' 8234ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Cryptography.HashAlgorithms.SHA2' 8245ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Claims' 8248ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Dynamic.Runtime' 8231ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener' 8272ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.Emit.Lightweight' 8254ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.CSharp' 8258ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.Runtime.Interfaces' 8286ms
    GET https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.Framework.Runtime.Interfaces/0.1-alpha-build-0472
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading' 8254ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.InteropServices' 8250ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Razor' 8323ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.DependencyInjection' 8332ms
    OK https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='K.Roslyn' 8353ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Newtonsoft.Json' 8370ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Concurrent' 8425ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.DependencyInjection' 8431ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security' 8448ms
    GET https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Security/0.1-alpha-build-0567
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Extensions' 8458ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections' 8464ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections.Concurrent' 8463ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.Framework.ConfigurationModel' 8471ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection.TypeExtensions' 8442ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Linq.Expressions' 8457ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Resources.ResourceManager' 8462ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Globalization' 8465ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Diagnostics.Debug' 8438ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.RequestContainer' 8493ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection' 8502ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime.Serialization.Primitives' 8445ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Dynamic.Runtime' 8452ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Text.Encoding.Extensions' 8478ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Threading.Tasks' 8473ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Security.Principal' 8490ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.IO.FileSystem' 8605ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Routing' 8617ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Collections' 8609ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Reflection' 8643ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Runtime' 8644ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='System.Globalization' 8609ms
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.FileSystems' 8654ms
    GET https://www.myget.org/F/aspnetvnext/api/v2/package/System.Reflection/4.0.10.0
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.FileSystems/0.1-alpha-build-0163
    Too many open files
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.FileSystems/0.1-alpha-build-0163
    Too many open files
  Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.FileSystems/0.1-alpha-build-0163
    Too many open files
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
    Too many open files
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
    Too many open files
  Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
    Too many open files
    OK https://nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Security.DataProtection' 8635ms
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Security.DataProtection/0.1-alpha-build-0154
    Too many open files
  Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Security.DataProtection/0.1-alpha-build-0154
    Too many open files
  Missing method .ctor in assembly /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll, type System.Windows.Markup.XmlnsDefinitionAttribute
  Can't find custom attr constructor image: /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll mtoken: 0x0a00015f
  * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not met
  Error: DownloadPackageAsync: 
  https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Security.DataProtection/0.1-alpha-build-0154Stacktrace:

    at <unknown> <0xffffffff>

    Too many open files
  Missing method .ctor in assembly /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll, type System.Windows.Markup.XmlnsDefinitionAttribute
    at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<OpenNuspecStreamAsync>d__1.MoveNext () <0x002cb>
  Can't find custom attr constructor image: /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll mtoken: 0x0a00015f
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.IO.Stream>.Start<Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<OpenNuspecStreamAsync>d__1> (Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<OpenNuspecStreamAsync>d__1&) <0x00070>
    at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.OpenNuspecStreamAsync (Microsoft.Framework.PackageManager.PackageInfo) <0x001d1>
    at Microsoft.Framework.PackageManager.RemoteWalkProvider/<GetDependencies>d__1.MoveNext () <0x00215>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Collections.Generic.IEnumerable`1<Microsoft.Framework.Runtime.Library>>.Start<Microsoft.Framework.PackageManager.RemoteWalkProvider/<GetDependencies>d__1> (Microsoft.Framework.PackageManager.RemoteWalkProvider/<GetDependencies>d__1&) <0x00070>
    at Microsoft.Framework.PackageManager.RemoteWalkProvider.GetDependencies (Microsoft.Framework.PackageManager.WalkProviderMatch,System.Runtime.Versioning.FrameworkName) <0x001ee>
  * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not met

    at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryEntry>d__1.MoveNext () <0x00418>
    at (wrapper unbox) Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryEntry>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryMatch>d__1.MoveNext () <0x01486>
    at (wrapper unbox) Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryMatch>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryBySnapshot>d__1.MoveNext () <0x00698>
    at (wrapper unbox) Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryBySnapshot>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Threading.Tasks.WhenAllContinuation`1.Execute () <0x0034e>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at Microsoft.Framework.PackageManager.RemoteWalkProvider/<FindLibraryBySnapshot>d__1.MoveNext () <0x006c6>
    at (wrapper unbox) Microsoft.Framework.PackageManager.RemoteWalkProvider/<FindLibraryBySnapshot>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<_FindPackagesByIdAsync>d__1.MoveNext () <0x00dd7>
    at (wrapper unbox) Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<_FindPackagesByIdAsync>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<GetAsync>d__1.MoveNext () <0x00418>
    at (wrapper unbox) Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<GetAsync>d__1.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at System.Net.Http.HttpClient/<SendAsyncWorker>c__async0.MoveNext () <0x00804>
    at (wrapper unbox) System.Net.Http.HttpClient/<SendAsyncWorker>c__async0.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    at System.Net.Http.HttpClientHandler/<SendAsync>c__async0.MoveNext () <0x0121d>
    at (wrapper unbox) System.Net.Http.HttpClientHandler/<SendAsync>c__async0.MoveNext () <0xffffffff>
    at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
    at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    at System.Threading.Tasks.Task.Finish () <0x0010d>
    at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult (TResult) <0x0005a>
    at System.Threading.Tasks.TaskCompletionSource`1.SetResult (TResult) <0x00022>
    at System.Threading.Tasks.TaskFactory`1.InnerInvoke (System.Threading.Tasks.TaskCompletionSource`1<TResult>,System.Func`2<System.IAsyncResult, TResult>,System.IAsyncResult) <0x0004f>
    at System.Threading.Tasks.TaskFactory`1/<FromAsyncBeginEnd>c__AnonStorey2.<>m__0 (System.IAsyncResult) <0x0007c>
    at System.Net.SimpleAsyncResult/<SimpleAsyncResult>c__AnonStorey0.<>m__0 (System.Net.SimpleAsyncResult) <0x00026>
    at System.Net.SimpleAsyncResult.DoCallback_internal () <0x00033>
    at System.Net.WebAsyncResult.DoCallback () <0x00018>
    at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData) <0x00889>
    at (wrapper remoting-invoke-with-check) System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData) <0xffffffff>
    at System.Net.WebConnection.ReadDone (System.IAsyncResult) <0x00bb5>
    at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

  Native stacktrace:

          0   mono                                0x000000010ab91d77 mono_handle_native_sigsegv + 279
          1   libsystem_platform.dylib            0x00007fff8cb5a5aa _sigtramp + 26
          2   libsystem_malloc.dylib              0x00007fff8abd5272 tiny_malloc_from_free_list + 1502
          3   libsystem_c.dylib                   0x00007fff8b046b1a abort + 125
          4   mono                                0x000000010ad367b1 monoeg_g_logv + 161
          5   mono                                0x000000010ad368ef monoeg_assertion_message + 143
          6   mono                                0x000000010abf6116 mono_class_create_from_typedef + 3238
          7   mono                                0x000000010ac02c06 mono_class_get_full + 310
          8   mono                                0x000000010ac2ba67 mono_get_method_from_token + 615
          9   mono                                0x000000010ac2b738 mono_get_method_full + 200
          10  mono                                0x000000010ab081a1 mono_method_to_ir + 33089
          11  mono                                0x000000010aaf46e1 mini_method_compile + 2753
          12  mono                                0x000000010aaf6f95 mono_jit_compile_method_with_opt + 1461
          13  mono                                0x000000010aaf698a mono_jit_compile_method + 42
          14  mono                                0x000000010ab932e4 common_call_trampoline + 804
          15  ???                                 0x000000010af7d172 0x0 + 4478980466
          16  ???                                 0x00000001132a2cac 0x0 + 4616498348
          17  ???                                 0x00000001132a29c1 0x0 + 4616497601
          18  ???                                 0x00000001132a1f21 0x0 + 4616494881
          19  ???                                 0x00000001132a1c4d 0x0 + 4616494157
          20  ???                                 0x00000001132a1c1d 0x0 + 4616494109
          21  ???                                 0x00000001132a1bbd 0x0 + 4616494013
          22  ???                                 0x000000011329ff7d 0x0 + 4616486781
          23  ???                                 0x000000011329cecd 0x0 + 4616474317
          24  ???                                 0x000000011329ce9d 0x0 + 4616474269
          25  ???                                 0x000000011329883d 0x0 + 4616456253
          26  ???                                 0x0000000112c13fed 0x0 + 4609621997
          27  ???                                 0x0000000112c138dd 0x0 + 4609620189
          28  ???                                 0x0000000112b00ece 0x0 + 4608495310
          29  ???                                 0x000000010b335c04 0x0 + 4482882564
          30  mono                                0x000000010aafa208 mono_jit_runtime_invoke + 1800
          31  mono                                0x000000010aca258e mono_runtime_invoke + 110
          32  mono                                0x000000010aca93fa mono_runtime_invoke_array + 906
          33  mono                                0x000000010acab8dc mono_message_invoke + 412
          34  mono                                0x000000010ac7e7a6 async_invoke_thread + 2422
          35  mono                                0x000000010ac7d5ae start_wrapper + 430
          36  mono                                0x000000010ad31cbe inner_start_thread + 222
          37  libsystem_pthread.dylib             0x00007fff8be06899 _pthread_body + 138
          38  libsystem_pthread.dylib             0x00007fff8be0672a _pthread_struct_init + 0
          39  libsystem_pthread.dylib             0x00007fff8be0afc9 thread_start + 13

  Debug info from gdb:

  /Users/tom/.kre/packages/KRE-mono45-x86.0.1-alpha-build-0472/bin/klr: line 12:  5975 Abort trap: 6           mono $DIR/klr.mono.managed.dll "$@"
Comment 1 Zoltan Varga 2014-05-30 11:34:06 UTC
How can I reproduce this ?
Comment 2 Tom R 2014-05-30 11:44:38 UTC
Using the instructions from here perform the steps under "Installing KVM and the K Runtime Environment"

http://graemechristie.github.io/graemechristie/blog/2014/05/26/asp-dot-net-vnext-on-osx-and-linux/

Then clone https://github.com/davidfowl/HelloWorldVNext

In the helloworldweb folder run..

> kpm restore

The crashes, hangs and high CPU occur during this process in the mono-sgen process.
Comment 3 Tom R 2014-05-30 16:05:09 UTC
Another example with a slightly different stack trace..

     Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Reflection/4.0.10.0
      Too many open files
    Missing method .ctor in assembly /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll, type System.Windows.Markup.XmlnsDefinitionAttribute
    Can't find custom attr constructor image: /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll mtoken: 0x0a00015f
    * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not met

    Stacktrace:

      at <unknown> <0xffffffff>
      at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<OpenNuspecStreamAsync>d__1.MoveNext () <0x002fc>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start<TStateMachine> (TStateMachine&) <0x00032>
    Warning: DownloadPackageAsync:   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed.OpenNuspecStreamAsync (Microsoft.Framework.PackageManager.PackageInfo) <0x0018f>
      at Microsoft.Framework.PackageManager.RemoteWalkProvider/<GetDependencies>d__1.MoveNext () <0x00221>
    https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.Framework.ConfigurationModel/0.1-alpha-build-0254  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start<TStateMachine> (TStateMachine&) <0x00032>

      Too many open files  at Microsoft.Framework.PackageManager.RemoteWalkProvider.GetDependencies (Microsoft.Framework.PackageManager.WalkProviderMatch,System.Runtime.Versioning.FrameworkName) <0x001cc>

      at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryEntry>d__1.MoveNext () <0x00449>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
      at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryMatch>d__1.MoveNext () <0x01584>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
      at Microsoft.Framework.PackageManager.RestoreOperations/<FindLibraryBySnapshot>d__1.MoveNext () <0x006dc>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    Missing method .ctor in assembly /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll, type System.Windows.Markup.XmlnsDefinitionAttribute
    Can't find custom attr constructor image: /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll mtoken: 0x0a00015f
    Warning: DownloadPackageAsync: * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not met

    https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.Framework.ConfigurationModel/0.1-alpha-build-0254  at System.Threading.Tasks.WhenAllContinuation`1.Execute () <0x0034e>

      Too many open files
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    Missing method .ctor in assembly /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll, type System.Windows.Markup.XmlnsDefinitionAttribute
    Can't find custom attr constructor image: /usr/local/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll mtoken: 0x0a00015f
      at Microsoft.Framework.PackageManager.RemoteWalkProvider/<FindLibraryBySnapshot>d__1.MoveNext () <0x0070a>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not met

      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
    Error: DownloadPackageAsync:   at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<_FindPackagesByIdAsync>d__1.MoveNext () <0x00e41>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
    https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.Framework.ConfigurationModel/0.1-alpha-build-0254  at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>

      Too many open files
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
      at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed/<GetAsync>d__1.MoveNext () <0x0045d>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
      at System.Net.Http.HttpClient/<SendAsyncWorker>c__async0.MoveNext () <0x00804>
      at (wrapper unbox) System.Net.Http.HttpClient/<SendAsyncWorker>c__async0.MoveNext () <0xffffffff>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
      at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <0x0005c>
      at System.Net.Http.HttpClientHandler/<SendAsync>c__async0.MoveNext () <0x0121d>
      at (wrapper unbox) System.Net.Http.HttpClientHandler/<SendAsync>c__async0.MoveNext () <0xffffffff>
      at System.Threading.Tasks.AwaiterActionContinuation.Execute () <0x00085>
      at System.Threading.Tasks.Task.ProcessCompleteDelegates () <0x0005f>
      at System.Threading.Tasks.Task.Finish () <0x0010d>
      at System.Threading.Tasks.Task`1.TrySetResult (TResult) <0x0010c>
    Warning: DownloadPackageAsync:   at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult (TResult) <0x0005a>
      at System.Threading.Tasks.TaskCompletionSource`1.SetResult (TResult) <0x00022>
    https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
      Too many open files  at System.Threading.Tasks.TaskFactory`1.InnerInvoke (System.Threading.Tasks.TaskCompletionSource`1<TResult>,System.Func`2<System.IAsyncResult, TResult>,System.IAsyncResult) <0x0004f>

      at System.Threading.Tasks.TaskFactory`1/<FromAsyncBeginEnd>c__AnonStorey2.<>m__0 (System.IAsyncResult) <0x0007c>
      at System.Net.SimpleAsyncResult/<SimpleAsyncResult>c__AnonStorey0.<>m__0 (System.Net.SimpleAsyncResult) <0x00026>
      at System.Net.SimpleAsyncResult.DoCallback_internal () <0x00033>
      at System.Net.WebAsyncResult.DoCallback () <0x00018>
      at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData) <0x00889>
      at (wrapper remoting-invoke-with-check) System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData) <0xffffffff>
      at System.Net.WebConnection.ReadDone (System.IAsyncResult) <0x00bb5>
    Warning: DownloadPackageAsync:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

    Native stacktrace:

    https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
      Too many open files
    Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime/4.0.20.0
      Too many open files
    Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Http/0.1-alpha-build-0489
      Too many open files
    Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Http/0.1-alpha-build-0489
      Too many open files
    Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.Http/0.1-alpha-build-0489
      Too many open files
    Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime.Extensions/4.0.10.0
      Too many open files
            0   mono                                0x00000001038a9d57 mono_handle_native_sigsegv + 279
            1   libsystem_platform.dylib            0x00007fff8cb5a5aa _sigtramp + 26
            2   libsystem_c.dylib                   0x00007fff799f6408 __sF + 152
            3   libsystem_c.dylib                   0x00007fff8b046b1a abort + 125
            4   mono                                0x0000000103a4e941 monoeg_g_logv + 161
            5   mono                                0x0000000103a4ea7f monoeg_assertion_message + 143
            6   mono                                0x000000010390e226 mono_class_create_from_typedef + 3238
            7   mono                                0x000000010391ad16 mono_class_get_full + 310
            8   mono                                0x0000000103943b57 mono_get_method_from_token + 615
            9   mono                                0x0000000103943828 mono_get_method_full + 200
            10  mono                                0x0000000103820181 mono_method_to_ir + 33089
            11  mono                                0x000000010380c6d1 mini_method_compile + 2753
            12  mono                                0x000000010380ef81 mono_jit_compile_method_with_opt + 1457
            13  mono                                0x000000010380e97a mono_jit_compile_method + 42
            14  mono                                0x00000001038ab2c4 common_call_trampoline + 804
            15  ???                                 0x0000000103c95172 0x0 + 4358492530
            16  ???                                 0x000000010bc3af1d 0x0 + 4492341021
            17  ???                                 0x00000001068a5a13 0x0 + 4404697619
            18  ???                                 0x00000001068a5a13 0x0 + 4404697619
            19  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            20  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            21  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            22  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            23  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            24  ???                                 0x000000010bc2e7b6 0x0 + 4492289974
            25  ???                                 0x000000010bc2ffbd 0x0 + 4492296125
            26  ???                                 0x000000010bc2e8bd 0x0 + 4492290237
            27  ???                                 0x000000010bc2dfad 0x0 + 4492287917
            28  ???                                 0x000000010bc19a2e 0x0 + 4492204590
            29  ???                                 0x0000000103d6cc04 0x0 + 4359375876
            30  mono                                0x00000001038121e8 mono_jit_runtime_invoke + 1800
            31  mono                                0x00000001039ba69e mono_runtime_invoke + 110
            32  mono                                0x00000001039c150a mono_runtime_invoke_array + 906
            33  mono                                0x00000001039c39ec mono_message_invoke + 412
            34  mono                                0x00000001039968a6 async_invoke_thread + 2422
            35  mono                                0x00000001039956ae start_wrapper + 430
            36  mono                                0x0000000103a49e4e inner_start_thread + 222
            37  libsystem_pthread.dylib             0x00007fff8be06899 _pthread_body + 138
            38  libsystem_pthread.dylib             0x00007fff8be0672a _pthread_struct_init + 0
            39  libsystem_pthread.dylib             0x00007fff8be0afc9 thread_start + 13
    Warning: DownloadPackageAsync: 
    Debug info from gdb:

    https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime.Extensions/4.0.10.0
      Too many open files
    Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/System.Runtime.Extensions/4.0.10.0
      Too many open files
    Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.RequestContainer/0.1-alpha-build-0648
      Too many open files
    Warning: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.RequestContainer/0.1-alpha-build-0648
      Too many open files
    Error: DownloadPackageAsync: https://www.myget.org/F/aspnetvnext/api/v2/package/Microsoft.AspNet.RequestContainer/0.1-alpha-build-0648
      Too many open files
    /Users/tom/.kre/packages/KRE-mono45-x86.0.1-alpha-build-0478/bin/klr: line 12: 60041 Abort trap: 6           mono $DIR/klr.mono.managed.dll "$@"
Comment 4 Tom R 2014-05-30 16:58:44 UTC
Sorry, in my instructions above for reproduction the project should have been https://github.com/aspnet/Mvc and "kpm restore" should be run in /samples/MvcSample.Web
Comment 5 Zoltan Varga 2014-05-30 19:06:51 UTC
I can reproduce this, but only with mono master, 3.4.0 seems to work fine. I also don't get any crash, just the 'Too many open files' errors.
Comment 6 Tom R 2014-05-30 19:16:42 UTC
Yep, 3.4.0 can't actually run the KRuntime though the package restore step might work so I've been trying builds from master frequently (currently commit 610d1e7 tagged 3.6.1) and still experience the crashes.

The crashes aren't super frequent they occur perhaps one it ten attempts, most of the time I get "Too many open files" and 100% cpu usage and have to abort the process.
Comment 7 Zoltan Varga 2014-05-31 15:15:44 UTC
Setting ulimit -n 1024 avoids the too many open files errors for me.
Comment 8 Tom R 2014-06-01 05:12:36 UTC
That's great.  Unfortunately though i have my ulimit maxfiles set as high as it will go at 2048 and still see the issue and the crashes.

It's the hard crashes in particular that I find interesting as they suggest there may be a bug in the runtime as opposed to in managed code.
Comment 9 Miguel de Icaza [MSFT] 2014-07-27 21:58:09 UTC
This seems like the process keeps too many files open, I do not believe this is a bug in Mono.

If this is hitting the 2048 limit, it might be either the kpm tool happily keeping files open for longer than it absolute has to, or a leak in our runtime, but in that case, we need a test case showing what is being leaked.

Might be useful to show the open files using "lsof"
Comment 10 Ludovic Henry 2017-07-12 22:45:06 UTC
Can you still reproduce that with latest version of mono? Please reopen the bug if that's the case, and please provide an easier to reproduce test case. Thank you