Bug 35651 - SIGSEGV when building FAKE
Summary: SIGSEGV when building FAKE
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.2.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-07 05:30 UTC by Ross
Modified: 2015-11-07 05:39 UTC (History)
2 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 for Bug 35651 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Ross 2015-11-07 05:30:04 UTC
When building fake from master (currently 545fb5d2cc7901bcbfd8f7f1a53da8f7f169deda) at https://github.com/fsharp/FAKE the build appears to be successful, but as the build task runs the tests a SIGSEGV happens.

Mono/F# was installed from homebrew, and error suggests it is a runtime (or 3rd party native lib) error.  I can't tell which, sorry. 

To replicate:

    git clone https://github.com/fsharp/FAKE; cd FAKE; ./build.sh

Stacktrace:

when successfully authenticating user
Stacktrace:

  at <unknown> <0xffffffff>
  at Nancy.TinyIoc.TinyIoCContainer.GetCurrentFactory (Nancy.TinyIoc.TinyIoCContainer/TypeRegistration) <0x00041>
  at Nancy.TinyIoc.TinyIoCContainer/RegisterOptions.AsSingleton () <0x0002a>
  at Nancy.Testing.ConfigurableBootstrapper.RegisterTypesInternal (Nancy.TinyIoc.TinyIoCContainer,System.Collections.Generic.IEnumerable`1<Nancy.Bootstrapper.TypeRegistration>) <0x00092>
  at Nancy.Testing.ConfigurableBootstrapper.RegisterTypes (Nancy.TinyIoc.TinyIoCContainer,System.Collections.Generic.IEnumerable`1<Nancy.Bootstrapper.TypeRegistration>) <0x00270>
  at Nancy.Bootstrapper.NancyBootstrapperBase`1<TLeft_REF>.Initialise () <0x002ba>
  at Nancy.Testing.Browser..ctor (Nancy.Bootstrapper.INancyBootstrapper,System.Action`1<Nancy.Testing.BrowserContext>) <0x000d1>
  at Nancy.Testing.Browser..ctor (System.Action`1<Nancy.Testing.ConfigurableBootstrapper/ConfigurableBootstrapperConfigurator>,System.Action`1<Nancy.Testing.BrowserContext>) <0x00062>
  at Test.Fake.Deploy.when_successfully_authenticating_user.<Should_return_a_session_ticket>m__0 () <0x001d1>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000b7>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x002ed>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003d>
  at System.Delegate.DynamicInvoke (object[]) <0x00018>
  at Machine.Specifications.Model.Specification.InvokeSpecificationField () <0x00047>
  at Machine.Specifications.Model.Specification.Verify () <0x00071>
  at Machine.Specifications.Runner.Impl.SpecificationRunner.Run (Machine.Specifications.Model.Specification) <0x00054>
  at Machine.Specifications.Runner.Impl.SetupOnceContextRunner.RunSpecifications (Machine.Specifications.Model.Context,Machine.Specifications.Runner.ISpecificationRunListener,Machine.Specifications.Runner.RunOptions,System.Collections.Generic.IEnumerable`1<Machine.Specifications.ISupplementSpecificationResults>) <0x00102>
  at Machine.Specifications.Runner.Impl.SetupOnceContextRunner.Run (Machine.Specifications.Model.Context,Machine.Specifications.Runner.ISpecificationRunListener,Machine.Specifications.Runner.RunOptions,System.Collections.Generic.IEnumerable`1<Machine.Specifications.ICleanupAfterEveryContextInAssembly>,System.Collections.Generic.IEnumerable`1<Machine.Specifications.ISupplementSpecificationResults>) <0x000cf>
  at Machine.Specifications.Runner.Impl.AssemblyRunner.RunContext (Machine.Specifications.Model.Context,System.Collections.Generic.IEnumerable`1<Machine.Specifications.ICleanupAfterEveryContextInAssembly>,System.Collections.Generic.IEnumerable`1<Machine.Specifications.ISupplementSpecificationResults>) <0x00056>
  at Machine.Specifications.Runner.Impl.AssemblyRunner.Run (System.Reflection.Assembly,System.Collections.Generic.IEnumerable`1<Machine.Specifications.Model.Context>) <0x00231>
  at Machine.Specifications.Runner.Impl.DefaultRunner.StartRun (System.Collections.Generic.IDictionary`2<System.Reflection.Assembly, System.Collections.Generic.IEnumerable`1<Machine.Specifications.Model.Context>>) <0x000be>
  at Machine.Specifications.Runner.Impl.DefaultRunner.RunAssembly (System.Reflection.Assembly) <0x00052>
  at (wrapper remoting-invoke-with-check) Machine.Specifications.Runner.Impl.DefaultRunner.RunAssembly (System.Reflection.Assembly) <0xffffffff>
  at Machine.Specifications.Runner.Impl.DefaultRunner.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0x003bd>
  at (wrapper xdomain-dispatch) System.Runtime.Remoting.Messaging.IMessageSink.SyncProcessMessage (object,byte[]&,byte[]&) <0xffffffff>
  at (wrapper xdomain-invoke) System.Runtime.Remoting.Messaging.IMessageSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0xffffffff>
  at Machine.Specifications.Runner.Utility.RemoteRunnerDecorator.RunAssembly (Machine.Specifications.Runner.Utility.AssemblyPath) <0x0013b>
  at Machine.Specifications.Runner.Utility.AppDomainRunner.<RunAssemblies>b__0 (Machine.Specifications.Runner.Utility.AssemblyPath) <0x0005a>
  at Machine.Specifications.Runner.Utility.EnumerableExtensions.Each<TAttribute_REF> (System.Collections.Generic.IEnumerable`1<TAttribute_REF>,System.Action`1<TAttribute_REF>) <0x00085>
  at Machine.Specifications.Runner.Utility.AppDomainRunner.RunAssemblies (System.Collections.Generic.IEnumerable`1<Machine.Specifications.Runner.Utility.AssemblyPath>) <0x000d3>
  at Machine.Specifications.ConsoleRunner.Program.Run (string[]) <0x00d68>
  at Machine.Specifications.ConsoleRunner.Program.Main (string[]) <0x0009a>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:

/tmp/mono-gdb-commands.DP6lek:1: Error in sourced command file:
Unable to find Mach task port for process-id 18272: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))

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

Running build failed.
Error:
System.Exception: MSpec test failed on /Users/ross/tmp/FAKE/test/Test.FAKECore.dll, /Users/ross/tmp/FAKE/test/Test.Fake.Deploy.Web.File.dll, /Users/ross/tmp/FAKE/test/Test.Fake.Deploy.Web.dll, /Users/ross/tmp/FAKE/test/Test.Fake.Deploy.dll, /Users/ross/tmp/FAKE/test/Test.Git.dll.
   at Fake.MSpecHelper+MSpec@95-4.Invoke (System.String message) in <filename unknown>:line 0
   at Fake.MSpecHelper.MSpec (Microsoft.FSharp.Core.FSharpFunc`2 setParams, IEnumerable`1 assemblies) in <filename unknown>:line 0
   at FSI_0001.Build+clo@138-8.Invoke (Microsoft.FSharp.Core.Unit _arg6) in <filename unknown>:line 0
   at Fake.TargetHelper+targetFromTemplate@195[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) in <filename unknown>:line 0
   at Fake.TargetHelper.runSingleTarget (Fake.TargetTemplate`1 target) in <filename unknown>:line 0
Comment 1 Ross 2015-11-07 05:39:18 UTC
After removing the homebrew installed version and downloading from mono-project.com (version 4.0.4) Fake builds cleanly.

I guess it's either 4.2 or the homebrew build process that are the issue.