Quantcast
Channel: Windows Performance Toolkit (WPT) v5 forum
Viewing all articles
Browse latest Browse all 275

Bug in x86 stack walking mechanism

$
0
0

Hi, looks like i found a bug with call stacks in WPA. If you profile simple program

static void Main()
    {
      Task task = new Task(() => { Thread.Sleep(1000);});
      task.Start();
      task.Wait();
      Thread.Sleep(1000);
    }

WPA shows that the parent node of Task.Wait method is not Main, but one level above it . The same thing is happened to List`1 methods: Add, AddRange, IndexOf and may be many more.

OS Win 8.1 x64. Tested on .NET 4.5, 4.5.1, 4.6

(Can't attach screenshot, because my account is not verified)



Viewing all articles
Browse latest Browse all 275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>