Bug 60670 - Crash JetBrains Rider on macOS.
Summary: Crash JetBrains Rider on macOS.
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: 5.4 (2017-06)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-14 13:08 UTC by Mikhail Filippov
Modified: 2017-11-14 13:08 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 60670 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 Mikhail Filippov 2017-11-14 13:08:31 UTC
I have some crashes per day from different call-stacks on Mono 5.4.0.212 when call "lock(smth){}"
Mono crash log example:
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_monitor_enter_v4_internal (object,intptr) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at JetBrains.ReSharper.Psi.impl.Shared.References.InjectedReferenceProviderFactory/ReferenceFactory.get_Data () [0x00002] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Psi.impl.Shared.References.InjectedReferenceProviderFactory/ReferenceFactory.GetReferences (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Psi.Tree.ReferenceCollection) [0x00000] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Psi.Files.ReferenceProviderFactory/CachingReferenceProvider.GetReferences (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Psi.Resolve.IReferenceNameContainer) [0x00139] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Psi.Tree.TreeNodeExtensions.GetReferences (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Psi.Resolve.IReferenceProvider,JetBrains.ReSharper.Psi.Resolve.IReferenceNameContainer) [0x00043] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.IdentifierHighlighterProcess.VisitNode (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Feature.Services.Daemon.IHighlightingConsumer) [0x00018] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.CSharpTokenBase.Accept<TContext_REF> (JetBrains.ReSharper.Psi.CSharp.Tree.TreeNodeVisitor`1<TContext_REF>,TContext_REF) [0x00000] in <e5e09e09663444a5aaab735321d59a85>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.ProcessAfterInterior (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Feature.Services.Daemon.IHighlightingConsumer) [0x0002a] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase/ProcessorBase.ProcessAfterInterior (JetBrains.ReSharper.Psi.Tree.ITreeNode) [0x00000] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Psi.IRecursiveElementProcessor) [0x00098] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessThisAndDescendants (JetBrains.ReSharper.Psi.Tree.ITreeNode,JetBrains.ReSharper.Psi.IRecursiveElementProcessor) [0x00044] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase/<>c__DisplayClass5.<Execute>b__1 (JetBrains.ReSharper.Psi.CSharp.Tree.ICSharpTypeMemberDeclaration) [0x0004a] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase/<>c__DisplayClass9.<Execute>b__4 () [0x00000] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Psi.Extensions/<>c__DisplayClass1.<EnqueueJob>b__0 () [0x0000c] in <462e96c59119423588d39be0329c18af>:0
  at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher (System.Action) [0x00000] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Application.Threading.Tasks.TaskHost/<>c__DisplayClasse.<Create>b__a (object) [0x000a5] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x00025] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.Execute () [0x00010] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (object) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x00050] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x00058] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task) [0x00019] in <50fcaa245b984548b58533d6aab2744a>:0
  at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0002f] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004c] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.WrappedTryRunInline () [0x0000b] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[],int,System.Threading.CancellationToken) [0x00085] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[],int) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[]) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at JetBrains.Application.Threading.Tasks.TaskBarrier.DisposeUnmanagedResources () [0x000a2] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Util.SafeDisposable.DisposeInternal () [0x00013] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Util.SafeDisposable.Dispose () [0x00006] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpIncrementalDaemonStageProcessBase.Execute (System.Action`1<JetBrains.ReSharper.Feature.Services.Daemon.DaemonStageResult>) [0x001e5] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Daemon.CSharp.Stages.IdentifierHighlighterProcess.Execute (System.Action`1<JetBrains.ReSharper.Feature.Services.Daemon.DaemonStageResult>) [0x00000] in <722e05780df741dda9611cc30ab35d77>:0
  at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage (JetBrains.ReSharper.Feature.Services.Daemon.IDaemonStage,JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessKind,System.Action`2<JetBrains.ReSharper.Feature.Services.Daemon.IDaemonStage, JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase/DaemonCommitContext>,JetBrains.Application.Settings.IContextBoundSettingsStore,System.Collections.Generic.JetHashSet`1<JetBrains.ReSharper.Feature.Services.Daemon.IDaemonStage>) [0x0011c] in <d5522d66c34e40eabe88b678d60fa008>:0
  at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase/<>c__DisplayClass7/<>c__DisplayClassb.<DoHighlighting>b__5 (JetBrains.ReSharper.Feature.Services.Daemon.IDaemonStage) [0x00000] in <d5522d66c34e40eabe88b678d60fa008>:0
  at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase/<>c__DisplayClass10.<PrepareRunActionForStages>b__d () [0x00000] in <d5522d66c34e40eabe88b678d60fa008>:0
  at JetBrains.Application.Threading.Tasks.TaskBarrier/<>c__DisplayClass14/<>c__DisplayClass16.<EnqueueDependentJobs>b__12 () [0x00000] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher (System.Action) [0x00000] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Application.Threading.Tasks.TaskHost/<>c__DisplayClasse.<Create>b__a (object) [0x000a5] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x00025] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.Execute () [0x00010] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (object) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x00050] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x00058] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task) [0x00019] in <50fcaa245b984548b58533d6aab2744a>:0
  at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask (System.Threading.Tasks.Task) [0x00014] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask () [0x00020] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc () [0x00195] in <ab49c94b0d24402caed40180ba9e5d90>:0
  at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in <50fcaa245b984548b58533d6aab2744a>:0
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <50fcaa245b984548b58533d6aab2744a>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004d] in <50fcaa245b984548b58533d6aab2744a>:0

Native stacktrace:

	0   mono-sgen                           0x000000010b972d31 mono_handle_native_crash + 257
	1   libsystem_platform.dylib            0x00007fff5f0edf5a _sigtramp + 26
	2   libsystem_c.dylib                   0x00007fff5ef0491f __vfprintf + 16209
	3   libsystem_c.dylib                   0x00007fff5ef1930a abort + 127
	4   mono-sgen                           0x000000010bb42b1f mono_log_write_logfile + 351
	5   mono-sgen                           0x000000010bb5ccdd monoeg_g_logv + 109
	6   mono-sgen                           0x000000010bb5cf29 monoeg_g_log + 361
	7   mono-sgen                           0x000000010babdf50 mono_monitor_try_enter_inflated + 1264
	8   mono-sgen                           0x000000010babd58d mono_monitor_enter_v4_internal + 77
	9   ???                                 0x0000000113a5140f 0x0 + 4624552975
	10  ???                                 0x0000000137132c2b 0x0 + 5218970667
	11  ???                                 0x0000000137131e45 0x0 + 5218967109
	12  ???                                 0x000000013712d8f3 0x0 + 5218949363
	13  ???                                 0x000000013712cccb 0x0 + 5218946251
(lldb) command source -s 0 '/tmp/mono-gdb-commands.wyCFhS'
Executing commands in '/tmp/mono-gdb-commands.wyCFhS'.
(lldb) process attach --pid 71578
error: attach failed: unable to attach

Source code for the fragment when end stacktrace:
private class ReferenceFactory : IReferenceFactory
{
      private IInjectedScopeData Data
      {
        get
        {
          lock (this)
          {
            if (myDataComputed)
              return myData;

            myDataComputed = true;
            var data = CreateFactoryData(mySourceFile, myPsiFile);
            return myData = (IInjectedScopeData) data;
          }
        }
      }
}