+1
Under review

Service crashes on Linux

jon 2 years ago updated by Jason Slagle 1 year ago 1

I've received the following error in the screenconnect log file a couple times in the last 2-3 years. The screenconnect service (on Linux) crashes and takes a while to get back to a proper running state.


mmap(...PROT_NONE...) failed
Stacktrace:
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int) <0xffffffff>
  at System.Data.DataView.GetEnumerator () <0x00029>
  at ScreenConnect.Linq.LinqExtensions/<cast>d__11`1.MoveNext () <0x00067>
  at ScreenConnect.SessionFilterManager/<getdatarowviews>d__39.MoveNext () <0x00108>
  at System.Linq.Enumerable/<createselectiterator>c__Iterator1A`2.MoveNext () <0x00176>
  at System.Linq.Enumerable.ToArray<tsource> (System.Collections.Generic.IEnumerable`1<tsource>) <0x0028b>
  at ScreenConnect.SessionFilterManager.EnsureSessions (ScreenConnect.SessionFilterManager/SessionCacheEntry) <0x000f5>
  at ScreenConnect.SessionFilterManager.QuerySessions (string,string) <0x00050>
  at ScreenConnect.SessionManager/<>c__DisplayClass48_0.<getsessions>b__0 () <0x00031>
  at ScreenConnect.SessionManager.Run<t> (ScreenConnect.Func`1<t>,ScreenConnect.SessionManagerFaultType,bool) <0x0009a>
  at ScreenConnect.SessionManager.GetSessions (long) <0x000af>
  at (wrapper runtime-invoke) <module>.runtime_invoke_object__this___long (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) <0x000f2>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at System.ServiceModel.Dispatcher.DefaultOperationInvoker.Invoke (object,object[],object[]&) <0x000eb>
  at System.ServiceModel.Dispatcher.OperationInvokerHandler.DoProcessRequest (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x000b8>
  at System.ServiceModel.Dispatcher.OperationInvokerHandler.ProcessRequest (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x000c1>
  at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestChain (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x00018>
  at System.ServiceModel.Dispatcher.BaseRequestProcessorHandler.ProcessRequestChain (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x00035>
  at System.ServiceModel.Dispatcher.HandlersChain.ProcessRequestChain (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x0002a>
  at System.ServiceModel.Dispatcher.BaseRequestProcessor.ProcessRequest (System.ServiceModel.Dispatcher.MessageProcessingContext) <0x000a9>
  at System.ServiceModel.Dispatcher.InputOrReplyRequestProcessor.ProcessInput (System.ServiceModel.Channels.Message) <0x0006e>
  at System.ServiceModel.Dispatcher.ListenerLoopManager.ProcessInput (System.ServiceModel.Channels.IInputChannel,System.ServiceModel.Channels.Message) <0x00099>
  at System.ServiceModel.Dispatcher.ListenerLoopManager.TryReceiveDone (System.IAsyncResult) <0x000fd>
  at (wrapper runtime-invoke) <module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
    mono() [0x4a1fdc]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f5f6ce8b330]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f5f6cae8c37]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f5f6caec028]
    mono() [0x5f57d2]
    mono() [0x5f6ca9]
    mono() [0x5fd354]
    mono() [0x5eb61d]
    mono() [0x5eac6a]
    mono() [0x5ebcab]
    mono() [0x5ef4fb]
    mono() [0x5ef8cc]
    mono() [0x5efba2]
    mono() [0x5fa682]
    mono(mono_array_new_specific+0xf5) [0x59f375]
    [0x4113b26f]
Debug info from gdb:
=================================================================
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.
=================================================================</module></unknown></module></t></t></getsessions></tsource></tsource></createselectiterator></getdatarowviews></cast></unknown>
ConnectWise Control Version:
19.0
Server Affected:
Host Client Affected:
Guest Client Affected:

Seeing the same thing.  Going to have to write a wrapper to make sure it stays up.  Looks like a bug in the ancient version of mono they're using.