Bug 16513 - mono crashes while compiling DarthFubuMVC/bottles
Summary: mono crashes while compiling DarthFubuMVC/bottles
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2013-11-29 06:22 UTC by Alistair Bush
Modified: 2013-12-03 13:22 UTC (History)
1 user (show)

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


Attachments
output from the compiler (272.00 KB, application/octet-stream)
2013-11-29 06:22 UTC, Alistair Bush
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Alistair Bush 2013-11-29 06:22:42 UTC
Created attachment 5566 [details]
output from the compiler

When attempting to compile FubuMVC's bottle library mcs crashes.

Not really an expert here wrt what I should provide but hopefully this is enough

Steps to Reproduce

1) checkout master branch of https://github.com/DarthFubuMVC/bottles
2) cd bootles && rake.    This potentially could fail due to other issues as there linux support isn't brilliant at the moment.

Essentually the command I am attempting to run is the following

$ /usr/bin/mcs /noconfig "/r:/usr/lib/mono/4.0/mscorlib.dll" -nostdlib "/out:/home/alistair/Projects/fubu/bottles/src/Bottles/bin/Debug/Bottles.dll" "/r:/home/alistair/Projects/fubu/bottles/src/packages/FubuCore/lib/FubuCore.dll" "/r:/home/alistair/Projects/fubu/bottles/src/packages/FubuCsProjFile/lib/net40/FubuCsProjFile.dll" "/r:/home/alistair/Projects/fubu/bottles/lib/Ionic.Zip.dll" "/r:/home/alistair/Projects/fubu/bottles/src/packages/Newtonsoft.Json/lib/net40/Newtonsoft.Json.dll" "/r:/usr/lib/mono/4.0/System.dll" "/r:/usr/lib/mono/4.0/System.Core.dll" "/r:/usr/lib/mono/4.0/System.Web.dll" "/r:/usr/lib/mono/4.0/System.Xml.dll" "/r:/usr/lib/mono/4.0/System.Core.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG;TRACE"  /t:library "/home/alistair/Projects/fubu/bottles/src/CommonAssemblyInfo.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/AliasRegistry.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/AssemblyFinder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/AssemblyTarget.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/AliasCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/AssemblyPackageCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/CreateBottleCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/InitCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/LinkCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Commands/OpenManifestCommand.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/CompileTarget.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/AssertBottleConfiguration.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/BottleConfiguration.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/BottleConfigurationError.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/BottleConfigurationException.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/IBottleConfigurationRule.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Configuration/MissingService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Environment/CanWriteToFolder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Environment/FileExists.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Environment/FolderExists.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Environment/IEnvironmentRequirement.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Environment/IEnvironmentRequirements.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exceptions/BottleException.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/ExplodeDirectory.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/ExplodeOptions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IDeactivator.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Manifest/Dependency.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageInfo.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/AssemblyFileFinder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/AssemblyFiles.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/AssemblyLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/AssemblyPackageInfo.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/AssemblyPackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/IBottleLogger.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/LoggingSession.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/LogWriter.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/LogWriterStatus.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/BottleLogExtensions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/BottleLogger.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/BottleFiles.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/FileSystemExtensions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IActivator.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/IAssemblyFileFinder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/IAssemblyLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Assemblies/IAssemblyRegistration.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IBootstrapper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/IBottleExploder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/IBottleExploderLogger.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IPackageFacility.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IPackageInfo.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IPackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/IPackageLog.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/IBottlingDiagnostics.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Manifest/IPackageManifestReader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/IPackagingRuntimeGraphConfigurer.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/LambdaActivator.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/LambdaBootstrapper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/BottleExploder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Exploding/BottleExploderLogger.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Creation/ZipPackageCreator.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/LinkedFolders/LinkedFolderPackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/LinkedFolders/LinkManifest.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/BottleDependencyProcessor.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageFacility.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageFiles.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/LinkedFolders/LinksService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/BottleLoadingRecord.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageManifest.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Manifest/PackageManifestReader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageRegistry.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/PackageLog.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/BottlingDiagnostics.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Diagnostics/PackagingDiagnosticsExtensions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/BottleRoles.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackagingRuntimeGraph.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/ProvenanceHelper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/PackageLoaders/Directory/DirectoryPackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BootstrapperApplicationLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/ApplicationLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceBootstrapper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceApplication.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceAttribute.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceConfiguration.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceFinder.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServicePackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottleServiceRuntime.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/BottlesServicePackageFacility.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/DefaultBottleApplication.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/IApplication.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/IApplicationLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/IApplicationSource.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/EventAggregator.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/IListener.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/IMessagingHub.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/IRemoteListener.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/MessageWaitCondition.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/MessagingHub.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/MessagingHubExtensions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/RemoteListener.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/ServiceMessage.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/Tracking/AllMessagesComplete.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/Tracking/MessageHistory.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Messaging/Tracking/MessageTrack.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Properties/AssemblyInfo.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/AppDomainFileChangeWatcher.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/AssemblyRequirement.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/RemoteDomainExpression.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/RemoteServiceRunner.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/RemoteServicesProxy.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/RemoteService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Remote/ServiceStarted.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/Wait.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Services/WrappedBootstrapper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/StringExtensions.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/ZipFilePackageLoader.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Zipping/IZipFile.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Zipping/IZipFileService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Zipping/ZipFileService.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Zipping/ZipFileWrapper.cs" "/home/alistair/Projects/fubu/bottles/src/Bottles/Zipping/ZipFolderRequest.cs" --stacktrace -mcs-debug 10 > compile.output

and I get the following sent to stderr? + the attached information from stdout.

Unhandled Exception:
Mono.CSharp.InternalErrorException: /home/alistair/Projects/fubu/bottles/src/Bottles/PackageFiles.cs(66,21): Bottles.PackageFiles.GetFiles(string, string, System.Action<string,System.IO.Stream>) ---> Mono.CSharp.InternalErrorException: /home/alistair/Projects/fubu/bottles/src/Bottles/PackageFiles.cs(92,91): ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.StatementExpression.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TryFinallyBlock.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Using.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.AnonymousExpression ae) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.Compatible (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousMethodExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec type) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.AnonymousMethodExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousMethodExpression.ImplicitStandardConversionExists (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec delegate_type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Convert.ImplicitConversionExists (Mono.CSharp.ResolveContext ec, Mono.CSharp.Expression expr, Mono.CSharp.TypeSpec target_type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.IsArgumentCompatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.Argument argument, Modifier param_mod, Mono.CSharp.TypeSpec parameter) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.IsApplicable (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& arguments, Int32 arg_count, Mono.CSharp.MemberSpec& candidate, IParametersMember pm, System.Boolean& params_expanded_form, System.Boolean& dynamicArgument, Mono.CSharp.TypeSpec& returnType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.ResolveMember[T] (Mono.CSharp.ResolveContext rc, Mono.CSharp.Arguments& args) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& args, IErrorHandler cerrors, Restrictions restr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ExtensionMethodGroupExpr.OverloadResolve (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& arguments, IErrorHandler ehandler, Restrictions restr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec, ResolveFlags flags) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeDefinition.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ClassOrStruct.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeDefinition.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyDefinition.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyDefinitionStatic.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.CSharp.InternalErrorException: /home/alistair/Projects/fubu/bottles/src/Bottles/PackageFiles.cs(66,21): Bottles.PackageFiles.GetFiles(string, string, System.Action<string,System.IO.Stream>) ---> Mono.CSharp.InternalErrorException: /home/alistair/Projects/fubu/bottles/src/Bottles/PackageFiles.cs(92,91): ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.StatementExpression.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TryFinallyBlock.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Using.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Block.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.MarkReachable (Reachability rc) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.AnonymousExpression ae) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousExpression.Compatible (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousMethodExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec type) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.AnonymousMethodExpression.Compatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AnonymousMethodExpression.ImplicitStandardConversionExists (Mono.CSharp.ResolveContext ec, Mono.CSharp.TypeSpec delegate_type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Convert.ImplicitConversionExists (Mono.CSharp.ResolveContext ec, Mono.CSharp.Expression expr, Mono.CSharp.TypeSpec target_type) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.IsArgumentCompatible (Mono.CSharp.ResolveContext ec, Mono.CSharp.Argument argument, Modifier param_mod, Mono.CSharp.TypeSpec parameter) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.IsApplicable (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& arguments, Int32 arg_count, Mono.CSharp.MemberSpec& candidate, IParametersMember pm, System.Boolean& params_expanded_form, System.Boolean& dynamicArgument, Mono.CSharp.TypeSpec& returnType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.OverloadResolver.ResolveMember[T] (Mono.CSharp.ResolveContext rc, Mono.CSharp.Arguments& args) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& args, IErrorHandler cerrors, Restrictions restr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ExtensionMethodGroupExpr.OverloadResolve (Mono.CSharp.ResolveContext ec, Mono.CSharp.Arguments& arguments, IErrorHandler ehandler, Restrictions restr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec, ResolveFlags flags) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeDefinition.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ClassOrStruct.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeDefinition.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.EmitContainer () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyDefinition.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyDefinitionStatic.Emit () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Comment 1 Alistair Bush 2013-11-29 06:23:33 UTC
Please note that I am running a master build of mono

$ mono --version
Mono Runtime Engine version 3.2.7 (branch-master/53cb3ab Fri Nov 29 22:19:59 NZDT 2013)
Copyright (C) 2002-2013 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen
Comment 2 Alistair Bush 2013-11-30 04:01:40 UTC
I have worked around the issue downstream by replacing the IEnumerable.Each extension method with a plan old foreach

See pull request https://github.com/DarthFubuMVC/bottles/pull/95 for the patch.

This seems to have something to do with nested func/actions but my attempts to create a sample replicating the issue have all worked.
Comment 3 Marek Safar 2013-12-03 13:22:15 UTC
Fixed in master