dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
591 stars 52 forks source link

WebSharper Warp crash (SIGABRT) on OS X 10.11 #595

Open skrach opened 7 years ago

skrach commented 7 years ago

Trying to use WebSharper Warp on OS X results in a crash.

System Environment:

Details

File test.fsx:

#load "../packages/WebSharper.Warp/tools/reference-nover.fsx"

open WebSharper

let MyApp = Application.Text (fun x -> "Hello world!")

[<EntryPoint>]
do Warp.RunAndWaitForInput(MyApp) |> ignore

Execute script:

fsharpi test.fsx

Result

* Assertion at metadata.c:3643, condition `ptr' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at WebSharper.Compiler.Loader.LoadFile (string) <0x0038f>
  at WebSharper.Compilation/getRefs@107.Invoke (string) <0x0001f>
  at Microsoft.FSharp.Collections.IEnumerator/map@111<b_REF, a_REF>.DoMoveNext (b_REF&) <0x00061>
  at Microsoft.FSharp.Collections.IEnumerator/MapEnumerator`1<T_REF>.System-Collections-IEnumerator-MoveNext () <0x00058>
  at Microsoft.FSharp.Collections.SeqModule.ToList<T_REF> (System.Collections.Generic.IEnumerable`1<T_REF>) <0x00103>
  at WebSharper.Compilation.getRefs (WebSharper.Compiler.Loader) <0x0010f>
  at WebSharper.Compilation.compile (System.Reflection.Assembly) <0x00013>
  at WebSharper.Owin/compile@217-1.Invoke (System.Reflection.Assembly) <0x00013>
  at WebSharper.Owin/WarpMiddleware`1<EndPoint_REF>..ctor (System.Func`2<System.Collections.Generic.IDictionary`2<string, object>, System.Threading.Tasks.Task>,WebSharper.Sitelets.Sitelet`1<EndPoint_REF>,WebSharper.Owin/WarpOptions`1<EndPoint_REF>) <0x0007d>
  at WebSharper.Owin/UseWarp@245<EndPoint_REF>.Invoke (System.Func`2<System.Collections.Generic.IDictionary`2<string, object>, System.Threading.Tasks.Task>) <0x00057>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object__this___object (object,intptr,intptr,intptr) <0x000b1>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0x00012>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000a1>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x00046>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x00280>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x00030>
  at System.Delegate.DynamicInvoke (object[]) <0x00024>
  at Microsoft.Owin.Builder.AppBuilder.BuildInternal (System.Type) <0x00123>
  at Microsoft.Owin.Builder.AppBuilder.Build (System.Type) <0x00017>
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder) <0x000c8>
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext) <0x00024>
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext) <0x0011b>
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider,Microsoft.Owin.Hosting.StartOptions,System.Action`1<Owin.IAppBuilder>) <0x00108>
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions,System.Action`1<Owin.IAppBuilder>) <0x0002b>
  at WebSharper.Warp.Run<EndPoint_REF> (WebSharper.Sitelets.Sitelet`1<EndPoint_REF>,Microsoft.FSharp.Core.FSharpOption`1<bool>,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Collections.FSharpList`1<string>>,Microsoft.FSharp.Core.FSharpOption`1<string>,Microsoft.FSharp.Core.FSharpOption`1<bool>,Microsoft.FSharp.Core.FSharpOption`1<System.Reflection.Assembly>) <0x002a3>
  at WebSharper.Warp.RunAndWaitForInput<EndPoint_REF> (WebSharper.Sitelets.Sitelet`1<EndPoint_REF>,Microsoft.FSharp.Core.FSharpOption`1<bool>,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Collections.FSharpList`1<string>>,Microsoft.FSharp.Core.FSharpOption`1<string>,Microsoft.FSharp.Core.FSharpOption`1<bool>,Microsoft.FSharp.Core.FSharpOption`1<System.Reflection.Assembly>) <0x0008f>
  at <StartupCode$FSI_0002>.$FSI_0002.main@ () <0x0008b>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00090>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0x00012>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x000a1>
  at System.RuntimeType.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) <0x00e76>
  at System.Reflection.Emit.TypeBuilder.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) <0x00066>
  at System.Type.InvokeMember (string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Globalization.CultureInfo) <0x0005a>
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/execEntryPtFun@2017-1.Invoke (Microsoft.FSharp.Core.Unit) <0x00083>
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@896-37.Invoke (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, Microsoft.FSharp.Core.FSharpOption`1<System.Exception>>) <0x00019>
  at Microsoft.FSharp.Primitives.Basics.List.iter<T_REF> (Microsoft.FSharp.Core.FSharpFunc`2<T_REF, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T_REF>) <0x00038>
  at Microsoft.FSharp.Collections.ListModule.Iterate<T_REF> (Microsoft.FSharp.Core.FSharpFunc`2<T_REF, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T_REF>) <0x00027>
  at Microsoft.FSharp.Compiler.Interactive.Shell.arg10@895 (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, Microsoft.FSharp.Core.FSharpOption`1<System.Exception>>>,Microsoft.FSharp.Core.Unit) <0x00057>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.ProcessInputs (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/ParsedInput>,bool,bool,bool,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/Ident>) <0x006e7>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.EvalParsedDefinitions (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,bool,bool,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/SynModuleDecl>) <0x001f3>
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@1646-45.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x01497>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<a_REF> (Microsoft.FSharp.Core.FSharpFunc`2<a_REF, System.Tuple`2<a_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,a_REF) <0x00035>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteraction (bool,Microsoft.FSharp.Compiler.CompileOps/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction) <0x00067>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteractions (bool,Microsoft.FSharp.Compiler.CompileOps/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>) <0x0098f>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.MainThreadProcessParsedInteraction (bool,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00127>
  at Microsoft.FSharp.Compiler.Interactive.Shell/res@1863.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00033>
  at Microsoft.FSharp.Compiler.Interactive.Shell/run@1880-1.Invoke (Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, System.Tuple`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00017>
  at Microsoft.FSharp.Core.OptimizedClosures/Invoke@3261<T2_REF, TResult_REF, T1_REF>.Invoke (T2_REF) <0x00024>
  at Microsoft.FSharp.Compiler.Interactive.Shell/ParseAndProcessAndEvalOneInteractionFromLexbuf@1852.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x00188>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<a_REF> (Microsoft.FSharp.Core.FSharpFunc`2<a_REF, System.Tuple`2<a_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,a_REF) <0x00035>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ParseAndProcessAndEvalOneInteractionFromLexbuf (bool,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, System.Tuple`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, System.Tuple`2<Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.LexFilter/LexFilter) <0x0013f>
  at Microsoft.FSharp.Compiler.Interactive.Shell.run@1879 (Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor,bool,Microsoft.FSharp.Compiler.LexFilter/LexFilter,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0004b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/EvalIncludedScript@1875.Invoke (Microsoft.FSharp.Core.Unit) <0x00053>
  at Microsoft.FSharp.Compiler.Interactive.Shell.WithImplicitHome<a_REF> (Microsoft.FSharp.Compiler.CompileOps/TcConfigBuilder,string,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a_REF>) <0x00046>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.EvalIncludedScript (bool,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,string,Microsoft.FSharp.Compiler.Range/range) <0x000bf>
  at Microsoft.FSharp.Compiler.Interactive.Shell/EvalIncludedScripts@1899.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0005b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<a_REF> (Microsoft.FSharp.Core.FSharpFunc`2<a_REF, System.Tuple`2<a_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,a_REF) <0x00035>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.EvalIncludedScripts (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,bool,Microsoft.FSharp.Collections.FSharpList`1<string>) <0x00083>
  at Microsoft.FSharp.Compiler.Interactive.Shell.consume@1909 (Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor,bool,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Collections.FSharpList`1<System.Tuple`2<string, bool>>) <0x000cb>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.LoadInitialFiles (bool,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) <0x0002b>
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiEvaluationSession.Run () <0x00c03>
  at Microsoft.FSharp.Compiler.Interactive.Shell.evaluateSession@2520 (string[],Microsoft.FSharp.Core.Unit) <0x0009b>
  at Microsoft.FSharp.Compiler.Interactive.Shell.MainMain (string[]) <0x00167>
  at Microsoft.FSharp.Compiler.Interactive.Main.FsiMain (string[]) <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0x000c3>

Native stacktrace:

    0   mono                                0x001813d6 mono_handle_native_sigsegv + 342
    1   mono                                0x001d42a1 sigabrt_signal_handler + 145
    2   libsystem_platform.dylib            0x9130679b _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libsystem_c.dylib                   0x9ae17c38 abort + 156
    5   mono                                0x003381b1 monoeg_log_default_handler + 129
    6   mono                                0x003382ab monoeg_assertion_message + 107
    7   mono                                0x002407a0 mono_metadata_parse_mh_full + 0
    8   mono                                0x0011341e mono_method_check_inlining + 62
    9   mono                                0x000f7135 mono_method_to_ir + 168325
    10  mono                                0x000bd545 mini_method_compile + 3717
    11  mono                                0x000c01c1 mono_jit_compile_method_inner + 657
    12  mono                                0x000c322d mono_jit_compile_method_with_opt + 765
    13  mono                                0x000c2ed9 mono_jit_compile_method + 57
    14  mono                                0x001839a6 common_call_trampoline + 1190
    15  mono                                0x001834f4 mono_magic_trampoline + 52
    16  ???                                 0x0067b188 0x0 + 6795656

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.NyQJRv'
Executing commands in '/tmp/mono-gdb-commands.NyQJRv'.
(lldb) process attach --pid 34563
warning: (i386) /Library/Frameworks/Mono.framework/Versions/4.4.2/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 34563 stopped
* thread #1: tid = 0xb9743, 0x9d767cee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_a07', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x9d767cee libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
->  0x9d767cee <+10>: jae    0x9d767cfe                ; <+26>
    0x9d767cf0 <+12>: calll  0x9d767cf5                ; <+17>
    0x9d767cf5 <+17>: popl   %edx
    0x9d767cf6 <+18>: movl   0x6be432f(%edx), %edx

Executable module set to "/Library/Frameworks/Mono.framework/Versions/4.4.2/bin/mono".
Architecture set to: i386-apple-macosx.
(lldb) thread list
Process 34563 stopped
* thread #1: tid = 0xb9743, 0x9d767cee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_a07', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0xb9745, 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10
  thread #3: tid = 0xb9746, 0x9d7604d6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1303'
  thread #4: tid = 0xb9747, 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #5: tid = 0xb9748, 0x9d7687fa libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
  thread #6: tid = 0xb9749, 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #7: tid = 0xb974f, 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_230b'
(lldb) thread backtrace all
* thread #1: tid = 0xb9743, 0x9d767cee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_a07', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x9d767cee libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x9ae377e0 libsystem_c.dylib`waitpid$UNIX2003 + 48
    frame #2: 0x0018149d mono`mono_handle_native_sigsegv(signal=6, ctx=0xbff472cc, info=0xbff4728c) + 541 at mini-exceptions.c:2348 [opt]
    frame #3: 0x001d42a1 mono`sigabrt_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) + 145 at mini-posix.c:218 [opt]
    frame #4: 0x9130679b libsystem_platform.dylib`_sigtramp + 43

  thread #2: tid = 0xb9745, 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #0: 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x9da94538 libsystem_pthread.dylib`_pthread_cond_wait + 757
    frame #2: 0x9da96276 libsystem_pthread.dylib`pthread_cond_wait$UNIX2003 + 71
    frame #3: 0x0030128b mono`thread_func [inlined] mono_os_cond_wait(mutex=0xb00810b0) + 18 at mono-os-mutex.h:105 [opt]
    frame #4: 0x00301279 mono`thread_func(thread_data=0x00000000) + 457 at sgen-thread-pool.c:118 [opt]
    frame #5: 0x9da93780 libsystem_pthread.dylib`_pthread_body + 138
    frame #6: 0x9da936f6 libsystem_pthread.dylib`_pthread_start + 155
    frame #7: 0x9da90f7a libsystem_pthread.dylib`thread_start + 34

  thread #3: tid = 0xb9746, 0x9d7604d6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1303'
    frame #0: 0x9d7604d6 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x0029d40e mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 14 at mono-os-semaphore.h:72 [opt]
    frame #2: 0x0029d400 mono`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 10 at mono-coop-semaphore.h:40 [opt]
    frame #3: 0x0029d3f6 mono`finalizer_thread(unused=0x00000000) + 118 at gc.c:711 [opt]
    frame #4: 0x00276979 mono`start_wrapper [inlined] start_wrapper_internal + 540 at threads.c:717 [opt]
    frame #5: 0x0027675d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:764 [opt]
    frame #6: 0x003309bd mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
    frame #7: 0x9da93780 libsystem_pthread.dylib`_pthread_body + 138
    frame #8: 0x9da936f6 libsystem_pthread.dylib`_pthread_start + 155
    frame #9: 0x9da90f7a libsystem_pthread.dylib`thread_start + 34

  thread #4: tid = 0xb9747, 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x9da9334b libsystem_pthread.dylib`_pthread_wqthread + 1289
    frame #2: 0x9da90f56 libsystem_pthread.dylib`start_wqthread + 34

  thread #5: tid = 0xb9748, 0x9d7687fa libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x9d7687fa libsystem_kernel.dylib`kevent_qos + 10
    frame #1: 0x9347b7ea libdispatch.dylib`_dispatch_mgr_invoke + 234
    frame #2: 0x9347b3be libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #6: tid = 0xb9749, 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x9d767d5e libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x9da9334b libsystem_pthread.dylib`_pthread_wqthread + 1289
    frame #2: 0x9da90f56 libsystem_pthread.dylib`start_wqthread + 34

  thread #7: tid = 0xb974f, 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_230b'
    frame #0: 0x9d7673ea libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x9da94538 libsystem_pthread.dylib`_pthread_cond_wait + 757
    frame #2: 0x9da97d0b libsystem_pthread.dylib`pthread_cond_timedwait$UNIX2003 + 71
    frame #3: 0x00307877 mono`mono_os_cond_timedwait(cond=<unavailable>, mutex=<unavailable>, timeout_ms=<unavailable>) + 135 at mono-os-mutex.h:134 [opt]
    frame #4: 0x0030762b mono`_wapi_handle_timedwait_signal_handle(handle=0x0000040c, timeout=<unavailable>, alertable=<unavailable>, poll=<unavailable>, alerted=0xfdd764de) + 507 at handles.c:1554 [opt]
    frame #5: 0x0031a89b mono`wapi_WaitForSingleObjectEx(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) + 731 at wait.c:189 [opt]
    frame #6: 0x0027144c mono`mono_wait_uninterrupted(alertable=1, thread=<unavailable>, multiple=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>) + 108 at threads.c:1518 [opt]
    frame #7: 0x00271683 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(this_obj=0x00877bb8, handle=0x0000040c, ms=-1, exitContext=0) + 99 at threads.c:1652 [opt]
    frame #8: 0x05bfd7d0
    frame #9: 0x01b3716e mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 126
    frame #10: 0x01b3720d mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 45
    frame #11: 0x01b36264 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 3492
    frame #12: 0x0196cf3f mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart_Context_object + 143
    frame #13: 0x0196b4ec mscorlib.dll.dylib`System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 444
    frame #14: 0x0196b324 mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 52
    frame #15: 0x0196b29b mscorlib.dll.dylib`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 91
    frame #16: 0x0196d06a mscorlib.dll.dylib`System_Threading_ThreadHelper_ThreadStart + 58
    frame #17: 0x0072ed6d
    frame #18: 0x000c7487 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>) + 951 at mini-runtime.c:2578 [opt]
    frame #19: 0x0029fb26 mono`mono_runtime_invoke(method=0x79bc1a58, obj=<unavailable>, params=<unavailable>, exc=<unavailable>) + 150 at object.c:2897 [opt]
    frame #20: 0x002a527c mono`mono_runtime_delegate_invoke(delegate=0x00877ce0, params=<unavailable>, exc=<unavailable>) + 92 at object.c:3657 [opt]
    frame #21: 0x002769f5 mono`start_wrapper [inlined] start_wrapper_internal + 664 at threads.c:723 [opt]
    frame #22: 0x0027675d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:764 [opt]
    frame #23: 0x003309bd mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
    frame #24: 0x9da93780 libsystem_pthread.dylib`_pthread_body + 138
    frame #25: 0x9da936f6 libsystem_pthread.dylib`_pthread_start + 155
    frame #26: 0x9da90f7a libsystem_pthread.dylib`thread_start + 34
(lldb) detach

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

Process 34563 detached
(lldb) quit
Abort trap: 6
Tarmil commented 7 years ago

I have experienced a similar issue on Linux when upgrading from mono 4.2.x to 4.4.x. I will investigate it.