[x86/Linux] Add Assertion on pvControlPc (dotnet/coreclr#9356)
authorJonghyun Park <parjong@gmail.com>
Mon, 6 Feb 2017 02:15:23 +0000 (11:15 +0900)
committerJan Kotas <jkotas@microsoft.com>
Mon, 6 Feb 2017 02:15:23 +0000 (18:15 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/a702f3f0a4a178ec1f1597c7cb47a35c0940d57b

src/coreclr/src/vm/i386/gmsx86.cpp

index 34d6585..840a50d 100644 (file)
@@ -1323,6 +1323,8 @@ void LazyMachState::unwindLazyState(LazyMachState* baseState,
 
         pvControlPc = GetIP(&ctx);
 
+        _ASSERTE(pvControlPc != 0);
+
         if (funCallDepth > 0)
         {
             --funCallDepth;