[mono-symbolicate] Fixes crash on stackframes w/o MVID
authorMarcos Henrich <marcos.henrich@xamarin.com>
Fri, 15 Jul 2016 10:50:20 +0000 (11:50 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 18 Jul 2016 12:55:29 +0000 (13:55 +0100)
Wrapper stack frames don't have MVID or IL associated.
ex: (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)

mcs/tools/mono-symbolicate/SymbolManager.cs

index a7d5c713e42eaa68571ddf1ce27922981a05e740..aa8c8e6dfc7cb72ec42c332254fb6808d4251713 100644 (file)
@@ -19,6 +19,9 @@ namespace Mono
 
                internal bool TryResolveLocation (StackFrameData sfData, string mvid, string aotid)
                {
+                       if (mvid == null)
+                               return false;
+
                        var assemblyLocProvider = GetOrCreateAssemblyLocationProvider (mvid);
                        if (assemblyLocProvider == null)
                                return false;